]> git.zerfleddert.de Git - hmcfgusb/blobdiff - Makefile
probably working flasher...
[hmcfgusb] / Makefile
index b82aa236a836adba95d969a77ee02aede537237c..7cadd48fede90d217d2cbf5a8e490a5e4fb43073 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,17 +1,26 @@
 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
 CC=gcc
 
-OBJS=hmcfgusb.o hmland.o
+HMLAN_OBJS=hmcfgusb.o hmland.o
+HMSNIFF_OBJS=hmcfgusb.o hmsniff.o
+FLASH_HMCFGUSB_OBJS=hmcfgusb.o flash-hmcfgusb.o
 
-all: hmland
+OBJS=$(HMLAN_OBJS) $(HMSNIFF_OBJS) $(FLASH_HMCFGUSB_OBJS)
+
+all: hmland hmsniff
 
 DEPEND=$(OBJS:.o=.d)
 -include $(DEPEND)
 
-hmland: $(OBJS)
+hmland: $(HMLAN_OBJS)
+
+hmsniff: $(HMSNIFF_OBJS)
+
+flash-hmcfgusb: $(FLASH_HMCFGUSB_OBJS)
 
 clean:
-       rm -f $(OBJS) $(DEPEND) hmland
+       rm -f $(HMLAN_OBJS) $(HMSNIFF_OBJS) $(FLASH_HMCFGUSB_OBJS) $(DEPEND) hmland hmsniff flash-hmcfgusb
 
 .PHONY: all clean
Impressum, Datenschutz