View | Details | Raw Unified | Return to bug 69139
Collapse All | Expand All

(-)suphp/files/patch-src::Makefile.in (-3 / +28 lines)
Lines 1-10 Link Here
1
--- src/Makefile.in.orig	Mon Aug 25 11:50:48 2003
1
--- src/Makefile.in.orig	Mon Aug 25 11:50:48 2003
2
+++ src/Makefile.in	Mon Aug 25 11:50:55 2003
2
+++ src/Makefile.in	Thu Jul 15 22:52:13 2004
3
@@ -39,7 +39,6 @@
3
@@ -28,11 +28,13 @@
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
@@ -49,7 +51,6 @@
4
 	fi
21
 	fi
5
 
22
 
6
 install: suphp suphp.mod
23
 install: suphp suphp.mod
7
-	$(INSTALL_PROGRAM) -d $(DESTDIR)$(sbindir)
24
-	$(INSTALL_PROGRAM) -d $(DESTDIR)$(sbindir)
8
 	$(INSTALL_PROGRAM) -m 4755 suphp $(DESTDIR)$(sbindir)/suphp
25
 	$(INSTALL_PROGRAM) -m 4755 suphp $(DESTDIR)$(sbindir)/suphp
9
 	@$(MAKE) $(MAKEDEFS) -C apache install
26
 	@if test "$(APXS)" != "/notfound/"; then \
27
 	  if test "$(APACHE_VERSION_2)" = "true"; then \
28
@@ -69,6 +70,6 @@
29
 	@$(MAKE) $(MAKEDEFS) -C apache clean
30
 	@$(MAKE) $(MAKEDEFS) -C apache2 clean
31
 
32
-%.o : %.c
33
+${OBJS}: ${SRCS}
34
 	$(CC) -c $(CFLAGS) $(DEFS) $(INCLUDES) -o $@ $<

Return to bug 69139