]> git.zerfleddert.de Git - hmcfgusb/blame - Makefile
set the source hmid, else OTA will fail
[hmcfgusb] / Makefile
CommitLineData
9db2e455 1CFLAGS=-MMD -O2 -Wall -I/opt/local/include -g
bbbfeb45 2LDFLAGS=-L/opt/local/lib
17fd6539 3LDLIBS=-lusb-1.0 -lrt
9db2e455
MG
4CC=gcc
5
d57fdaf6
MG
6HMLAN_OBJS=hmcfgusb.o hmland.o
7HMSNIFF_OBJS=hmcfgusb.o hmsniff.o
6c5c2df7 8FLASH_HMCFGUSB_OBJS=hmcfgusb.o firmware.o flash-hmcfgusb.o
25870f58 9FLASH_OTA_OBJS=hmcfgusb.o firmware.o flash-ota.o
9db2e455 10
25870f58 11OBJS=$(HMLAN_OBJS) $(HMSNIFF_OBJS) $(FLASH_HMCFGUSB_OBJS) $(FLASH_OTA_OBJS)
d57fdaf6 12
25870f58 13all: hmland hmsniff flash-hmcfgusb flash-ota
9db2e455
MG
14
15DEPEND=$(OBJS:.o=.d)
16-include $(DEPEND)
17
d57fdaf6
MG
18hmland: $(HMLAN_OBJS)
19
20hmsniff: $(HMSNIFF_OBJS)
9db2e455 21
9fb0f4d2
MG
22flash-hmcfgusb: $(FLASH_HMCFGUSB_OBJS)
23
25870f58
MG
24flash-ota: $(FLASH_OTA_OBJS)
25
9db2e455 26clean:
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
Impressum, Datenschutz