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