CC=gcc CFLAGS=-O3 -march=k8 -msse3 -ftree-vectorize -funroll-loops -pipe -static WARN=-Wunused -Wextra -Wall -std=gnu99 -pedantic #CC=icc #CFLAGS=-O3 -ipo -xP -gcc -static LIBS=-lm -lproccpuinfo 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) $(CC) $(OBJS) -o cleanbench $(LIBS) clean: /bin/rm -f cleanbench sysinfo.c $(OBJS) remake: clean all # Source files sysinfo.c: ./sysinfo.sh $(CC) $(CFLAGS) $(WARN) hardware.o: hardware.c $(CC) $(CFLAGS) $(WARN) -c $< cleanbench.o: cleanbench.c sysinfo.c $(CC) $(CFLAGS) $(WARN) -c $< emfloat.o: emfloat.c $(CC) $(CFLAGS) $(WARN) -c $< randnum.o: randnum.c $(CC) $(CFLAGS) $(WARN) -c $< numsort.o: numsort.c $(CC) $(CFLAGS) $(WARN) -c $< stringsort.o: stringsort.c $(CC) $(CFLAGS) $(WARN) -c $< bitfield.o: bitfield.c $(CC) $(CFLAGS) $(WARN) -c $< fpemulation.o: fpemulation.c $(CC) $(CFLAGS) $(WARN) -c $< fourier.o: fourier.c $(CC) $(CFLAGS) $(WARN) -c $< assignment.o: assignment.c $(CC) $(CFLAGS) $(WARN) -c $< idea.o: idea.c $(CC) $(CFLAGS) $(WARN) -c $< huffman.o: huffman.c $(CC) $(CFLAGS) $(WARN) -c $< neural.o: neural.c $(CC) $(CFLAGS) $(WARN) -c $< linear.o: linear.c $(CC) $(CFLAGS) $(WARN) -c $<