blob: 0596a1a9ad57647aea63c7565569f82f85439b2e [file] [log] [blame]
#CFLAGS=$(OPTIM) $(CFLAGS1) $(EXTRA_CFLAGS)
#LIBS=$(EXTRA_LIBS) $(LIBS1)
#INCLUDES=$(INCLUDES1) $(INCLUDES0) $(EXTRA_INCLUDES)
#LDFLAGS=$(LDFLAGS1) $(EXTRA_LDFLAGS)
RM=@RM@
CC=@CC@
RANLIB=@RANLIB@
CFLAGS=@CFLAGS@ @OPTIM@
LIBS=@LIBS@
LDFLAGS=@LDFLAGS@ $(LIBS)
INCDIR=../../inc
INCDIR1=../../include
INCDIR2=../../file_io/unix
INCLUDES=-I$(INCDIR) -I$(INCDIR1) -I$(INCDIR2) -I.
LIB=../libthreadproc.a
OBJS=proc.o \
procsup.o \
thread.o \
threadcancel.o \
threadpriv.o \
signals.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
proc.o: proc.c threadproc.h ../../include/apr_thread_proc.h \
../../include/apr_file_io.h ../../include/apr_general.h \
../../include/apr_config.h ../../include/apr_errno.h \
../../include/apr_win.h ../../file_io/unix/fileio.h \
$(INCDIR)/apr_lib.h $(INCDIR)/apr_config.h $(INCDIR)/hsregex.h \
../../include/apr_portable.h ../../include/apr_network_io.h \
../../include/apr_lock.h ../../include/apr_time.h
procsup.o: procsup.c threadproc.h ../../include/apr_thread_proc.h \
../../include/apr_file_io.h ../../include/apr_general.h \
../../include/apr_config.h ../../include/apr_errno.h \
../../include/apr_win.h ../../file_io/unix/fileio.h \
$(INCDIR)/apr_config.h $(INCDIR)/apr_lib.h $(INCDIR)/hsregex.h
signals.o: signals.c threadproc.h ../../include/apr_thread_proc.h \
../../include/apr_file_io.h ../../include/apr_general.h \
../../include/apr_config.h ../../include/apr_errno.h \
../../include/apr_win.h ../../file_io/unix/fileio.h
thread.o: thread.c threadproc.h ../../include/apr_thread_proc.h \
../../include/apr_file_io.h ../../include/apr_general.h \
../../include/apr_config.h ../../include/apr_errno.h \
../../include/apr_win.h ../../include/apr_portable.h \
../../include/apr_network_io.h ../../include/apr_lock.h \
../../include/apr_time.h
threadcancel.o: threadcancel.c threadproc.h \
../../include/apr_thread_proc.h ../../include/apr_file_io.h \
../../include/apr_general.h ../../include/apr_config.h \
../../include/apr_errno.h ../../include/apr_win.h
threadpriv.o: threadpriv.c threadproc.h \
../../include/apr_thread_proc.h ../../include/apr_file_io.h \
../../include/apr_general.h ../../include/apr_config.h \
../../include/apr_errno.h ../../include/apr_win.h \
../../include/apr_portable.h ../../include/apr_network_io.h \
../../include/apr_lock.h ../../include/apr_time.h