# Generated automatically from Makefile.in by configure. # Contrib Makefile - Last updated 10/15/2001 CC=cc CFLAGS=-fno-common -I/usr/local/include -DHAVE_CONFIG_H LDFLAGS= -L/usr/local/lib # Source code directories SRC_COMMON=../common SRC_CGI=../cgi # Generated automatically from configure script SNPRINTF_O= INSTALL=/usr/bin/install -c -o root -g wheel INSTALL_OPTS=-o netsaint -g netsaint CGIDIR=/usr/local/share/netsaint/sbin ALL=daemonchk.cgi traceroute.cgi mini_epn CGI_C=$(SRC_CGI)/getcgi.c CGI_O=$(SRC_CGI)/getcgi.o $(SNPRINTF_O) CGI_H=$(SRC_CGI)/getcgi.h COMMON_H=$(SRC_COMMON)/config.h $(SRC_COMMON)/common.h $(SRC_COMMON)/locations.h ############################################################################## # standard targets (all, clean, distclean, devclean, install) all: $(ALL) clean: rm -f daemonchk.cgi mini_epn rm -f core *.o rm -f *~ rm -f Makefile distclean: clean devclean: clean install: $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(CGIDIR) for f in $(ALL); do $(INSTALL) -m 775 $(INSTALL_OPTS) $$f $(DESTDIR)$(CGIDIR); done ############################################################################## # rules and dependencies for actual target programs daemonchk.cgi: daemonchk.c $(CGI_O) $(CGI_H) $(COMMON_H) mini_epn: mini_epn.c $(CC) $(CFLAGS) $(LDFLAGS) mini_epn.c `perl -MExtUtils::Embed -e ccopts -e ldopts` -o $@ ############################################################################## # dependencies $(CGI_O): $(CGI_C) cd $(SRC_CGI); make $(CGI_O) ############################################################################## # implicit rules %.cgi : %.c $(CC) $(CFLAGS) $(LDFLAGS) $< $(CGI_O) -o $@