Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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:
  25. manuals:
  26. # if [ ! -d ${MAN} ]; then install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${MAN}; fi
  27. install: compile library
  28. # install -m ${BIN_PERM} -o ${OWNER} -g ${GROUP} ${TOOLS} ${BIN}
  29. uninstall:
  30. # cd ${BIN}; rm -f ${TOOLS}
  31. clean:
  32. rm -f ${TOOLS} ${TRASH}
  33. check:
  34. ${SHELL} nodes.sh
  35. ignore:
  36. echo ${TOOLS} | tr ' ' '\n' > .gitignore
  37. # ====================================================================
  38. #
  39. # --------------------------------------------------------------------
  40. %: %.o
  41. ${CC} -o ${@} ${^} ${LDFLAGS}
  42. %.o: %.c
  43. ${CC} -c ${<} ${CFLAGS}
  44. $.h: %.h
  45. # ====================================================================
  46. #
  47. # --------------------------------------------------------------------
  48. include ../nodes/nodes.mak