CFLAGS=-MMD -O2 -Wall -I/opt/local/include -g
LDFLAGS=-L/opt/local/lib
-LDLIBS=-lusb-1.0
+LDLIBS=-lusb-1.0 -lrt
CC=gcc
HMLAN_OBJS=hmcfgusb.o hmland.o
HMSNIFF_OBJS=hmcfgusb.o hmsniff.o
-FLASH_HMCFGUSB_OBJS=hmcfgusb.o flash-hmcfgusb.o
+FLASH_HMCFGUSB_OBJS=hmcfgusb.o firmware.o flash-hmcfgusb.o
OBJS=$(HMLAN_OBJS) $(HMSNIFF_OBJS) $(FLASH_HMCFGUSB_OBJS)
-all: hmland hmsniff
+all: hmland hmsniff flash-hmcfgusb
DEPEND=$(OBJS:.o=.d)
-include $(DEPEND)