# This makefile prototype is edited by the script ./Config to # produce the file include/make.include which is included in # every makefile via an environment variable. RM=rm FFLAGS = $(fflags) -I$(JSPC)/include -I$(OPENWIN_INCLUDE) -I$(X11_INCLUDE) CFLAGS = $(cflags) -I$(JSPC)/include -I$(OPENWIN_INCLUDE) -I$(X11_INCLUDE) LDFLAGS = $(ldflags) -L$(JSPC)/lib -L$(OPENWIN_LIB) -L$(X11_LIB) LDLIBS= $(ldlibs) DIRS=`ls -F | grep / | egrep -v 'SCCS|.*-' | sed 's+/++g'` PRINT=enscript -2r INSTALL=cp all:: localall localall : $(INCLUDE) $(LIBS) $(BIN) all debug profile lint clean print purge relink test Include install :: FORCED @-DIRS="$(DIRS)" ;\ for i in $$DIRS ; do \ ( cd $$i ; $(MAKE) $@ ; ) \ done FORCED : clean :: rm -f .print .all *.rh *.o *.a *~ .nse_depinfo .make.* \ .include .installlib .installbin $(BIN) $(LIB) $(CLEAN) print :: .print $(PRINT) $? ; touch .print purge :: rm -f .make.state relink :: @rm $(BIN) ; $(MAKE) install install :: .installlib .installbin .installman1 .installman3 .installman5 .installdata Include :: .include .include : $(INCLUDE) if [ "x$?" != x ] ; then \ (cd $(JSPC)/include ; rm -f $?) ; $(INSTALL) $? $(JSPC)/include ; fi ; true touch .include .installbin : $(BIN) if [ "x$?" != x ] ; then \ (cd $(JSPC)/bin ; rm -f $?) ; $(INSTALL) $? $(JSPC)/bin ; fi ; true touch .installbin .installlib : $(LIB) if [ "x$?" != x ] ; then \ $(INSTALL) $? $(JSPC)/lib ; (cd $(JSPC)/lib ; ranlib $? ) ; fi ; true touch .installlib .installman1 : $(MAN1) if [ "x$?" != x ] ; then \ (cd $(JSPC)/man/man1 ; rm -f $?) ; $(INSTALL) $? $(JSPC)/man/man1 ; fi ; true touch .installman1 .installman3 : $(MAN3) if [ "x$?" != x ] ; then \ (cd $(JSPC)/man/man3 ; rm -f $?) ; $(INSTALL) $? $(JSPC)/man/man3 ; fi ; true touch .installman3 .installman5 : $(MAN5) if [ "x$?" != x ] ; then \ (cd $(JSPC)/man/man5 ; rm -f $?) ; $(INSTALL) $? $(JSPC)/man/man5 ; fi ; true touch .installman5 .installdata : $(DATA) -if [ "x$(DATADIR)" != x ] ; then \ if [ ! -d $(JSPC)/data/$(DATADIR) ] ; then \ mkdir -p $(JSPC)/data/$(DATADIR) ; \ fi ; \ fi ; true if [ "x$?" != x ] ; then \ ( cd $(JSPC)/data/$(DATADIR) ; rm -f $?) ; \ $(INSTALL) $? $(JSPC)/data/$(DATADIR) ; \ fi ; true touch .installdata