source: git/coeffs/Makefile.in @ c47d678

spielwiese
Last change on this file since c47d678 was c47d678, checked in by Oleksandr Motsak <motsak@…>, 14 years ago
Rings are broken!
  • Property mode set to 100644
File size: 2.3 KB
Line 
1#################################################################
2###
3### Makefile for Singular
4###
5#################################################################
6
7SHELL           = /bin/sh
8
9##
10## various paths
11##
12srcdir          = .
13prefix          = @prefix@
14exec_prefix     = @exec_prefix@
15libdir          = @libdir@
16# includes are taken from here
17includedir      = @includedir@
18
19##
20## various programs
21##
22
23CXX             = g++
24INSTALL_PROGRAM = @INSTALL@
25INSTALL_DATA    = @INSTALL@ -m 644
26MKINSTALLDIRS   = ../mkinstalldirs
27LN_S            = ln -s
28
29##
30## compiler and linker options
31##
32PIPE            = -pipe
33CFLAGS          = -O3 -w -fomit-frame-pointer ${PIPE}
34CXXFLAGS        = -O3 -w -fomit-frame-pointer --no-rtti ${PIPE} -g
35CXXTEMPLFLAGS   = -fno-implicit-templates --no-exceptions
36CPPFLAGS        = -I${srcdir} -I${includedir} -I${srcdir}/../misc/ -I${srcdir}/../resource/ -I${srcdir}/../reporter/ -L${srcdir}/../reporter/ -L${libdir} -lgmp
37DEFS            = -Dix86_Linux -DHAVE_CONFIG_H -DLDEBUG -DDEBUG -DOM_DEBUG -DHAVE_ASSUME -DHAVE_RINGS
38# -DHAVE_RINGS # Doesn't work :(
39# -DNDEBUG -DOM_NDEBUG
40
41## End configuration dependend stuff
42#################################################################
43
44###
45### file sets
46###
47
48# normal C++ source files
49CXXSOURCES= gnumpc.cc gnumpfl.cc longrat.cc longrat0.cc ffields.cc \
50            modulop.cc mpr_complex.cc \
51            numbers.cc rmodulo2m.cc rmodulon.cc shortfl.cc
52
53# normal C source files
54CSOURCES=
55
56SOURCES=${CSOURCES} ${CXXSOURCES}
57
58HEADERS= gnumpc.h gnumpfl.h longrat.h modulop.h ffields.h \
59         mpr_complex.h mpr_global.h numbers.h \
60         rmodulo2m.h rmodulon.h shortfl.h
61
62DISTFILES=${SOURCES} ${HEADERS}
63
64OBJS := $(CXXSOURCES:.cc=.o) $(CSOURCES:.c=.o)
65
66.cc.o: 
67        ${CXX} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} -c $<
68.c.o:
69        ${CC} ${CFLAGS} ${CPPFLAGS} ${DEFS} -c $<
70
71libcoeffs.a: ${OBJS}
72        -rm -f libcoeffs.a
73        ar cr $@ $^
74
75##
76## clean targest
77##
78mostlyclean:
79        -rm -f *.o *.og core *.op
80
81clean: mostlyclean
82        -rm -f *.bak *.d *.dd depend *.a *.so* test
83
84
85tags:   
86        ctags *.c *.h *.cc *.inc
87
88all: libcoeffs.a
89
90install: all
91        ${MKINSTALLDIRS} ${includedir}
92        ${MKINSTALLDIRS} ${libdir}
93        ${INSTALL_DATA} libcoeffs.a ${libdir}/libcoeffs.a
94        $(INSTALL_DATA) coeffs.h $(includedir)/coeffs.h
95
96test: test.cc libcoeffs.a
97        ${CXX} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} test.cc -L. -I. -lcoeffs -o test -lomalloc -lreporter
Note: See TracBrowser for help on using the repository browser.