]>
Commit | Line | Data |
---|---|---|
9db2e455 | 1 | CFLAGS=-MMD -O2 -Wall -I/opt/local/include -g |
bbbfeb45 | 2 | LDFLAGS=-L/opt/local/lib |
17fd6539 | 3 | LDLIBS=-lusb-1.0 -lrt |
9db2e455 MG |
4 | CC=gcc |
5 | ||
bcbce09d | 6 | HMLAN_OBJS=hmcfgusb.o hmland.o util.o |
d57fdaf6 | 7 | HMSNIFF_OBJS=hmcfgusb.o hmsniff.o |
47ea478b MG |
8 | FLASH_HMCFGUSB_OBJS=hmcfgusb.o firmware.o util.o flash-hmcfgusb.o |
9 | FLASH_OTA_OBJS=hmcfgusb.o culfw.o firmware.o util.o flash-ota.o | |
9db2e455 | 10 | |
25870f58 | 11 | OBJS=$(HMLAN_OBJS) $(HMSNIFF_OBJS) $(FLASH_HMCFGUSB_OBJS) $(FLASH_OTA_OBJS) |
d57fdaf6 | 12 | |
25870f58 | 13 | all: hmland hmsniff flash-hmcfgusb flash-ota |
9db2e455 MG |
14 | |
15 | DEPEND=$(OBJS:.o=.d) | |
16 | -include $(DEPEND) | |
17 | ||
d57fdaf6 MG |
18 | hmland: $(HMLAN_OBJS) |
19 | ||
20 | hmsniff: $(HMSNIFF_OBJS) | |
9db2e455 | 21 | |
9fb0f4d2 MG |
22 | flash-hmcfgusb: $(FLASH_HMCFGUSB_OBJS) |
23 | ||
25870f58 MG |
24 | flash-ota: $(FLASH_OTA_OBJS) |
25 | ||
9db2e455 | 26 | clean: |
25870f58 | 27 | rm -f $(HMLAN_OBJS) $(HMSNIFF_OBJS) $(FLASH_HMCFGUSB_OBJS) $(FLASH_OTA_OBJS) $(DEPEND) hmland hmsniff flash-hmcfgusb flash-ota |
9db2e455 MG |
28 | |
29 | .PHONY: all clean |