# # Copyright @ 1995,96,97,98,99,2000 Dr. Clue # All rights reserved. # # This code is part of Dr. Clue's "sponsored code project" # If you find this source code usefull, a donation in the form of # the library fee would be appreciated. # Suggested contibution is $50 dollars. # Those fees go towards web-site costs involved in making the # material available. Without those donations, the site's costs of # operation come out of my own pocket. # # You can send those contributions to ... # # Ian A. Storms # Box 1736 # Watsonville ,Ca. 95077-1736 # United States Of America # ######### # # Makfile for producing the forms.cgi program that demonstrates # the forms class in action. To start tinkering with your own programs, # copy this file to a parallel directory you create for your project. # # # You will need to add a file with your own main() function and # comment out the "-DNEED_MAIN int the target $(OBJDIR)forms.o: # near the end of this Makefile. # # Add your intermediate object name to the OBJECTS variable # # Change OUTNAME to reflect the desired name of your new CGI. # # Documentation is available at # http://www.drclue.net/F1.cgi/HTML/FORMS_C/FORMS_C.html # # ################################################## # # [CONFIGURATION EXECUTABLE] # # OUTPATH - Directory where you want the resulting executable to be placed. # OUTNAME - Name of executable less the file extension. # OUTEXT - Extension for executable ( .cgi, .exe ) # # OUTPATH =../DCmiddleware_c/html/ OUTNAME =F1Forms OUTEXT =.cgi ################################################### # # [GENERIC DRCLUE MAKE INCLUSIONS ] # ################################################### include ../makelines/F1makefile.mk override COMPILE+= -g # The members of this string class are fairly similar to # those in javascript/JAVA include $(SRCDIR)makelines/F1String.mk # the namval class represents the managment of two string classes to act # as # a name / value pair. include $(SRCDIR)makelines/F1Namval.mk # This is a generic double-link list class I use in several places # it is designed to work with any list of pointers. # user assignable compare and lsting functions can be used to # allow searching and display w/o having to make a new class. include $(SRCDIR)makelines/F1Dlink.mk # Memory is a class that maintains a F1Dlink instance containing # namval classes. include $(SRCDIR)makelines/F1Memory.mk # F1_GEOMETRY provides functions in support of # server side image maps include $(SRCDIR)makelines/F1Geometry.mk # All of the above code which is shared by other applications I develope # is exploited here by the forms class to provide complete CGI support. # This is also where the main() function is for the demo mode. include $(SRCDIR)makelines/F1Forms.mk # Here we link it all togeather as a finished product. $(OUTSTRING): $(OBJECTS) @echo Linking $(OBJECTS) to $@ @gcc $(OBJECTS) $(LIBS) -o $@ @chmod g-w $@