CC       = x86_64-w64-mingw32-gcc
STRIP    = x86_64-w64-mingw32-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  += -DWIN64
CFLAGS  += -DTHREAD_FORWARD_REVERSE
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-Win64-2threads.exe

yass-Win64-2threads.exe : $(OBJECTS)
	 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTS) -o $@
	 $(STRIP) yass-Win64-2threads.exe 

clean :
	 rm -f *.o yass-Win64-2threads.exe
