Makefile 344 B

123456789101112131415161718192021
  1. TARGET = serial_ctrl
  2. # Dir2store = /opt/Rockchip/external/X10/etc/scripts
  3. objects = *.o
  4. CFLAGS = -lpthread -lhiredis -lm -liniparser -lcjson
  5. ${TARGET}:
  6. ${CC} *.c -o $@ $(CFLAGS)
  7. %.o:%.c
  8. ${CC} -c $<
  9. .PHONY:clean install uninstall
  10. clean:
  11. rm -f *.o ${TARGET}
  12. install:
  13. cp -f ${TARGET} ${Dir2store}
  14. uninstall:
  15. rm -f ${Dir2store}/${TARGET}