summaryrefslogtreecommitdiff
path: root/package/rarpd/patches/patch-Makefile_in
blob: f846712b0a14194c5adae14ac6dd84ecb8e2b708 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- rarpd-1.1.orig/Makefile.in	1999-10-20 22:57:13.000000000 +0200
+++ rarpd-1.1/Makefile.in	2011-01-20 15:06:00.144913893 +0100
@@ -1,17 +1,18 @@
 INSTALL		=	@srcdir@/install.sh
 CC		=	@CC@
 CFLAGS		=	@CFLAGS@ @DEFS@
+CPPFLAGS	=	@CPPFLAGS@
 ENSUREDIR	=	@srcdir@/ensure-dir.sh
 SBINDIR		=	@sbindir@
 
 all: rarpd
 
 .c.o:
-	$(CC) $(CFLAGS) -c $< -o $@
+	$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
 
 rarpd: rarpd.o @LIBOBJS@
 	$(CC) @LDFLAGS@ -o $@ rarpd.o @LIBOBJS@ @LIBS@
 
 install: rarpd
-	$(ENSUREDIR)	$(DESTDIR)$(SBINDIR)	755
+	@mkdir -p $(DESTDIR)$(SBINDIR)
 	$(INSTALL) 	-c -m 0755 rarpd	$(DESTDIR)$(SBINDIR)