rebuild geeqie
[oi-userland.git] / components / network / tunctl / patches / 01-Makefile.in.patch
blob7fef49ed373841b99103ccc0f30d8fe4c95e51cf
1 --- ./Makefile.in.~1~ 2014-12-14 12:59:41.000000000 +0100
2 +++ ./Makefile.in 2016-11-20 00:07:51.307370977 +0100
3 @@ -19,24 +19,27 @@
4 CC = gcc
5 LD = ld
7 -CFLAGS = -O2 -Wall -I.
8 +CFLAGS = @CFLAGS@
9 +LDFLAGS = @LDFLAGS@
11 INSTALL = @INSTALL@
13 exec_prefix = @prefix@
14 BINDIR = @sbindir@
15 +SRCDIR = @srcdir@
16 +DESTDIR = @prefix@
18 -all: tunctl
19 +all: tunctl
21 -tunctl: tunctl.c if_tun.h
22 - $(CC) $(CFLAGS) tunctl.c -o tunctl
23 +tunctl: $(SRCDIR)/tunctl.c $(SRCDIR)/if_tun.h
24 + $(CC) $(CFLAGS) $(LDFLAGS) $(SRCDIR)/tunctl.c -o tunctl
26 install: all
27 - $(INSTALL) -d $(BINDIR)
28 - $(INSTALL) -m 755 -o root -g root tunctl $(BINDIR)
29 + $(INSTALL) -d $(DESTDIR)$(BINDIR)
30 + $(INSTALL) -m 755 tunctl $(DESTDIR)$(BINDIR)
32 uninstall:
33 - rm $(BINDIR)/tunctl
34 + rm $(DESTDIR)$(BINDIR)/tunctl
36 clean: distclean
37 rm -f tunctl *.o *~