Blob Blame History Raw
diff -up extundelete-0.1.8/src/Makefile.old extundelete-0.1.8/src/Makefile
--- extundelete-0.1.8/src/Makefile.old	2010-04-11 20:46:41.660733332 +0000
+++ extundelete-0.1.8/src/Makefile	2010-04-11 20:47:58.352733386 +0000
@@ -1,38 +1,40 @@
+
+
 all: 
-	g++ -I. -g -W -Wall -Wredundant-decls -Wshadow -Woverloaded-virtual -Wpointer-arith -Wwrite-strings -c -o extundelete.o `test -f 'extundelete.cc' || echo './'`extundelete.cc
+	g++ -I. $(CXXFLAGS) -c -o extundelete.o `test -f 'extundelete.cc' || echo './'`extundelete.cc
 
-	g++ -I. -g -W -Wall -Wredundant-decls -Wshadow -Woverloaded-virtual -Wpointer-arith -Wwrite-strings -c -o block.o `test -f 'block.c' || echo './'`block.c
+	g++ -I. $(CXXFLAGS) -c -o block.o `test -f 'block.c' || echo './'`block.c
 
-	g++ -I. -g -W -Wall -Wredundant-decls -Wshadow -Woverloaded-virtual -Wpointer-arith -Wwrite-strings -c -o insertionops.o `test -f 'insertionops.cc' || echo './'`insertionops.cc
+	g++ -I. $(CXXFLAGS) -c -o insertionops.o `test -f 'insertionops.cc' || echo './'`insertionops.cc
 
-	g++ -o extundelete  extundelete.o block.o insertionops.o -lext2fs
+	g++ -o extundelete  extundelete.o block.o insertionops.o -lext2fs  -lcom_err
 
 profile: 
-	g++ -I. -g -W -Wall -Woverloaded-virtual -Wpointer-arith -Wwrite-strings -c -o extundelete.o `test -f 'extundelete.cc' || echo './'`extundelete.cc -pg
+	g++ -I. $(CXXFLAGS) -c -o extundelete.o `test -f 'extundelete.cc' || echo './'`extundelete.cc -pg
 
-	g++ -I. -g -W -Wall  -Woverloaded-virtual -Wpointer-arith -Wwrite-strings -c -o block.o `test -f 'block.c' || echo './'`block.c -pg
+	g++ -I. $(CXXFLAGS) -c -o block.o `test -f 'block.c' || echo './'`block.c -pg
 
-	g++ -I. -g -W -Wall  -Woverloaded-virtual -Wpointer-arith -Wwrite-strings -c -o insertionops.o `test -f 'insertionops.cc' || echo './'`insertionops.cc -pg
+	g++ -I. $(CXXFLAGS) -c -o insertionops.o `test -f 'insertionops.cc' || echo './'`insertionops.cc -pg
 
-	g++ -o extundelete  extundelete.o block.o insertionops.o  -lext2fs -pg
+	g++ -o extundelete  extundelete.o block.o insertionops.o  -lext2fs -pg  -lcom_err
 
 jdebug: 
-	g++ -I. -g -W -Wall  -Woverloaded-virtual -Wpointer-arith -Wwrite-strings  -DJDEBUG -c -o extundelete.o `test -f 'extundelete.cc' || echo './'`extundelete.cc
+	g++ -I. $(CXXFLAGS)  -DJDEBUG -c -o extundelete.o `test -f 'extundelete.cc' || echo './'`extundelete.cc
 
-	g++ -I. -g -W -Wall  -Woverloaded-virtual -Wpointer-arith -Wwrite-strings  -DJDEBUG -c -o block.o `test -f 'block.c' || echo './'`block.c
+	g++ -I. $(CXXFLAGS)  -DJDEBUG -c -o block.o `test -f 'block.c' || echo './'`block.c
 
-	g++ -I. -g -W -Wall  -Woverloaded-virtual -Wpointer-arith -Wwrite-strings -c -o insertionops.o `test -f 'insertionops.cc' || echo './'`insertionops.cc
+	g++ -I. $(CXXFLAGS) -c -o insertionops.o `test -f 'insertionops.cc' || echo './'`insertionops.cc
 
-	g++ -o extundelete  extundelete.o block.o insertionops.o -lext2fs
+	g++ -o extundelete  extundelete.o block.o insertionops.o -lext2fs  -lcom_err
 
 nodebug:
-	g++ -I. -W -Wall -Woverloaded-virtual -Wpointer-arith -Wwrite-strings -DNDEBUG -O3 -c -o extundelete.o `test -f 'extundelete.cc' || echo './'`extundelete.cc
+	g++ -I. $(CXXFLAGS) -DNDEBUG -c -o extundelete.o `test -f 'extundelete.cc' || echo './'`extundelete.cc
 
-	g++ -I. -W -Wall  -Woverloaded-virtual -Wpointer-arith -Wwrite-strings -DNDEBUG -O3 -c -o block.o `test -f 'block.c' || echo './'`block.c
+	g++ -I. $(CXXFLAGS) -DNDEBUG -c -o block.o `test -f 'block.c' || echo './'`block.c
 
-	g++ -I. -W -Wall  -Woverloaded-virtual -Wpointer-arith -Wwrite-strings -DNDEBUG -O3 -c -o insertionops.o `test -f 'insertionops.cc' || echo './'`insertionops.cc
+	g++ -I. $(CXXFLAGS) -DNDEBUG -c -o insertionops.o `test -f 'insertionops.cc' || echo './'`insertionops.cc
 
-	g++ -o extundelete  extundelete.o block.o insertionops.o -lext2fs
+	g++ -o extundelete  extundelete.o block.o insertionops.o -lext2fs  -lcom_err
 
 clean:
 	rm -f *.o