]>
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 | ||
d57fdaf6 MG |
6 | HMLAN_OBJS=hmcfgusb.o hmland.o |
7 | HMSNIFF_OBJS=hmcfgusb.o hmsniff.o | |
6c5c2df7 | 8 | FLASH_HMCFGUSB_OBJS=hmcfgusb.o firmware.o flash-hmcfgusb.o |
9db2e455 | 9 | |
9fb0f4d2 | 10 | OBJS=$(HMLAN_OBJS) $(HMSNIFF_OBJS) $(FLASH_HMCFGUSB_OBJS) |
d57fdaf6 | 11 | |
b5e57d26 | 12 | all: hmland hmsniff flash-hmcfgusb |
9db2e455 MG |
13 | |
14 | DEPEND=$(OBJS:.o=.d) | |
15 | -include $(DEPEND) | |
16 | ||
d57fdaf6 MG |
17 | hmland: $(HMLAN_OBJS) |
18 | ||
19 | hmsniff: $(HMSNIFF_OBJS) | |
9db2e455 | 20 | |
9fb0f4d2 MG |
21 | flash-hmcfgusb: $(FLASH_HMCFGUSB_OBJS) |
22 | ||
9db2e455 | 23 | clean: |
9fb0f4d2 | 24 | rm -f $(HMLAN_OBJS) $(HMSNIFF_OBJS) $(FLASH_HMCFGUSB_OBJS) $(DEPEND) hmland hmsniff flash-hmcfgusb |
9db2e455 MG |
25 | |
26 | .PHONY: all clean |