Blame view

fz/Makefile 767 Bytes
aa862a87   Salvador Abreu   removed unused fz...
1
2
3
4
SRC =	        
OBJ = 		flatzinc.tab.o
GENCFILES = 	flatzinc.tab.c lex.yy.c 
OTHER = 	flatzinc.output 
e9654c4b   Salvador Abreu   added flatzinc pa...
5

2ae2c2a3   Salvador Abreu   allow for multipl...
6
7
8
PLFILES =       $(wildcard *.pl)

# NOTE: we need to pass the `-l' flag to ensure the scanner internal
e88c58ae   Salvador Abreu   new back-end-spec...
9
10
11
# variable `yylineno' is available.
#
LEX =		flex
1fa8bcd2   Salvador Abreu   back-end specific...
12
13
14
LEXFLAGS =      -l
LEXLIB =	

e9654c4b   Salvador Abreu   added flatzinc pa...
15
YACC =		bison
aa862a87   Salvador Abreu   removed unused fz...
16
17
18
19
20
21
YACCFLAGS =	-v

CC =		gcc	
CFLAGS =	-g -O

GPLC =		gplc
e9654c4b   Salvador Abreu   added flatzinc pa...
22

aa862a87   Salvador Abreu   removed unused fz...
23
24
RM =		/bin/rm -f

e9654c4b   Salvador Abreu   added flatzinc pa...
25
%.ast:: %.fzn
aa862a87   Salvador Abreu   removed unused fz...
26
27
	fzp < $< > $@

e9654c4b   Salvador Abreu   added flatzinc pa...
28
all: fzp fzsem
aa862a87   Salvador Abreu   removed unused fz...
29

e9654c4b   Salvador Abreu   added flatzinc pa...
30
fzp:	$(OBJ)
aa862a87   Salvador Abreu   removed unused fz...
31
32
33
34
35
	$(CC) $(CFLAGS) -o $@ $(OBJ) $(LEXLIB)

fzsem: $(PLFILES)
	$(GPLC) -o $@ $(PLFILES)

1fa8bcd2   Salvador Abreu   back-end specific...
36
flatzinc.tab.c:	flatzinc.y lex.yy.c
aa862a87   Salvador Abreu   removed unused fz...
37
38
39
40
		$(YACC) $(YACCFLAGS) flatzinc.y

lex.yy.c:	flatzinc.l
		$(LEX) $(LEXFLAGS) flatzinc.l
1fa8bcd2   Salvador Abreu   back-end specific...
41

2ae2c2a3   Salvador Abreu   allow for multipl...
42
43
clean:
		$(RM) $(OBJ) $(GENCFILES) $(OTHER) core
1fa8bcd2   Salvador Abreu   back-end specific...
44
45
46

clobber:	clean
		$(RM) $(EXE_FILE)
2ae2c2a3   Salvador Abreu   allow for multipl...
47
48

.PHONY: distclean
aa862a87   Salvador Abreu   removed unused fz...
49
distclean: clobber
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...