`# $Id: singlec,v 5.2 2012/12/14 20:43:41 ksb Exp $ # platform recipe for %% binary name %% TOP=%%/usr/local or pick a local root%% BIN=${DESTDIR}${TOP}/%% bin directory %% LIB=${DESTDIR}${TOP}/%% lib directory for data files %% DOC=${DESTDIR}${TOP}/%% man for the local manual page root %% I=/usr/include S=/usr/include/sys L=/usr/include/local P= PROG= %% program name %% INCLUDE=%% include file directories %% DEBUG= %% compiler debug/optimize switch %% CDEFS= -D'HOSTTYPE`%% extra arguments for the C compiler %% CFLAGS= ${DEBUG} ${CDEFS} ${INCLUDE} HDR= %% header (.h) files %% ONEC= %% one source (.c) file %% MAN= %% the manual page for this tool %% OTHER= README %% other files in this directory %% SOURCE= Makefile ${OTHER} ${MAN} ${HDR} ${ONEC} all: ${PROG} ${PROG}: ${ONEC} ${CC} -o $@ ${CFLAGS} ${ONEC} %% -ltermcap -lm -lopt -lpucc %% clean: FRC rm -f Makefile.bak ${PROG} a.out *.o core errs lint.out tags deinstall: ${MAN} ${DOC} FRC install -R ${BIN}/${PROG} mkcat -r${DOC} -D ${MAN} depend: ${HDR} ${ONEC} FRC maketd -b ${CDEFS} ${INCLUDE} ${ONEC} dirs: ${BIN} ${LIB} distrib: FRC distrib -c ${BIN}/${PROG} HOST install: all dirs FRC install -cs ${PROG} ${BIN}/${PROG} lint: ${HDR} ${ONEC} FRC lint -h ${CDEFS} ${INCLUDE} ${ONEC} mkcat: ${MAN} ${DOC} FRC mkcat -r${DOC} ${MAN} print: source FRC lpr -J"${PROG} source" ${SOURCE} source: ${SOURCE} spotless: clean rcsclean ${SOURCE} tags: ${HDR} ${ONEC} ctags -t ${HDR} ${ONEC} ${BIN} ${LIB}: install -dr $@ ${SOURCE}: co -q $@ FRC: # DO NOT DELETE THIS LINE - make depend DEPENDS ON IT # *** Do not add anything here - It will go away. *** 'dnl