Makefile 676 B

12345678910111213141516171819202122232425262728
  1. # cgienv Makefile
  2. .PATH: ${.CURDIR}/../
  3. PROG= cgienv
  4. SRCS= cgienv.c template.c tmpl_parser.c buffer.c helper.c
  5. CFLAGS+= -I"${.CURDIR}/../" -I/usr/local/include
  6. CFLAGS+= -Wall
  7. CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes
  8. CFLAGS+= -Wmissing-declarations
  9. CFLAGS+= -Wshadow -Wpointer-arith -Wsign-compare -Wcast-qual
  10. CFLAGS+= -fdata-sections -ffunction-sections
  11. LDFLAGS+= -Wl,--gc-sections
  12. LDADD+= -lutil
  13. LDSTATIC= ${STATIC}
  14. NOMAN= 1
  15. BINDIR= /var/www/cgi-bin
  16. DAEMON= ${BINDIR}/${PROG}
  17. tmpl.h: ${.CURDIR}/env.template
  18. (echo -n "const char *env_tmpl = "; \
  19. sed 's/"/\\"/g;s/^/"/;s/$$/\\n"/' ${.CURDIR}/env.template ; \
  20. echo ";") > $@
  21. .include <bsd.prog.mk>