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