summaryrefslogtreecommitdiff
blob: 9b9af4abe68ab4e31c1e407966aed73e501bafbe (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
35
--- Makefile	2010-03-03 13:41:28.000000000 -0500
+++ /root/Makefile	2010-07-02 14:06:02.000000000 -0400
@@ -18,11 +18,11 @@
 #	02110-1301, USA
 #
 
-CPP = g++
-FLAGS= -Wall -Wextra -std=c++98 -D_REENTRANT
+CPP = ${CXX}
+#FLAGS= -Wall -Wextra -std=c++98 -D_REENTRANT
 #CPPFLAGS = ${FLAGS} -g -DDEBUG
 #CPPFLAGS = ${FLAGS} -g -pg -DDEBUG
-CPPFLAGS = -O2 ${FLAGS} -DNDEBUG
+CPPFLAGS = ${CXXFLAGS}
 
 HEADERDIR = include
 SRCDIR = src
@@ -39,8 +39,7 @@
 all: $(FILENAME)
 
 $(FILENAME): $(OBJECTS)
-	$(CPP) $(CPPFLAGS) $(INCLUDE) $(LIBS) ${OBJECTS} -o $(FILENAME)
-	strip $@
+	$(CPP) $(LDFLAGS) $(INCLUDE) $(LIBS) ${OBJECTS} -o $(FILENAME)
 
 %.o: %.cc
 	$(CPP) $(CPPFLAGS) $(INCLUDE) -c $<
@@ -55,7 +54,6 @@
 install:
 	install -D -p -m 755 $(FILENAME) $(DESTDIR)/usr/sbin/${FILENAME}
 	install -D -p -m 755 ipblock $(DESTDIR)/usr/sbin/ipblock
-	install -D -p -m 644 ipblockUI.jar $(DESTDIR)/usr/share/java/ipblockUI.jar
 
 deb:
 	dpkg-buildpackage -rfakeroot -tc -D -us -uc