summaryrefslogtreecommitdiff
path: root/net/lmd/files/patch-modules_check::Makefile
blob: 312f1b56ce84b3d710030d6c34ff93891d84f266 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- modules_check/Makefile.orig	Sun Nov 25 17:31:09 2001
+++ modules_check/Makefile	Sat Feb 21 14:25:58 2004
@@ -1,14 +1,15 @@
 # If you want to debug lmd comment out this line and recompile it
 # Launch lmd with -v option to see debug messages
 #DEBUG=-DDEBUG
-OPTS=-Wall -fomit-frame-pointer -O2 -pipe -ansi
+OPTS=${CFLAGS} ${CPPFLAGS} -ansi
+CC?=cc
 
 all: socket.o
-	gcc ${DEBUG} ${OPTS} -c ldd_http_module.c
-	gcc ${DEBUG} -shared ldd_http_module.o socket.o -o ldd_http_module.so
+	${CC} ${DEBUG} ${OPTS} -c ldd_http_module.c
+	${CC} ${DEBUG} -shared ldd_http_module.o socket.o -o ldd_http_module.so
 
 socket.o:
-	gcc -c ../socket.c -o socket.o
+	${CC} ${OPTS} -c ../socket.c -o socket.o
 
 clean:
 	rm *.so *.o