-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
52 lines (36 loc) · 1.19 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
YICES_DIR = /usr/local/yices-1.0.29
CC = gcc
FLEX = flex
BISON = bison
CFLAGS = -std=c99 -pedantic -g -Wall
LDFLAGS = -g -lgmp -lgmpxx -lstdc++
OBJECTS = smtlib2bisonparser.o \
smtlib2flexlexer.o \
smtlib2hashtable.o \
smtlib2abstractparser.o \
smtlib2termparser.o \
smtlib2utils.o \
smtlib2vector.o \
smtlib2charbuf.o \
smtlib2stream.o \
smtlib2scanner.o
YICES_OBJECTS = smtlib2yices.o \
yicesmain.o
all: libsmtlib2parser.a smtlib2yices
clean:
rm -f $(OBJECTS) $(YICES_OBJECTS) libsmtlib2parser.a smtlib2yices smtlib2bisonparser.c smtlib2bisonparser.h smtlib2flexlexer.c smtlib2flexlexer.h
smtlib2yices: libsmtlib2parser.a $(YICES_OBJECTS)
$(CC) $(YICES_OBJECTS) libsmtlib2parser.a $(YICES_DIR)/lib/libyices.a $(LDFLAGS) -o $@
smtlib2yices.o: smtlib2yices.c
$(CC) $(CFLAGS) -I$(YICES_DIR)/include -c -o $@ $<
yicesmain.o: yicesmain.c
$(CC) $(CFLAGS) -I$(YICES_DIR)/include -c -o $@ $<
libsmtlib2parser.a: $(OBJECTS)
ar rc $@ $(OBJECTS)
ranlib $@
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
smtlib2bisonparser.c: smtlib2bisonparser.y smtlib2flexlexer.c
$(BISON) -o $@ $<
smtlib2flexlexer.c: smtlib2flexlexer.l
$(FLEX) --header-file="smtlib2flexlexer.h" -o $@ $<