Lines 1-51
Link Here
|
1 |
--- src/Makefile.orig Tue Jan 9 12:09:48 2001 |
|
|
2 |
+++ src/Makefile Mon Jan 22 17:05:13 2001 |
3 |
@@ -1,10 +1,9 @@ |
4 |
-CC = gcc |
5 |
-CFLAGS = -Wall -O3 -I/usr/include -I/usr/local/include |
6 |
-LIBS = -L/lib -L/usr/lib -L/usr/local/lib -lm |
7 |
+CC?= gcc |
8 |
|
9 |
.c.o: |
10 |
$(CC) $(EXT) $(CFLAGS) $(INCLUDE) -c $< |
11 |
|
12 |
+LIBS=-lm |
13 |
LIBFILE=fnccheck.c |
14 |
LIBNAME=libfnccheck.so |
15 |
DUMP=fncdump |
16 |
@@ -14,28 +13,28 @@ |
17 |
-@ echo "Please specify a target." |
18 |
|
19 |
fnccheck: |
20 |
- $(CC) -Wall -O3 -c $(LIBFILE) |
21 |
- $(CC) -Wall -O3 -fPIC -c $(LIBFILE) -o $(LIBNAME) |
22 |
+ $(CC) $(CFLAGS) -c $(LIBFILE) |
23 |
+ $(CC) $(CFLAGS) -fPIC -c $(LIBFILE) -o $(LIBNAME) |
24 |
mv $(LIBNAME) ../lib/ |
25 |
|
26 |
dfnccheck: |
27 |
- $(CC) -Wall -O3 -DFNCCHK_DEBUG -c $(LIBFILE) |
28 |
- $(CC) -Wall -O3 -fPIC -DFNCCHK_DEBUG -c $(LIBFILE) -o $(LIBNAME) |
29 |
+ $(CC) $(CFLAGS) -DFNCCHK_DEBUG -c $(LIBFILE) |
30 |
+ $(CC) $(CFLAGS) -fPIC -DFNCCHK_DEBUG -c $(LIBFILE) -o $(LIBNAME) |
31 |
mv $(LIBNAME) ../lib/ |
32 |
|
33 |
fncdump: |
34 |
-@ export EXT=-DFNCCHK_USE_BFD ; make real_fncdump |
35 |
|
36 |
real_fncdump: fncdump.o |
37 |
- $(CC) -O3 $(CFLAGS) $(INCLUDE) -o $(DUMP) fncdump.o $(LIBS) -lbfd -liberty |
38 |
+ $(CC) $(CFLAGS) $(INCLUDE) -o $(DUMP) fncdump.o $(LIBS) -lbfd -liberty |
39 |
mv $(DUMP) ../bin |
40 |
|
41 |
fncdump_nobfd: fncdump.o |
42 |
- $(CC) -O3 $(CFLAGS) $(INCLUDE) -o $(DUMP) fncdump.o $(LIBS) |
43 |
+ $(CC) $(CFLAGS) $(INCLUDE) -o $(DUMP) fncdump.o $(LIBS) |
44 |
mv $(DUMP) ../bin |
45 |
|
46 |
fncaverage: fnccheck.o fncaverage.o |
47 |
- $(CC) -O3 $(CFLAGS) $(INCLUDE) -o $(AVG) fncaverage.o fnccheck.o $(LIBS) |
48 |
+ $(CC) $(CFLAGS) $(INCLUDE) -o $(AVG) fncaverage.o fnccheck.o $(LIBS) |
49 |
mv $(AVG) ../bin |
50 |
|
51 |
clean: |