Fixed boot command to work with old and new bootloader
[iot-gateway/lighting-gateway.git] / server / linux-gnu / makefile
2 SBU_REV= "0.1"
4 GCC = gcc
6 CFLAGS = -Wall -DVERSION_NUMBER=${SBU_REV}
7 OBJECTS = zbController.o ../../zbSocDriver/zbSocCmd.o interface_devicelist.o interface_grouplist.o interface_scenelist.o interface_srpcserver.o socket_server.o SimpleDB.o SimpleDBTxt.o
8 DEFS += -D_GNU_SOURCE
9 INCLUDE = -I../../zbSocDriver/
11 APP_NAME=zllGateway.bin
13 .PHONY: all, clean
15 ${APP_NAME}: ${OBJECTS}
16         $(GCC) $(CFLAGS) $(OBJECTS) -o ${APP_NAME}
18 %.o: ../Source/%.c
19         ${GCC} ${CFLAGS} ${INCLUDE} ${DEFS} -c -o $@ $<
21 all: ${APP_NAME}
23 clean:
24         rm -rf *.o ${APP_NAME}
25         rm -rf ../../zbSocDriver/*.o ${APP_NAME}