-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.in
103 lines (76 loc) · 2.18 KB
/
Makefile.in
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
# Prestan @configure_input@
SHELL = @SHELL@
# Installation directories
prefix = @prefix@
exec_prefix = @exec_prefix@
libexecdir = @libexecdir@
bindir = @bindir@
datadir = @datadir@
# Toolchain settings
CC = @CC@
CFLAGS = @CFLAGS@
CPPFLAGS = @DEFS@ @CPPFLAGS@ -I$(top_srcdir)/src
LDFLAGS = @LDFLAGS@
LIBS = @NEON_LIBS@ @LIBS@
# expat may be in LIBOBJS, so must come after $(LIBS) (which has -lneon)
ALL_LIBS = -L. -ltest -lm $(LIBS) $(LIBOBJS)
top_builddir = .
top_srcdir = @top_srcdir@
VPATH = @srcdir@
@SET_MAKE@
AR = @AR@
RANLIB = @RANLIB@
LIBOBJS = @LIBOBJS@
TESTOBJS = src/common.o
HDRS = src/common.h config.h
TESTS = Prestan
URL = http://`hostname`/dav/
CREDS = `whoami` `whoami`
DIR = .
OPTS =
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL = @INSTALL@
# Fixme; use $(LIBOBJS) here instead. not happy on many non-GNU makes
# though; not sure why.
ODEPS = subdirs libtest.a @LIBOBJS@
all: $(TESTS)
@echo
@echo " Now run:"
@echo ""
@echo ' make URL=http://dav.server/path/ check'
@echo ' or make URL=http://dav.server/path/ CREDS="uname passwd" check'
@echo ""
#Prestan: Prestan.in
# @./config.status Prestan
install: $(TESTS)
$(INSTALL) -d $(bindir)
$(INSTALL) -d $(libexecdir)/Prestan
$(INSTALL_PROGRAM) $(top_builddir)/Prestan $(bindir)/Prestan
for t in $(TESTS); do \
$(INSTALL_PROGRAM) $(top_builddir)/$$t $(libexecdir)/Prestan/$$t; done
Prestan: src/props.o src/basic.o src/locks.o $(ODEPS)
$(CC) $(LDFLAGS) -o $@ src/props.o src/basic.o src/locks.o $(ALL_LIBS)
props: src/props.o $(ODEPS)
$(CC) $(LDFLAGS) -o $@ src/props.o $(ALL_LIBS)
locks: src/locks.o $(ODEPS)
$(CC) $(LDFLAGS) -o $@ src/locks.o $(ALL_LIBS)
subdirs:
(cd libneon && $(MAKE)) || exit 1
libtest.a: $(TESTOBJS)
$(AR) cru $@ $(TESTOBJS)
$(RANLIB) $@
clean:
cd libneon && $(MAKE) clean
-rm -f */*.o $(TESTS) libtest.a
distclean: clean
-rm -f config.log config.status config.h Makefile libneon/Makefile
.c.o:
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
Makefile: $(top_srcdir)/Makefile.in
./config.status Makefile
src/common.o: src/common.c $(HDRS)
src/locks.o: src/locks.c $(HDRS)
src/props.o: src/props.c $(HDRS)
src/basic.o: src/basic.c $(HDRS)
.PHONY: clean distclean