]> git.zerfleddert.de Git - hmcfgusb/blob - Makefile
link against librt, too
[hmcfgusb] / Makefile
1 CFLAGS=-MMD -O2 -Wall -I/opt/local/include -g
2 LDFLAGS=-L/opt/local/lib
3 LDLIBS=-lusb-1.0 -lrt
4 CC=gcc
5
6 HMLAN_OBJS=hmcfgusb.o hmland.o
7 HMSNIFF_OBJS=hmcfgusb.o hmsniff.o
8 FLASH_HMCFGUSB_OBJS=hmcfgusb.o flash-hmcfgusb.o
9
10 OBJS=$(HMLAN_OBJS) $(HMSNIFF_OBJS) $(FLASH_HMCFGUSB_OBJS)
11
12 all: hmland hmsniff
13
14 DEPEND=$(OBJS:.o=.d)
15 -include $(DEPEND)
16
17 hmland: $(HMLAN_OBJS)
18
19 hmsniff: $(HMSNIFF_OBJS)
20
21 flash-hmcfgusb: $(FLASH_HMCFGUSB_OBJS)
22
23 clean:
24 rm -f $(HMLAN_OBJS) $(HMSNIFF_OBJS) $(FLASH_HMCFGUSB_OBJS) $(DEPEND) hmland hmsniff flash-hmcfgusb
25
26 .PHONY: all clean
Impressum, Datenschutz