xf.li | bdd93d5 | 2023-05-12 07:10:14 -0700 | [diff] [blame] | 1 | |
2 | CC=gcc -g | ||||
3 | RM = rm | ||||
4 | INCLUDES += -I./ | ||||
5 | CFLAGS += $(INCLUDES) | ||||
6 | OBJS = main.o CSerial.o LogInfo.o download.o devUsb.o | ||||
7 | LIBS += #-lpthread | ||||
8 | TARGET = zdownloader | ||||
9 | |||||
10 | all:$(TARGET) | ||||
11 | $(TARGET):$(OBJS) $(LIBS) | ||||
12 | $(CC) $(OBJS) $(LIBS) -o $@ | ||||
13 | |||||
14 | %o:%cpp | ||||
15 | $(CC) -c $(CFLAGS) $(LIBS) $< -o $@ | ||||
16 | |||||
17 | clean: | ||||
18 | -$(RM) *.o $(TARGET) | ||||
19 |