cmsconfig.mk 617 B

12345678910111213141516171819202122232425
  1. # Common setup
  2. CMS_HOSTNAME?= `hostname`
  3. CMS_CONTENT_DIR?= /var/www/cms/content
  4. PREFIX?= /var/www/cgi-bin/
  5. BINDIR= ${DESTDIR}${PREFIX}
  6. DAEMON= ${BINDIR}/${PROG}
  7. CHROOT?= /var/www
  8. # Absolute path from within the chroot
  9. CONTENT_DIR= ${CMS_CONTENT_DIR:S/^${CHROOT}//}
  10. # Common CFLAGS
  11. CFLAGS+= -Wall -I${.CURDIR}
  12. CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes
  13. CFLAGS+= -Wmissing-declarations
  14. CFLAGS+= -Wshadow -Wpointer-arith -Wsign-compare -Wcast-qual
  15. .if exists(localconfig.mk)
  16. .include <localconfig.mk>
  17. .endif
  18. CFLAGS+= -DCMS_HOSTNAME=\"${CMS_HOSTNAME}\" \
  19. -DCMS_CONTENT_DIR=\"${CONTENT_DIR}\"