Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #!/usr/bin/make -f
  2. # file: nodes/Makefile
  3. # ====================================================================
  4. # environment definitions;
  5. # --------------------------------------------------------------------
  6. include ../make.def
  7. # ====================================================================
  8. # symbols;
  9. # --------------------------------------------------------------------
  10. CFLAGS+=
  11. LDFLAGS+=
  12. TRASH=*.o *.obj *.exe t t.* *~ *.[0-9][0-9][0-9]
  13. FILES=Makefile *.mak *.sh *.txt *.c *.h
  14. TOOLS=
  15. # ====================================================================
  16. # pseudo targets;
  17. # --------------------------------------------------------------------
  18. all compile: ${TOOLS}
  19. compact: compile
  20. if [ ! -z ${STRIP} ]; then ${STRIP} ${TOOLS}; fi
  21. if [ -x /usr/local/bin/upx ]; then upx --best ${TOOLS}; fi
  22. library:
  23. # install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${BIN}
  24. scripts manuals:
  25. install: $(TOOLS) library
  26. # install -m ${BIN_PERM} -o ${OWNER} -g ${GROUP} ${TOOLS} ${BIN}
  27. uninstall:
  28. # cd ${BIN}; rm -f ${TOOLS}
  29. check:
  30. ${SHELL} nodes.sh
  31. fresh: clean compile
  32. clean:
  33. rm -f ${TOOLS} ${TRASH}
  34. ignore:
  35. echo ${TOOLS} | tr ' ' '\n' > .gitignore
  36. # ====================================================================
  37. #
  38. # --------------------------------------------------------------------
  39. %: %.o
  40. ${CC} -o ${@} ${^} ${LDFLAGS}
  41. %.o: %.c
  42. ${CC} -c ${<} ${CFLAGS}
  43. $.h: %.h
  44. # ====================================================================
  45. #
  46. # --------------------------------------------------------------------
  47. include ../nodes/nodes.mak