#PROG for normal programs #"-WL,unsat=debug" is a good one too #CFLAGS += #LISTFILE += #"-WL,caps=pm,ph,ia,ba" for PM programs #CAPS += DEFINES += -D_MPEXL_SOURCE -D_POSIX_SOURCE -D_SOCKET_SOURCE -D_PROTOTYPES #INCLUDES += -I/bsd/include # changed location 6/16/95 INCLUDES += -I/usr/include/bsd LIBS += -lbsd -lsocket -lc %.o: %.c .IF $(LISTFILE) -callci purge $(LISTFILE) c89 -c -P $(LISTFILE) $(CFLAGS) $(DEFINES) $(INCLUDES) $(@:b).c .ELSE c89 -c $(CFLAGS) $(DEFINES) $(INCLUDES) $(@:b).c .END $(PROG): noccopts $(OBJS) rstccopts c89 -o $(PROG) $(CAPS) $(OBJS) $(LIBS) $(LDADD) noccopts: @callci showvar ccopts > /tmp/ccopts.$$PPID ;\ if [ $$? -eq 0 ]; then ;\ callci 'setvar ccopts_save "!ccopts"' ;\ callci 'deletevar ccopts' ;\ echo ;\ echo "** Removed [`cat /tmp/ccopts.$$PPID`]" ;\ echo ;\ else;\ rm /tmp/ccopts.$$PPID ;\ fi rstccopts: @if [ -f /tmp/ccopts.$$PPID ]; then ;\ callci 'setvar ccopts "!ccopts_save"' ;\ callci 'deletevar ccopts_save' ;\ echo ;\ echo "** Restored [`cat /tmp/ccopts.$$PPID`]" ;\ echo ;\ rm /tmp/ccopts.$$PPID ;\ fi clean: rm -f *.o $(PROG) $(PRIVPROG) $(CLEAN)