# ==============================================================
# Makefile for DOP files
# ==============================================================

CFLAGS = -W -Wtraditional -Wmissing-prototypes -Wall


# --- full object list
OBJ = lex.yy.o y.tab.o pddlR.o  main.o 
CFILES = lex.yy.c y.tab.c pddlR.c 
CCFILES =  set.cc main.cc


# --------------------------------------------------------------
# Code generation
# --------------------------------------------------------------

.SUFFIXES: .cc .c

.cc.o:
	g++ -c -g $<

.c.o:
	cc -c  -g $<



# --------------------------------------------------------------
# The primary targets.
# --------------------------------------------------------------

translator:	$(OBJ)
	g++ $(CFLAGS) -o translator $(OBJ)  -lfl -lm
	chmod u+x translator

clean:
	rm -f *.o core *~
	rm -f translator

depend:
	gcc -MM $(CFILES)  > depend.inf
	g++ -MM $(CCFILES) >> depend.inf

###
include depend.inf








