#CFLAGS=$(OPTIM) $(CFLAGS1) $(EXTRA_CFLAGS) #LIBS=$(EXTRA_LIBS) $(LIBS1) #INCLUDES=$(INCLUDES1) $(INCLUDES0) $(EXTRA_INCLUDES) #LDFLAGS=$(LDFLAGS1) $(EXTRA_LDFLAGS) CC=@CC@ RANLIB=@RANLIB@ CFLAGS=@CFLAGS@ @OPTIM@ LIBS=@LIBS@ LDFLAGS=@LDFLAGS@ $(LIBS) INCDIR=../../inc INCDIR1=../../include INCLUDES=-I$(INCDIR) -I$(INCDIR1) -I. LIB=network.a OBJS=poll.o \ sendrecv.o \ sockets.o \ sockopt.o \ sockaddr.o \ os2calls.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 | sed -e "s%\\\\\(.\)%/\\1%g" >> Makefile.new \ && sed -e '1,$$s: $(INCDIR)/: $$(INCDIR)/:g' \ -e '1,$$s: $(INCDIR1)/: $$(INCDIR1)/:g' \ -e '1,$$s: $(OSDIR)/: $$(OSDIR)/:g' Makefile.new \ > Makefile.in \ && rm Makefile.new # DO NOT REMOVE poll.o: poll.c networkio.h $(INCDIR1)/apr_network_io.h \ $(INCDIR1)/apr_general.h $(INCDIR1)/apr_config.h \ $(INCDIR1)/apr_errno.h $(INCDIR1)/apr_portable.h \ $(INCDIR1)/apr_thread_proc.h $(INCDIR1)/apr_file_io.h \ $(INCDIR1)/apr_win.h $(INCDIR1)/apr_lock.h \ $(INCDIR1)/apr_time.h $(INCDIR1)/apr_lib.h sendrecv.o: sendrecv.c networkio.h $(INCDIR1)/apr_network_io.h \ $(INCDIR1)/apr_general.h $(INCDIR1)/apr_config.h \ $(INCDIR1)/apr_errno.h $(INCDIR1)/apr_lib.h \ $(INCDIR1)/apr_file_io.h sockaddr.o: sockaddr.c ../unix/sockaddr.c ../unix/networkio.h \ $(INCDIR1)/apr_network_io.h $(INCDIR1)/apr_general.h \ $(INCDIR1)/apr_config.h $(INCDIR1)/apr_errno.h \ $(INCDIR1)/apr_lock.h $(INCDIR1)/apr_lib.h \ $(INCDIR1)/apr_file_io.h sockets.o: sockets.c networkio.h $(INCDIR1)/apr_network_io.h \ $(INCDIR1)/apr_general.h $(INCDIR1)/apr_config.h \ $(INCDIR1)/apr_errno.h $(INCDIR1)/apr_portable.h \ $(INCDIR1)/apr_thread_proc.h $(INCDIR1)/apr_file_io.h \ $(INCDIR1)/apr_win.h $(INCDIR1)/apr_lock.h \ $(INCDIR1)/apr_time.h $(INCDIR1)/apr_lib.h sockopt.o: sockopt.c ../unix/sockopt.c ../unix/networkio.h \ $(INCDIR1)/apr_network_io.h $(INCDIR1)/apr_general.h \ $(INCDIR1)/apr_config.h $(INCDIR1)/apr_errno.h \ $(INCDIR1)/apr_lock.h $(INCDIR1)/apr_lib.h \ $(INCDIR1)/apr_file_io.h