Makefile 607 B

1234567891011121314151617181920212223242526
  1. # Main Makefile
  2. PROG= cms
  3. SRCS= cms.c filehelper.c buffer.c sitemap.c template.c \
  4. tmpl_parser.c helper.c handler.c linklist.c session.c \
  5. htpasswd.c
  6. SUBDIR= sitemap cgienv
  7. CFLAGS+= -I/usr/local/include
  8. LDFLAGS+= -L/usr/local/lib
  9. LDADD+= -lutil -lz -llowdown -lm
  10. LDSTATIC= ${STATIC}
  11. NOMAN= 1
  12. # include site settings
  13. .include "cmsconfig.mk"
  14. afterinstall:
  15. ${INSTALL} -d -o ${WWW_USER} -g ${WWW_GROUP} -m 700 \
  16. "${DESTDIR}${CHROOT}${SESSION_DIR}"
  17. test -d "${DESTDIR}${CMS_ROOT_DIR}" && \
  18. echo "CMS_HTROOT= ${CMS_HTROOT}" \
  19. > "${DESTDIR}${CMS_ROOT_DIR}/config.mk"
  20. .include <bsd.prog.mk>