blob: 22a6a43af300e52d5c1b4621405a0ec149421cb4 (
plain) (
blame)
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
|
--- Makefile.orig Sat Dec 14 06:16:22 2002
+++ Makefile Mon Apr 2 14:54:39 2007
@@ -1,6 +1,5 @@
-CC=g++
-INCLUDES= -I/usr/include/upnp
-LIBS= -lpthread /usr/lib/libupnp.so
+INCLUDES= -I$(LOCALBASE)/include
+LIBS= $(PTHREAD_LIBS) $(LOCALBASE)/lib/libupnp.so
ifeq ($(DEBUG),1)
@@ -16,17 +15,17 @@
all: $(APPS)
upnpd: gate.o gateway.o sample_util.o ipcon.o portmap.o pmlist.o
- $(CC) $(CFLAGS) gate.o gateway.o sample_util.o ipcon.o portmap.o pmlist.o $(LIBS) -o $@
+ $(CXX) $(CFLAGS) gate.o gateway.o sample_util.o ipcon.o portmap.o pmlist.o $(LIBS) -o $@
@echo "make $@ finished on `date`"
%.o: %.cpp
- $(CC) $(CFLAGS) $(INCLUDES) -c $<
+ $(CXX) $(CFLAGS) $(INCLUDES) -c $<
clean:
rm -f *.o $(APPS)
install: upnpd
- @install -d /etc/linuxigd
- @install etc/* /etc/linuxigd
- @install upnpd /usr/bin
+ @install -d $(PREFIX)/etc/linuxigd
+ @$(BSD_INSTALL_DATA) etc/* $(PREFIX)/etc/linuxigd
+ @$(BSD_INSTALL_PROGRAM) upnpd $(PREFIX)/bin
|