TARGET = service_process Dir2store = /opt/Rockchip/external/X10/etc/scripts objects = *.o CFLAGS = -lpthread -lhiredis -lm -lcjson -liniparser ${TARGET}:$(objects) ${CC} log.c -o $@ $(objects) $(CFLAGS) %.o:%.c ${CC} -c main.c .PHONY:clean install uninstall clean: rm -f *.o ${TARGET} install: cp -f ${TARGET} ${Dir2store} uninstall: rm -f ${Dir2store}/${TARGET}