X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/blobdiff_plain/9db2e455127fa181c68cf093d23fe0c1ee142925..84daa92b023571e959f177094a5ac6b632503514:/Makefile diff --git a/Makefile b/Makefile index b82aa23..bd8fbf7 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,29 @@ CFLAGS=-MMD -O2 -Wall -I/opt/local/include -g -LDFLAGS=-L/opt/local/lib -lusb-1.0 -lm +LDFLAGS=-L/opt/local/lib +LDLIBS=-lusb-1.0 -lrt CC=gcc -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 hm.o aes.o -all: hmland +OBJS=$(HMLAN_OBJS) $(HMSNIFF_OBJS) $(FLASH_HMCFGUSB_OBJS) $(FLASH_OTA_OBJS) + +all: hmland hmsniff flash-hmcfgusb flash-ota DEPEND=$(OBJS:.o=.d) -include $(DEPEND) -hmland: $(OBJS) +hmland: $(HMLAN_OBJS) + +hmsniff: $(HMSNIFF_OBJS) + +flash-hmcfgusb: $(FLASH_HMCFGUSB_OBJS) + +flash-ota: $(FLASH_OTA_OBJS) clean: - rm -f $(OBJS) $(DEPEND) hmland + rm -f $(HMLAN_OBJS) $(HMSNIFF_OBJS) $(FLASH_HMCFGUSB_OBJS) $(FLASH_OTA_OBJS) $(DEPEND) hmland hmsniff flash-hmcfgusb flash-ota .PHONY: all clean