Blame view

fz/Makefile 649 Bytes
aa862a87   Salvador Abreu   removed unused fz...
1
2
3
4
HEADERS=ast.hh conexpr.hh flatzinc.hh option.hh parser.hh parser.tab.hh registry.hh symboltable.hh varspec.hh
SOURCES=flatzinc.cpp fz.cpp lexer.yy.cpp parser.tab.cpp registry.cpp

CXXFLAGS=-O2 -g
e9654c4b   Salvador Abreu   added flatzinc pa...
5

2ae2c2a3   Salvador Abreu   allow for multipl...
6
7
8
all: fz

%.o: %.cpp $(HEADERS)
e88c58ae   Salvador Abreu   new back-end-spec...
9
10
11
	$(CXX) $(CXXFLAGS) -c $< -o $@

fz: $(SOURCES:%.cpp=%.o)
1fa8bcd2   Salvador Abreu   back-end specific...
12
13
14
	$(CXX) $(CXXFLAGS) -o $@ $(SOURCES:%.cpp=%.o)

lexer.yy.cpp: lexer.lxx parser.tab.hh
e9654c4b   Salvador Abreu   added flatzinc pa...
15
	flex -olexer.yy.cpp lexer.lxx
aa862a87   Salvador Abreu   removed unused fz...
16
17
18
19
20
21

parser.tab.hh parser.tab.cpp: parser.yxx
	bison -t -o parser.tab.cpp -d $<
	mv parser.tab.hpp parser.tab.hh

.PHONY: clean distclean
e9654c4b   Salvador Abreu   added flatzinc pa...
22
clean:
aa862a87   Salvador Abreu   removed unused fz...
23
24
	rm -f $(SOURCES:%.cpp=%.o)
	rm -f fz
e9654c4b   Salvador Abreu   added flatzinc pa...
25

aa862a87   Salvador Abreu   removed unused fz...
26
27
distclean: clean
	rm -f lexer.yy.cpp parser.tab.hh parser.tab.cpp
e9654c4b   Salvador Abreu   added flatzinc pa...

aa862a87   Salvador Abreu   removed unused fz...

e9654c4b   Salvador Abreu   added flatzinc pa...

aa862a87   Salvador Abreu   removed unused fz...

1fa8bcd2   Salvador Abreu   back-end specific...

aa862a87   Salvador Abreu   removed unused fz...

1fa8bcd2   Salvador Abreu   back-end specific...

2ae2c2a3   Salvador Abreu   allow for multipl...

1fa8bcd2   Salvador Abreu   back-end specific...

2ae2c2a3   Salvador Abreu   allow for multipl...

aa862a87   Salvador Abreu   removed unused fz...

1fa8bcd2   Salvador Abreu   back-end specific...

aa862a87   Salvador Abreu   removed unused fz...

1fa8bcd2   Salvador Abreu   back-end specific...

e9654c4b   Salvador Abreu   added flatzinc pa...

e9654c4b   Salvador Abreu   added flatzinc pa...

1fa8bcd2   Salvador Abreu   back-end specific...

aa862a87   Salvador Abreu   removed unused fz...

1fa8bcd2   Salvador Abreu   back-end specific...

e9654c4b   Salvador Abreu   added flatzinc pa...

aa862a87   Salvador Abreu   removed unused fz...