X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/blobdiff_plain/bbbfeb45132c9fdd5635b8ce2a58254cb7082461..df40d1390099e9d950e652bdf82d2b0cf86c22d8:/Makefile diff --git a/Makefile b/Makefile index f443d2c..4af4fe7 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,16 @@ CFLAGS=-MMD -O2 -Wall -I/opt/local/include -g LDFLAGS=-L/opt/local/lib -LDLIBS=-lusb-1.0 +LDLIBS=-lusb-1.0 -lrt CC=gcc -HMLAN_OBJS=hmcfgusb.o hmland.o +HMLAN_OBJS=hmcfgusb.o hmland.o util.o HMSNIFF_OBJS=hmcfgusb.o hmsniff.o +FLASH_HMCFGUSB_OBJS=hmcfgusb.o firmware.o util.o flash-hmcfgusb.o +FLASH_OTA_OBJS=hmcfgusb.o culfw.o firmware.o util.o flash-ota.o -OBJS=$(HMLAN_OBJS) $(HMSNIFF_OBJS) +OBJS=$(HMLAN_OBJS) $(HMSNIFF_OBJS) $(FLASH_HMCFGUSB_OBJS) $(FLASH_OTA_OBJS) -all: hmland hmsniff +all: hmland hmsniff flash-hmcfgusb flash-ota DEPEND=$(OBJS:.o=.d) -include $(DEPEND) @@ -17,7 +19,11 @@ hmland: $(HMLAN_OBJS) hmsniff: $(HMSNIFF_OBJS) +flash-hmcfgusb: $(FLASH_HMCFGUSB_OBJS) + +flash-ota: $(FLASH_OTA_OBJS) + clean: - rm -f $(HMLAN_OBJS) $(HMSNIFF_OBJS) $(DEPEND) hmland hmsniff + rm -f $(HMLAN_OBJS) $(HMSNIFF_OBJS) $(FLASH_HMCFGUSB_OBJS) $(FLASH_OTA_OBJS) $(DEPEND) hmland hmsniff flash-hmcfgusb flash-ota .PHONY: all clean