Capture CreateFile()/GetLastError() in errno
[mod_fastcgi.git] / Makefile.tmpl
blobc821833e8a1348a515c6c4aecdb2897e70e97516
1
2 # Makefile.tmpl for the mod_fastcgi module
4 #   Apache v1.3's Configure uses this to create a Makefile 
5
6 # $Id: Makefile.tmpl,v 1.5 2000/04/06 19:10:52 robs Exp $
8 LIB=libfastcgi.$(LIBEXT)
10 OBJS=mod_fastcgi.o fcgi_buf.o fcgi_pm.o fcgi_protocol.o fcgi_config.o fcgi_util.o
12 # Build commands
14 all:  lib
15 lib: $(LIB)
17 $(LIB): $(OBJS)
18         rm -f $@
19         ar cr $@ $(OBJS)
20         $(RANLIB) $@
22 .c.o:
23         $(CC) -c $(INCLUDES) $(CFLAGS) $<
25 clean:
26         rm -f $(LIB) $(OBJS)
28 distclean: clean
29         rm -f Makefile
32 # NOT FOR END USERS!
33 depend:
34         cp Makefile.tmpl Makefile.tmpl.bak \
35             && sed -ne '1,/^# DO NOT REMOVE/p' Makefile.tmpl > Makefile.new \
36             && gcc -MM $(INCLUDES) $(CFLAGS) *.c >> Makefile.new \
37             && sed -e '1,$$s: $(INCDIR)/: $$(INCDIR)/:g' \
38                    -e '1,$$s: $(OSDIR)/: $$(OSDIR)/:g' Makefile.new \
39                 > Makefile.tmpl \
40             && rm Makefile.new
42 # Dependencies
44 $(OBJS): fcgi.h           \
45          mod_fastcgi.h    \
46          fcgi_protocol.h  \
47      $(INCDIR)/httpd.h               \
48      $(INCDIR)/http_config.h         \
49      $(INCDIR)/http_request.h        \
50      $(INCDIR)/http_core.h           \
51      $(INCDIR)/http_protocol.h       \
52      $(INCDIR)/http_main.h           \
53      $(INCDIR)/http_log.h            \
54      $(INCDIR)/util_script.h         \
55      $(INCDIR)/http_conf_globals.h   \
56      $(INCDIR)/util_md5.h