blob: 934134b5ee55c779a0aabe4e6663d237069425df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
#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=file.a
OBJS=dir.o \
fileacc.o \
filedup.o \
filestat.o \
open.o \
pipe.o \
readwrite.o \
seek.o \
maperrorcode.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
dir.o: dir.c fileio.h $(INCDIR1)/apr_private.h \
$(INCDIR1)/apr_general.h $(INCDIR1)/apr.h \
$(INCDIR1)/apr_errno.h $(INCDIR1)/apr_file_io.h \
$(INCDIR1)/apr_time.h $(INCDIR1)/apr_lib.h \
$(INCDIR1)/apr_thread_proc.h
fileacc.o: fileacc.c fileio.h $(INCDIR1)/apr_private.h \
$(INCDIR1)/apr_general.h $(INCDIR1)/apr.h \
$(INCDIR1)/apr_errno.h $(INCDIR1)/apr_file_io.h \
$(INCDIR1)/apr_time.h $(INCDIR1)/apr_lib.h \
$(INCDIR1)/apr_thread_proc.h
filedup.o: filedup.c fileio.h $(INCDIR1)/apr_private.h \
$(INCDIR1)/apr_general.h $(INCDIR1)/apr.h \
$(INCDIR1)/apr_errno.h $(INCDIR1)/apr_file_io.h \
$(INCDIR1)/apr_time.h $(INCDIR1)/apr_lib.h \
$(INCDIR1)/apr_thread_proc.h
filestat.o: filestat.c fileio.h $(INCDIR1)/apr_private.h \
$(INCDIR1)/apr_general.h $(INCDIR1)/apr.h \
$(INCDIR1)/apr_errno.h $(INCDIR1)/apr_file_io.h \
$(INCDIR1)/apr_time.h $(INCDIR1)/apr_lib.h \
$(INCDIR1)/apr_thread_proc.h
maperrorcode.o: maperrorcode.c fileio.h $(INCDIR1)/apr_private.h \
$(INCDIR1)/apr_general.h $(INCDIR1)/apr.h \
$(INCDIR1)/apr_errno.h $(INCDIR1)/apr_file_io.h \
$(INCDIR1)/apr_time.h ../../network_io/os2/os2calls.h
open.o: open.c fileio.h $(INCDIR1)/apr_private.h \
$(INCDIR1)/apr_general.h $(INCDIR1)/apr.h \
$(INCDIR1)/apr_errno.h $(INCDIR1)/apr_file_io.h \
$(INCDIR1)/apr_time.h $(INCDIR1)/apr_lib.h \
$(INCDIR1)/apr_thread_proc.h $(INCDIR1)/apr_portable.h \
$(INCDIR1)/apr_network_io.h $(INCDIR1)/apr_lock.h
pipe.o: pipe.c fileio.h $(INCDIR1)/apr_private.h \
$(INCDIR1)/apr_general.h $(INCDIR1)/apr.h \
$(INCDIR1)/apr_errno.h $(INCDIR1)/apr_file_io.h \
$(INCDIR1)/apr_time.h $(INCDIR1)/apr_lib.h \
$(INCDIR1)/apr_thread_proc.h
readwrite.o: readwrite.c fileio.h $(INCDIR1)/apr_private.h \
$(INCDIR1)/apr_general.h $(INCDIR1)/apr.h \
$(INCDIR1)/apr_errno.h $(INCDIR1)/apr_file_io.h \
$(INCDIR1)/apr_time.h $(INCDIR1)/apr_lib.h \
$(INCDIR1)/apr_thread_proc.h
seek.o: seek.c fileio.h $(INCDIR1)/apr_private.h \
$(INCDIR1)/apr_general.h $(INCDIR1)/apr.h \
$(INCDIR1)/apr_errno.h $(INCDIR1)/apr_file_io.h \
$(INCDIR1)/apr_time.h $(INCDIR1)/apr_lib.h \
$(INCDIR1)/apr_thread_proc.h
|