forked from gap-packages/guava
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
74 lines (59 loc) · 2.68 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
GAPPATH=@GAPPATH@
GAPARCH=@GAPARCH@
CFLAGS += -O2
SRCDIR = ./src/leon
CJSRCDIR= ./src/ctjhai
BINDIR = bin/$(GAPARCH)
#GAP_PATH=../..
#PKG_PATH=.
#SRCDISTFILE=guava
targets: default
default: minimum-weight leonconv desauto install
minimum-weight: $(CJSRCDIR)/minimum-weight.o $(CJSRCDIR)/minimum-weight-gf2.o $(CJSRCDIR)/minimum-weight-gf3.o $(CJSRCDIR)/popcount.o
$(CC) $(LDFLAGS) -o $(CJSRCDIR)/minimum-weight \
$(CJSRCDIR)/minimum-weight.o $(CJSRCDIR)/minimum-weight-gf2.o \
$(CJSRCDIR)/minimum-weight-gf3.o $(CJSRCDIR)/popcount.o -lm
leonconv: desauto
cd ./src; $(MAKE) CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)";
desauto:
cd $(SRCDIR); autoreconf --install --force ; ./configure; $(MAKE) CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)";
minimum-weight.o: $(CJSRCDIR)/minimum-weight.c $(CJSRCDIR)/minimum-weight-gf2.h $(CJSRCDIR)/minimum-weight-gf3.h $(CJSRCDIR)/popcount.h $(CJSRCDIR)/config.h $(CJSRCDIR)/types.h
$(CC) -c -O3 -Wall -I $(CJSRCDIR) $(CJSRCDIR)/minimum-weight.c
minimum-weight-gf2.o: $(CJSRCDIR)/minimum-weight-gf2.c $(CJSRCDIR)/minimum-weight-gf2.h $(CJSRCDIR)/popcount.h $(CJSRCDIR)/config.h $(CJSRCDIR)/types.h
$(CC) -c -O3 -Wall -I $(CJSRCDIR) $(CJSRCDIR)/minimum-weight-gf2.c
minimum-weight-gf3.o: $(CJSRCDIR)/minimum-weight-gf3.c $(CJSRCDIR)/minimum-weight-gf3.h $(CJSRCDIR)/popcount.h $(CJSRCDIR)/config.h $(CJSRCDIR)/types.h
$(CC) -c -O3 -Wall -I $(CJSRCDIR) $(CJSRCDIR)/minimum-weight-gf3.c
popcount.o: $(CJSRCDIR)/popcount.c $(CJSRCDIR)/popcount.h $(CJSRCDIR)/config.h $(CJSRCDIR)/types.h
$(CC) -c -O3 -Wall -I $(CJSRCDIR) $(CJSRCDIR)/popcount.c
install: leonconv minimum-weight
mkdir -p $(BINDIR)
cp ./src/leonconv $(BINDIR)
cp $(SRCDIR)/desauto $(BINDIR)
cp $(CJSRCDIR)/minimum-weight $(BINDIR)
cp $(SRCDIR)/wtdist $(BINDIR)
clean:
-rm -f $(BINDIR)/*.o
-( cd src && make clean )
-( cd $(CJSRCDIR) && rm -f minimum-weight *.o)
-( cd $(SRCDIR) && make clean )
distclean: clean
rm -rf bin
mkdir bin
rm -f Makefile Makefile-*
-( cd src && make distclean )
-( cd src/leon && make distclean )
-( cd doc && rm -f *.aux *.log *.dvi *.ps)
# for GAP distribution
src_dist:
@(cmp ${PKG_PATH}/guava/doc/guava.tex \
${GAP_PATH}/doc/guava.tex \
|| echo \
"*** WARNING: current 'guava.tex' and 'doc/guava.tex' differ ***")
@zoo ah ${SRCDISTFILE}.zoo \
${PKG_PATH}/guava/Makefile \
${PKG_PATH}/guava/doc/guava.tex \
${PKG_PATH}/guava/init.g \
`find ${PKG_PATH}/guava/lib -name "*.g" -print` \
`find ${PKG_PATH}/guava/tbl -name "*.g" -print` \
`find ${PKG_PATH}/guava/src -print`
@zoo PE ${SRCDISTFILE}.zoo