#CC      =/local/usr/local/bin/g++
CC	=/usr/bin/g++
FLAGS = -g -O3 -Wall -DDEBUG -DTEST_PRINT \
	-DDEBUG_BOOL_OPERATORS\
	-DDEBUG

CUSTOM_LOCAL = /local/usr/local



## Include directories
INCLUDE_DIRS = 	./
INCDIR = $(INCLUDE_DIRS:%=-I %)

## Library directories
LIBRARY_DIRS =	$(CUSTOM_LOCAL)/lib 

LIBDIR = $(LIBRARY_DIRS:%=-L %)

## Other static libraries
LIB_OTHERS = 

LIBS = $(LIBDIR) $(LIB_OTHERS)

CFLAGS = $(FLAGS) $(INCDIR) 

## Example .cc files
SRCS = $(wildcard ./*.cc )
HDRS = $(wildcard ./*.h  )
OBJS = 

PARSER_OBJ = bool_formula.o bool_parser.o bool_operator.o

test:	$(PARSER_OBJ) main.o
	$(CC) -o $@ $(PARSER_OBJ) main.o

.o: Makefile $(HDRS)
main.o: main.cc $(HDRS) Makefile

etags:
	find . -name "*.cc" -exec etags \{\} \;
	find . -name "*.h" -exec etags -a \{\} \;
	find . -name "*.c" -exec etags -a \{\} \;

check:
	@echo $(HDRS)



#&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
#Standard Makefile stuff

.cpp.o:
	$(CC) $(CFLAGS) -c $< 

.c.o: 
	$(CC) $(CFLAGS) $(CPPFLAGS) -c $<

.cc.o:	
	$(CC) $(CFLAGS) -c $< -o $@




clean:	
	$(REMOVE)

distclean: clean
	/bin/rm -f \#* *.ii *.s

lint:
	lint *.c

REMOVE = /bin/rm -f *~ .*~ *.BAK .*.BAK *.o logfile mm

#Standard Makefile stuff
#&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
