X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/blobdiff_plain/bbbfeb45132c9fdd5635b8ce2a58254cb7082461..19cb97453c731fe17f1f332e010ed56081a08a1b:/Makefile diff --git a/Makefile b/Makefile index f443d2c..b1c1556 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,15 @@ 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 HMSNIFF_OBJS=hmcfgusb.o hmsniff.o +FLASH_HMCFGUSB_OBJS=hmcfgusb.o flash-hmcfgusb.o -OBJS=$(HMLAN_OBJS) $(HMSNIFF_OBJS) +OBJS=$(HMLAN_OBJS) $(HMSNIFF_OBJS) $(FLASH_HMCFGUSB_OBJS) -all: hmland hmsniff +all: hmland hmsniff flash-hmcfgusb DEPEND=$(OBJS:.o=.d) -include $(DEPEND) @@ -17,7 +18,9 @@ hmland: $(HMLAN_OBJS) hmsniff: $(HMSNIFF_OBJS) +flash-hmcfgusb: $(FLASH_HMCFGUSB_OBJS) + clean: - rm -f $(HMLAN_OBJS) $(HMSNIFF_OBJS) $(DEPEND) hmland hmsniff + rm -f $(HMLAN_OBJS) $(HMSNIFF_OBJS) $(FLASH_HMCFGUSB_OBJS) $(DEPEND) hmland hmsniff flash-hmcfgusb .PHONY: all clean