Lines 1-34
Link Here
|
1 |
--- ./Makefile.orig 2012-08-21 19:24:15.000000000 +0200 |
|
|
2 |
+++ ./Makefile 2014-04-17 15:33:06.454854016 +0200 |
3 |
@@ -5,7 +5,7 @@ |
4 |
# http://miniupnp.free.fr/libnatpmp.html |
5 |
|
6 |
OS = $(shell uname -s) |
7 |
-CC = gcc |
8 |
+CC ?= gcc |
9 |
INSTALL = install |
10 |
|
11 |
# APIVERSION is used in soname |
12 |
@@ -61,14 +61,14 @@ |
13 |
makedepend -f$(MAKEFILE_LIST) -Y $(OBJS:.o=.c) 2>/dev/null |
14 |
|
15 |
install: $(HEADERS) $(STATICLIB) $(SHAREDLIB) natpmpc-shared |
16 |
- $(INSTALL) -d $(INSTALLDIRINC) |
17 |
- $(INSTALL) -m 644 $(HEADERS) $(INSTALLDIRINC) |
18 |
- $(INSTALL) -d $(INSTALLDIRLIB) |
19 |
- $(INSTALL) -m 644 $(STATICLIB) $(INSTALLDIRLIB) |
20 |
- $(INSTALL) -m 644 $(SHAREDLIB) $(INSTALLDIRLIB)/$(SONAME) |
21 |
- $(INSTALL) -d $(INSTALLDIRBIN) |
22 |
- $(INSTALL) -m 755 natpmpc-shared $(INSTALLDIRBIN)/natpmpc |
23 |
- ln -s -f $(SONAME) $(INSTALLDIRLIB)/$(SHAREDLIB) |
24 |
+ $(INSTALL) -d $(DESTDIR)$(INSTALLDIRINC) |
25 |
+ $(INSTALL) -m 644 $(HEADERS) $(DESTDIR)$(INSTALLDIRINC) |
26 |
+ $(INSTALL) -d $(DESTDIR)$(INSTALLDIRLIB) |
27 |
+ $(INSTALL) -m 644 $(STATICLIB) $(DESTDIR)$(INSTALLDIRLIB) |
28 |
+ $(INSTALL) -m 644 $(SHAREDLIB) $(DESTDIR)$(INSTALLDIRLIB)/$(SONAME) |
29 |
+ $(INSTALL) -d $(DESTDIR)$(INSTALLDIRBIN) |
30 |
+ $(INSTALL) -m 755 natpmpc-shared $(DESTDIR)$(INSTALLDIRBIN)/natpmpc |
31 |
+ ln -s -f $(SONAME) $(DESTDIR)$(INSTALLDIRLIB)/$(SHAREDLIB) |
32 |
|
33 |
cleaninstall: |
34 |
$(RM) $(addprefix $(INSTALLDIRINC), $(HEADERS)) |