-
Notifications
You must be signed in to change notification settings - Fork 85
/
makefile.in
83 lines (59 loc) · 1.7 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
CC=@CC@
LD=@LD@
AR=@AR@
VPATH=../src:../test
%.o: %.c ../[st]*/*.h makefile
$(CC) -c $<
APPSRC=application.c handle.c parse.c witness.c
LIBSRT=$(sort $(wildcard ../src/*.c))
LIBSUB=$(subst ../src/,,$(LIBSRT))
LIBSRC=$(filter-out main.c $(APPSRC),$(LIBSUB))
TSTSRT=$(sort $(wildcard ../test/*.c))
TSTSUB=$(subst ../test/,,$(TSTSRT))
TSTSRC=$(filter-out test.c,$(TSTSUB))
APPOBJ=$(APPSRC:.c=.o)
LIBOBJ=$(LIBSRC:.c=.o)
TSTOBJ=$(APPOBJ) $(TSTSRC:.c=.o)
INCLUDES=-I../$(shell pwd|sed -e 's,.*/,,')
LIBS=libkissat.a
all: @GOALS@
test: all tissat
./tissat
REMOVE=*.gcda *.gcno *.gcov gmon.out *~ *.proof
clean:
rm -f kissat tissat kitten
rm -f makefile build.h *.o *.a *.so
rm -f $(REMOVE)
cd ../src; rm -f $(REMOVE)
cd ../test; rm -f $(REMOVE)
coverage:
@gcov -o . -s ../src/*.[ch] 2>&1 | \
../scripts/filter-coverage-output.sh
format:
clang-format -i ../*/*.[ch]
kissat: main.o $(APPOBJ) libkissat.a makefile
$(LD) -o $@ main.o $(APPOBJ) $(LIBS) -lm
tissat: test.o $(TSTOBJ) libkissat.a makefile
$(LD) -o $@ test.o $(TSTOBJ) $(LIBS) -lm
kitten: kitten.c random.h stack.h makefile
$(CC) $(CFLAGS) -DSTAND_ALONE_KITTEN -o $@ ../src/kitten.c
build.h:
../scripts/generate-build-header.sh > $@
collect.o: sort.c
dense.o: sort.c
propdense.o: assign.c
prophyper.o: assign.c
proprobe.o: assign.c
propsearch.o: assign.c
watch.o: sort.c
build.o: build.c build.h ../[st]*/*.h makefile
$(CC) $(INCLUDES) -c $<
testkitten.o: testkitten.c ../[st]*/*.h makefile
$(CC)@KITTEN@ -c $<
test.o: test.c build.h ../[st]*/*.h makefile
$(CC) $(INCLUDES) -c $<
libkissat.a: $(LIBOBJ) makefile
$(AR) rc $@ $(LIBOBJ)
libkissat.so: $(LIBOBJ) makefile
$(LD) -shared -o $@ $(LIBOBJ)
.PHONY: all clean coverage indent test build.h