CC=gcc -g | |
RM = rm | |
INCLUDES += -I./ | |
CFLAGS += $(INCLUDES) | |
OBJS = main.o CSerial.o LogInfo.o download.o devUsb.o | |
LIBS += #-lpthread | |
TARGET = zdownloader | |
all:$(TARGET) | |
$(TARGET):$(OBJS) $(LIBS) | |
$(CC) $(OBJS) $(LIBS) -o $@ | |
%o:%cpp | |
$(CC) -c $(CFLAGS) $(LIBS) $< -o $@ | |
clean: | |
-$(RM) *.o $(TARGET) | |