# $Id: Makefile 246 2008-08-26 11:58:29Z roe $

OPENSSL_LIB = /usr/local/lib
OPENSSL_INC = /usr/local/include

CPP = g++
LIBS = 
LDFLAGS += 
CPPFLAGS += 
#CPPFLAGS += -DDEBUG
# -march=native -fomit-frame-pointer -funroll-loops
CFLAGS := -O2 -funroll-loops $(CFLAGS)
#CFLAGS += -fPIC
CFLAGS += -std=c99 -Wall -pedantic-errors
#CFLAGS += -DDEBUG

#TARGETS = test testtime testthread testbrute
TARGETS = analyze tag_file
#TARGETS += libfpwchk-word.so libfpwchk-word.a

STRIP ?= strip

all: $(TARGETS)

analyze: analyze.o
	$(CPP) $(LDFLAGS) -o $@ $^ $(LIBS)

tag_file: tag_file.o
	$(CPP) $(LDFLAGS) -o $@ $^ $(LIBS)


.PHONY: clean
clean:
	rm -rf *.o tag_file analyze
