Lines 1-62
Link Here
|
1 |
--- src/Makefile.in.orig Tue Jul 13 02:43:41 2004 |
|
|
2 |
+++ src/Makefile.in Wed Aug 11 22:02:44 2004 |
3 |
@@ -28,37 +28,38 @@ |
4 |
INCLUDES = -I$(top_srcdir)/src |
5 |
RM = rm -f |
6 |
|
7 |
+SRCS= suphp.c filesystem.c check.c error.c log.c compat.c |
8 |
+OBJS= ${SRCS:.c=.o} |
9 |
+ |
10 |
all: suphp suphp.mod |
11 |
|
12 |
-suphp: suphp.o filesystem.o check.o error.o log.o compat.o |
13 |
- $(CC) $(LDFLAGS) $(DEFS) -o suphp \ |
14 |
- suphp.o filesystem.o check.o error.o log.o compat.o |
15 |
+suphp: ${OBJS} |
16 |
+ $(CC) $(LDFLAGS) $(DEFS) -o suphp ${OBJS} |
17 |
|
18 |
suphp.mod: |
19 |
@if test "$(APXS)" != "/notfound/"; then \ |
20 |
if test "$(APACHE_VERSION_2)" = "true"; then \ |
21 |
echo "*** INFO: Building mod_suphp for Apache 2.0 ***"; \ |
22 |
- $(MAKE) $(MAKEDEFS) -C apache2; \ |
23 |
+ cd apache2 && $(MAKE) $(MAKEDEFS); \ |
24 |
fi; \ |
25 |
if test "$(APACHE_VERSION_1_3)" = "true"; then \ |
26 |
echo "*** INFO: Building mod_suphp for Apache 1.3 ***"; \ |
27 |
- $(MAKE) $(MAKEDEFS) -C apache; \ |
28 |
+ cd apache && $(MAKE) $(MAKEDEFS); \ |
29 |
fi; \ |
30 |
else \ |
31 |
echo "*** WARNING: No 'apxs' found. Skipping mod_suphp! ***"; \ |
32 |
fi |
33 |
|
34 |
install: suphp suphp.mod |
35 |
- $(INSTALL_PROGRAM) -d $(DESTDIR)$(sbindir) |
36 |
$(INSTALL_PROGRAM) -m 4755 suphp $(DESTDIR)$(sbindir)/suphp |
37 |
@if test "$(APXS)" != "/notfound/"; then \ |
38 |
if test "$(APACHE_VERSION_2)" = "true"; then \ |
39 |
echo "*** INFO: Installing mod_suphp for Apache 2.0 ***"; \ |
40 |
- $(MAKE) $(MAKEDEFS) -C apache2 install; \ |
41 |
+ cd apache2 && $(MAKE) $(MAKEDEFS) install; \ |
42 |
fi; \ |
43 |
if test "$(APACHE_VERSION_1_3)" = "true"; then \ |
44 |
echo "*** INFO: Installing mod_suphp for Apache 1.3 ***"; \ |
45 |
- $(MAKE) $(MAKEDEFS) -C apache install; \ |
46 |
+ cd apache && $(MAKE) $(MAKEDEFS) install; \ |
47 |
fi; \ |
48 |
else \ |
49 |
echo "*** WARNING: No 'apxs' found. Skipping installation of mod_suphp! ***"; \ |
50 |
@@ -66,9 +67,9 @@ |
51 |
|
52 |
clean: |
53 |
$(RM) suphp *.o |
54 |
- @$(MAKE) $(MAKEDEFS) -C apache clean |
55 |
- @$(MAKE) $(MAKEDEFS) -C apache2 clean |
56 |
+ cd apache && $(MAKE) $(MAKEDEFS) clean |
57 |
+ cd apache2 && $(MAKE) $(MAKEDEFS) clean |
58 |
|
59 |
-%.o : %.c |
60 |
+${OBJS}: ${SRCS} |
61 |
$(CC) -c $(CFLAGS) $(DEFS) $(INCLUDES) -o $@ $< |
62 |
|