Commit | Line | Data |
---|---|---|
9db2e455 | 1 | CFLAGS=-MMD -O2 -Wall -I/opt/local/include -g |
bbbfeb45 MG |
2 | LDFLAGS=-L/opt/local/lib |
3 | LDLIBS=-lusb-1.0 | |
9db2e455 MG |
4 | CC=gcc |
5 | ||
d57fdaf6 MG |
6 | HMLAN_OBJS=hmcfgusb.o hmland.o |
7 | HMSNIFF_OBJS=hmcfgusb.o hmsniff.o | |
9fb0f4d2 | 8 | FLASH_HMCFGUSB_OBJS=hmcfgusb.o flash-hmcfgusb.o |
9db2e455 | 9 | |
9fb0f4d2 | 10 | OBJS=$(HMLAN_OBJS) $(HMSNIFF_OBJS) $(FLASH_HMCFGUSB_OBJS) |
d57fdaf6 MG |
11 | |
12 | all: hmland hmsniff | |
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 |