| #CFLAGS=$(OPTIM) $(CFLAGS1) $(EXTRA_CFLAGS) |
| #LIBS=$(EXTRA_LIBS) $(LIBS1) |
| #INCLUDES=$(INCLUDES1) $(INCLUDES0) $(EXTRA_INCLUDES) |
| #LDFLAGS=$(LDFLAGS1) $(EXTRA_LDFLAGS) |
| |
| CC=@CC@ |
| RANLIB=@RANLIB@ |
| AR=@AR@ |
| RM=@RM@ |
| CFLAGS=@CFLAGS@ @OPTIM@ |
| LIBS=@LIBS@ |
| LDFLAGS=@LDFLAGS@ $(LIBS) |
| INCDIR=../inc |
| INCDIR1=../include |
| INCDIR2=../misc/@OSDIR@ |
| INCLUDES=-I$(INCDIR) -I$(INCDIR1) -I$(INCDIR2) |
| |
| LIB=@LIBPREFIX@apr.a |
| |
| OBJS=apr_cpystrn.o \ |
| apr_fnmatch.o \ |
| apr_execve.o \ |
| apr_md5.o \ |
| apr_pools.o \ |
| apr_signal.o \ |
| apr_slack.o \ |
| apr_snprintf.o \ |
| apr_tables.o \ |
| apr_getpass.o |
| |
| .c.o: |
| $(CC) $(CFLAGS) -c $(INCLUDES) $< |
| |
| all: $(LIB) |
| |
| clean: |
| $(RM) -f *.o *.a *.so |
| |
| distclean: clean |
| -$(RM) -f Makefile |
| |
| $(OBJS): Makefile |
| |
| $(LIB): $(OBJS) |
| $(RM) -f $@ |
| $(AR) cr $@ $(OBJS) |
| $(RANLIB) $@ |
| |
| # |
| # We really don't expect end users to use this rule. It works only with |
| # gcc, and rebuilds Makefile.tmpl. You have to re-run Configure after |
| # using it. |
| # |
| depend: |
| cp Makefile.in Makefile.in.bak \ |
| && sed -ne '1,/^# DO NOT REMOVE/p' Makefile.in > Makefile.new \ |
| && gcc -MM $(INCLUDES) $(CFLAGS) *.c >> Makefile.new \ |
| && sed -e '1,$$s: $(INCDIR)/: $$(INCDIR)/:g' \ |
| -e '1,$$s: $(OSDIR)/: $$(OSDIR)/:g' Makefile.new \ |
| > Makefile.in \ |
| && rm Makefile.new |
| |
| # DO NOT REMOVE |
| apr_cpystrn.o: apr_cpystrn.c $(INCDIR)/apr_config.h |
| apr_execve.o: apr_execve.c $(INCDIR)/apr_config.h |
| apr_fnmatch.o: apr_fnmatch.c $(INCDIR)/apr_config.h $(INCDIR)/apr_fnmatch.h \ |
| $(INCDIR)/apr_lib.h ../include/apr_general.h ../include/apr_config.h \ |
| ../include/apr_errno.h ../include/apr_file_io.h $(INCDIR)/hsregex.h |
| apr_getpass.o: apr_getpass.c $(INCDIR)/apr_config.h \ |
| ../include/apr_errno.h $(INCDIR)/apr_lib.h ../include/apr_general.h \ |
| ../include/apr_config.h ../include/apr_file_io.h $(INCDIR)/hsregex.h |
| apr_md5.o: apr_md5.c $(INCDIR)/apr_config.h $(INCDIR)/apr_md5.h \ |
| $(INCDIR)/apr_lib.h ../include/apr_general.h ../include/apr_config.h \ |
| ../include/apr_errno.h ../include/apr_file_io.h $(INCDIR)/hsregex.h |
| apr_pools.o: apr_pools.c $(INCDIR)/apr_config.h ../include/apr_general.h \ |
| ../include/apr_config.h ../include/apr_errno.h ../include/apr_pools.h \ |
| $(INCDIR)/apr_lib.h ../include/apr_file_io.h $(INCDIR)/hsregex.h \ |
| ../misc/unix/misc.h |
| apr_signal.o: apr_signal.c $(INCDIR)/apr_config.h $(INCDIR)/apr_lib.h \ |
| ../include/apr_general.h ../include/apr_config.h \ |
| ../include/apr_errno.h ../include/apr_file_io.h $(INCDIR)/hsregex.h |
| apr_slack.o: apr_slack.c $(INCDIR)/apr_config.h |
| apr_snprintf.o: apr_snprintf.c $(INCDIR)/apr_config.h $(INCDIR)/apr_lib.h \ |
| ../include/apr_general.h ../include/apr_config.h \ |
| ../include/apr_errno.h ../include/apr_file_io.h $(INCDIR)/hsregex.h |
| apr_tables.o: apr_tables.c $(INCDIR)/apr_config.h \ |
| ../include/apr_general.h ../include/apr_config.h \ |
| ../include/apr_errno.h ../include/apr_pools.h $(INCDIR)/apr_lib.h \ |
| ../include/apr_file_io.h $(INCDIR)/hsregex.h ../misc/unix/misc.h |