use FCGX_Free
[catagits/fcgi2.git] / examples / Makefile.in
index da6a0be..243411e 100644 (file)
@@ -3,7 +3,7 @@
 #
 #  Open Market, Inc.
 #
-#  $Id: Makefile.in,v 1.2 1999/07/26 04:28:08 roberts Exp $
+#  $Id: Makefile.in,v 1.6 1999/07/28 02:25:32 roberts Exp $
 #
 
 SHELL = @SHELL@
@@ -16,25 +16,19 @@ CFLAGS      = @CCDEFS@ @PROFILE@ -I$(INCLUDEDIR)
 LIBS   = @LIBS@
 RANLIB = @RANLIB@
 
-PERL_INSTALL = /usr/local/bin/perl5-fcgi
-TCL_INSTALL  = /usr/local/bin/tcl7.4-fcgi
-
 INCLUDES    = $(INCLUDEDIR)/fastcgi.h $(INCLUDEDIR)/fcgiapp.h \
              $(INCLUDEDIR)/fcgimisc.h $(INCLUDEDIR)/fcgiappmisc.h \
               $(INCLUDEDIR)/fcgi_stdio.h
 LIBDIR      = ../libfcgi
 LIBFCGI            = $(LIBDIR)/libfcgi.${L}
-TARGETS            = tiny-cgi.cgi tiny-fcgi tiny-fcgi2 tiny-authorizer \
-             echo echo2 sample-store sockets echo.fcg perl tclsh \
-              SampleStore.state.0 SampleStore.state.1 log-dump threaded.fcg
+TARGETS            = tiny-fcgi tiny-fcgi2 tiny-authorizer \
+             echo echo2 SampleStore/sample-store sockets echo.fcg \
+              SampleStore/SampleStore.state.0 SampleStore/SampleStore.state.1 log-dump threaded.fcg
 
 all: $(TARGETS)
 
 threaded.fcg: threaded.c $(INCLUDES)
-       $(CC) $(CFLAGS) -D_REENTRANT threaded.c -o threaded.fcg $(LIBFCGI) -lpthread
-
-tiny-cgi.cgi: tiny-cgi.${O}
-       $(CC) $(CFLAGS) tiny-cgi.${O} -o tiny-cgi.cgi
+       $(CC) $(CFLAGS) -D_REENTRANT threaded.c -o threaded.fcg $(LIBFCGI) $(LIBS) -lpthread
 
 tiny-fcgi: tiny-fcgi.${O} $(LIBFCGI)
        $(CC) $(CFLAGS) tiny-fcgi.${O} -o tiny-fcgi $(LIBFCGI) $(LIBS)
@@ -51,8 +45,8 @@ echo: echo.${O} $(LIBFCGI)
 echo2: echo2.${O} $(LIBFCGI)
        $(CC) $(CFLAGS) echo2.${O} -o echo2 $(LIBFCGI) $(LIBS)
 
-sample-store: sample-store.${O} tclHash.${O} $(LIBFCGI)
-       $(CC) $(CFLAGS) sample-store.${O} tclHash.${O} -o sample-store $(LIBFCGI) $(LIBS)
+SampleStore/sample-store: SampleStore/sample-store.${O} SampleStore/tclHash.${O} $(LIBFCGI)
+       $(CC) $(CFLAGS) -ISampleStore SampleStore/sample-store.${O} SampleStore/tclHash.${O} -o SampleStore/sample-store $(LIBFCGI) $(LIBS)
 
 log-dump: log-dump.${O} $(LIBFCGI)
        $(CC) $(CFLAGS) log-dump.${O} -o log-dump $(LIBFCGI) $(LIBS)
@@ -64,28 +58,18 @@ echo.fcg:
        rm -f echo.fcg
        ln -s echo echo.fcg
 
-perl:
-       rm -f perl
-       ln -s $(PERL_INSTALL)/bin/perl perl
-
-tclsh:
-       rm -f tclsh
-       ln -s $(TCL_INSTALL)/bin/tclsh7.4 tclsh
+SampleStore/SampleStore.state.0:
+       mkdir SampleStore/SampleStore.state.0
 
-SampleStore.state.0:
-       mkdir SampleStore.state.0
-
-SampleStore.state.1:
-       mkdir SampleStore.state.1
+SampleStore/SampleStore.state.1:
+       mkdir SampleStore/SampleStore.state.1
 
 clean:
-       rm -rf sockets SampleStore.state.0 SampleStore.state.1
+       rm -rf sockets SampleStore/SampleStore.state.?
        rm -f *.${L} *.${O} core.* errs *~ \#* TAGS *.E a.out $(TARGETS)
 
 # ----------------------------------------------------------------------------
 
-tiny-cgi.${O}: tiny-cgi.c $(INCLUDES)
-
 tiny-fcgi.${O}: tiny-fcgi.c $(INCLUDES)
 
 tiny-fcgi2.${O}: tiny-fcgi2.c $(INCLUDES)
@@ -96,8 +80,10 @@ echo.${O}: echo.c $(INCLUDES)
 
 echo2.${O}: echo2.c $(INCLUDES)
 
-sample-store.${O}: sample-store.c $(INCLUDES)
+SampleStore/sample-store.${O}: SampleStore/sample-store.c $(INCLUDES)
+       $(CC) $(CFLAGS) -ISampleStore -c SampleStore/sample-store.c -o SampleStore/sample-store.${O}
 
-tclHash.${O}: tclHash.c
+SampleStore/tclHash.${O}: SampleStore/tclHash.c
+       $(CC) $(CFLAGS) -ISampleStore -c SampleStore/tclHash.c -o SampleStore/tclHash.${O}
 
 log-dump.${O}: log-dump.c $(INCLUDES)