--- 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: