CC       = gcc
STRIP    = strip
CFLAGS   = -m64 -Wall -ansi -pedantic -pipe -O3 -combine -funroll-loops -fomit-frame-pointer -fstrict-aliasing -fno-tree-pre -falign-loops -DPACKAGE_NAME=\"yass\" -DPACKAGE_VERSION=\"1.14\"
CFLAGS  += -DTHREAD_FORWARD_REVERSE
CFLAGS  += -DTHREAD_ASSEMBLE_ALIGN
CFLAGS  += -mtune=nocona -msse2 -ftree-vectorize
LDFLAGS  = -static
SOURCES  = align.c assemble.c avl.c display.c global_var.c hash.c \
           kword.c list.c main.c prdyn.c proba.c red_black.c      \
           regroup.c threads.c tuple.c util.c
OBJECTS  = align.o assemble.o avl.o display.o global_var.o hash.o \
           kword.o list.o main.o prdyn.o proba.o red_black.o      \
           regroup.o threads.o tuple.o util.o

all : clean  yass-Linux64-4threads.bin

yass-Linux64-4threads.bin : $(OBJECTS)
	 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTS)  /usr/lib64/libm.a  /usr/lib64/libpthread.a -o $@
	 $(STRIP) yass-Linux64-4threads.bin 

clean :
	 rm -f *.o yass-Linux64-4threads.bin
