more minor cleanups
[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 firmware.o flash-hmcfgusb.o
9 FLASH_OTA_OBJS=hmcfgusb.o firmware.o flash-ota.o
10
11 OBJS=$(HMLAN_OBJS) $(HMSNIFF_OBJS) $(FLASH_HMCFGUSB_OBJS) $(FLASH_OTA_OBJS)
12
13 all: hmland hmsniff flash-hmcfgusb flash-ota
14
15 DEPEND=$(OBJS:.o=.d)
16 -include $(DEPEND)
17
18 hmland: $(HMLAN_OBJS)
19
20 hmsniff: $(HMSNIFF_OBJS)
21
22 flash-hmcfgusb: $(FLASH_HMCFGUSB_OBJS)
23
24 flash-ota: $(FLASH_OTA_OBJS)
25
26 clean:
27 rm -f $(HMLAN_OBJS) $(HMSNIFF_OBJS) $(FLASH_HMCFGUSB_OBJS) $(FLASH_OTA_OBJS) $(DEPEND) hmland hmsniff flash-hmcfgusb flash-ota
28
29 .PHONY: all clean
Impressum, Datenschutz