Makefile 343 B

123456789101112131415161718192021
  1. TARGET = play_ip
  2. Dir2store = /opt/Rockchip/external/X10/etc/scripts
  3. objects = *.o
  4. CFLAGS = -lhiredis -lm -liniparser
  5. ${TARGET}:$(objects)
  6. ${CC} -o $@ $(objects) $(CFLAGS)
  7. %.o:%.c
  8. ${CC} -c main.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}