From 85ee0ac91540be34e55f05c0b03757d6a5e3da59 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Fri, 14 Nov 2008 16:08:56 +0000 Subject: Fix Makefile git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@35 0d43b9a7-5ab2-4d7b-af9d-f64450cef757 --- Makefile | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index bb3cbc6..ff131e2 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,21 @@ ICC=icc GCC=gcc -GCCFLAGS=-O3 -march=k8 -msse3 -ftree-vectorize -funroll-loops -pipe -static +GCCFLAGS=-O3 -march=k8 -msse3 -ftree-vectorize -funroll-loops -pipe -static -Wunused ICCFLAGS=-O2 -ip -xP -gcc -static LINKFLAGS= +OBJS=emfloat.o randnum.o hardware.o cleanbench.o numsort.o stringsort.o bitfield.o fpemulation.o fourier.o assignment.o idea.o huffman.o neural.o linear.o + +all: ${OBJS} + $(GCC) ${OBJS} -o cleanbench -lm + +clean: + - /bin/rm -f *.o cleanbench sysinfo.c sysinfoc.c + +remake: clean all + +# Source files + sysinfoc.c: Makefile ./sysinfo.sh $(GCC) $(GCCFLAGS) @@ -51,11 +63,3 @@ neural.o: neural.c linear.o: linear.c $(GCC) $(GCCFLAGS) -c linear.c - -default: emfloat.o randnum.o cleanbench.o numsort.o hardware.o stringsort.o bitfield.o fpemulation.o fourier.o assignment.o idea.o huffman.o neural.o linear.o - $(GCC) emfloat.o randnum.o cleanbench.o numsort.o hardware.o stringsort.o bitfield.o fpemulation.o fourier.o assignment.o idea.o huffman.o neural.o linear.o -o cleanbench -lm - -clean: - - /bin/rm -f *.o cleanbench sysinfo.c sysinfoc.c - -remake: clean default -- cgit v1.2.3