forked from se-sic/picoSAT-mirror
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile.in
59 lines (41 loc) · 1.28 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
CC=@CC@
CFLAGS=@CFLAGS@
all: @TARGETS@
clean:
rm -f picosat picomcs picomus picogcnf
rm -f *.exe *.s *.o *.a *.so *.plist
rm -f makefile config.h
rm -f gmon.out *~
analyze:
clang --analyze $(CFLAGS) *.c *.h
picosat: libpicosat.a app.o main.o
$(CC) $(CFLAGS) -o $@ main.o app.o -L. -lpicosat
picomcs: libpicosat.a picomcs.o
$(CC) $(CFLAGS) -o $@ picomcs.o -L. -lpicosat
picomus: libpicosat.a picomus.o
$(CC) $(CFLAGS) -o $@ picomus.o -L. -lpicosat
picogcnf: libpicosat.a picogcnf.o
$(CC) $(CFLAGS) -o $@ picogcnf.o -L. -lpicosat
app.o: app.c picosat.h makefile
$(CC) $(CFLAGS) -c $<
picomcs.o: picomcs.c picosat.h makefile
$(CC) $(CFLAGS) -c $<
picomus.o: picomus.c picosat.h makefile
$(CC) $(CFLAGS) -c $<
picogcnf.o: picogcnf.c picosat.h makefile
$(CC) $(CFLAGS) -c $<
main.o: main.c picosat.h makefile
$(CC) $(CFLAGS) -c $<
picosat.o: picosat.c picosat.h makefile
$(CC) $(CFLAGS) -c $<
version.o: version.c config.h makefile
$(CC) $(CFLAGS) -c $<
config.h: makefile VERSION mkconfig.sh # and actually picosat.c
rm -f $@; ./mkconfig.sh > $@
libpicosat.a: picosat.o version.o
ar rc $@ picosat.o version.o
ranlib $@
SONAME=-Xlinker -soname -Xlinker libpicosat.so
libpicosat.so: picosat.o version.o
$(CC) $(CFLAGS) -shared -o $@ picosat.o version.o $(SONAME)
.PHONY: all clean