# Author: Ram Samudrala (me@ram.org) # Version: O1.0 # Detail: # # January 1, 1997. # # See the URL above for terms of use. # BINDIR = /home/ram/cgi-bin # should be the protected directory --- this is where the modify # script will reside AUTHBINDIR = /home/ram/cgi-bin/auth-bin CC = cc HDRS = -I. CFLAGS = -O $(HDRS) LIBS = -lcrypt DEBUG_FLAGS = SRC1 = cgi_common.c \ cgi_display.c \ cgi_error_handlers.c \ cgi_password.c \ register.c SRC2 = cgi_common.c \ cgi_display.c \ cgi_error_handlers.c \ cgi_password.c \ modify.c OBJ1 = cgi_common.o \ cgi_display.o \ cgi_error_handlers.o \ cgi_password.o \ register.o OBJ2 = cgi_common.o \ cgi_display.o \ cgi_error_handlers.o \ cgi_password.o \ modify.o PROGRAM1 = register PROGRAM2 = modify ########################################################################## all: $(PROGRAM1) $(PROGRAM2) mv $(PROGRAM1) $(BINDIR) mv $(PROGRAM2) $(AUTHBINDIR) chmod +x $(BINDIR)/$(PROGRAM1) chmod +x $(AUTHBINDIR)/$(PROGRAM2) $(PROGRAM1): $(OBJ1) $(CC) $(OBJ1) -o $(PROGRAM1) $(LIBS) $(PROGRAM2): $(OBJ2) $(CC) $(OBJ2) -o $(PROGRAM2) $(LIBS) ########################################################################## cgi_common.o: cgi_common.c $(CC) $(CFLAGS) $(DEBUG_FLAGS) -c cgi_common.c cgi_display.o: cgi_display.c $(CC) $(CFLAGS) $(DEBUG_FLAGS) -c cgi_display.c cgi_error_handlers.o: cgi_error_handlers.c $(CC) $(CFLAGS) $(DEBUG_FLAGS) -c cgi_error_handlers.c cgi_password.o: cgi_password.c $(CC) $(CFLAGS) $(DEBUG_FLAGS) -c cgi_password.c modify.o: modify.c $(CC) $(CFLAGS) $(DEBUG_FLAGS) -c modify.c register.o: register.c $(CC) $(CFLAGS) $(DEBUG_FLAGS) -c register.c ########################################################################## lint_register: lint $(HDRS) $(SRC1) lint_modify: lint $(HDRS) $(SRC2) ########################################################################## clean: rm *.o ##########################################################################