aboutsummaryrefslogtreecommitdiffstats
path: root/devel/fnccheck/files/patch-ab
blob: 337675563d225a3ebe9a6ebbb5c415a4748847dc (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
--- src/Makefile.orig   Tue Jan  9 12:09:48 2001
+++ src/Makefile    Mon Jan 22 17:05:13 2001
@@ -1,10 +1,9 @@
-CC =   gcc
-CFLAGS =   -Wall -O3 -I/usr/include  -I/usr/local/include
-LIBS   =   -L/lib -L/usr/lib -L/usr/local/lib -lm
+CC?=   gcc
 
 .c.o:
    $(CC) $(EXT) $(CFLAGS) $(INCLUDE) -c $<
 
+LIBS=-lm
 LIBFILE=fnccheck.c
 LIBNAME=libfnccheck.so
 DUMP=fncdump
@@ -14,28 +13,28 @@
    -@ echo "Please specify a target."
 
 fnccheck:
-   $(CC) -Wall -O3 -c $(LIBFILE)
-   $(CC) -Wall -O3 -fPIC -c $(LIBFILE) -o $(LIBNAME)
+   $(CC) $(CFLAGS) -c $(LIBFILE)
+   $(CC) $(CFLAGS) -fPIC -c $(LIBFILE) -o $(LIBNAME)
    mv $(LIBNAME) ../lib/
 
 dfnccheck:
-   $(CC) -Wall -O3 -DFNCCHK_DEBUG -c $(LIBFILE)
-   $(CC) -Wall -O3 -fPIC -DFNCCHK_DEBUG -c $(LIBFILE) -o $(LIBNAME)
+   $(CC) $(CFLAGS) -DFNCCHK_DEBUG -c $(LIBFILE)
+   $(CC) $(CFLAGS) -fPIC -DFNCCHK_DEBUG -c $(LIBFILE) -o $(LIBNAME)
    mv $(LIBNAME) ../lib/
 
 fncdump:
    -@ export EXT=-DFNCCHK_USE_BFD ; make real_fncdump
 
 real_fncdump: fncdump.o
-   $(CC) -O3 $(CFLAGS) $(INCLUDE) -o $(DUMP) fncdump.o $(LIBS) -lbfd -liberty
+   $(CC) $(CFLAGS) $(INCLUDE) -o $(DUMP) fncdump.o $(LIBS) -lbfd -liberty
    mv $(DUMP) ../bin
 
 fncdump_nobfd: fncdump.o
-   $(CC) -O3 $(CFLAGS) $(INCLUDE) -o $(DUMP) fncdump.o $(LIBS)
+   $(CC) $(CFLAGS) $(INCLUDE) -o $(DUMP) fncdump.o $(LIBS)
    mv $(DUMP) ../bin
 
 fncaverage: fnccheck.o fncaverage.o
-   $(CC) -O3 $(CFLAGS) $(INCLUDE) -o $(AVG) fncaverage.o fnccheck.o $(LIBS)
+   $(CC) $(CFLAGS) $(INCLUDE) -o $(AVG) fncaverage.o fnccheck.o $(LIBS)
    mv $(AVG) ../bin
 
 clean: