summarylogtreecommitdiffstats
path: root/bgpq3_install_destdir_cppflags.patch
blob: 9e89e6778a0ea6f3bf14119bdb1c12a3808906ea (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
diff -ruw bgpq3-0.1.35/Makefile.in bgpq3-0.1.35.patched/Makefile.in
--- bgpq3-0.1.35/Makefile.in	2018-11-30 10:53:12.000000000 +0100
+++ bgpq3-0.1.35.patched/Makefile.in	2020-10-04 15:23:52.608308665 +0200
@@ -1,5 +1,5 @@
 CC=@CC@
-CFLAGS=@CFLAGS@ @DEFS@ -g -Wall -I. -O0
+CFLAGS=@CFLAGS@ @DEFS@ -Wall -I.
 LDADD=@LDFLAGS@ @LIBS@
 INSTALL=@INSTALL@
 
@@ -20,19 +20,18 @@
 all: bgpq3
 
 bgpq3: ${OBJECTS}
-	${CC} ${CFLAGS} -o bgpq3 ${OBJECTS} ${LDADD}
+	${CC} ${CFLAGS} ${CPPFLAGS} -o bgpq3 ${OBJECTS} ${LDADD}
 
 .c.o: 
-	${CC} ${CFLAGS} -c $<
+	${CC} ${CFLAGS} ${CPPFLAGS} -c $<
 
 clean: 
 	rm -rf Makefile autom4te.cache bgpq3 config.h config.log config.status
 	rm -rf *.o *.core core.* core
 
 install: bgpq3
-	${INSTALL} -c -s -m 755 bgpq3 @bindir@
-	if test ! -d @prefix@/man/man8 ; then mkdir -p @prefix@/man/man8 ; fi
-	${INSTALL} -m 644 bgpq3.8 @prefix@/man/man8
+	${INSTALL} -D -c -s -m 755 bgpq3 ${DESTDIR}@bindir@/bgpq3
+	${INSTALL} -D -m 644 bgpq3.8 ${DESTDIR}@mandir@/man8/bgpq3.8
 
 depend: 
 	makedepend -- $(CFLAGS) -- $(SRCS)