source: git/coeffs/Makefile.in @ 103906

spielwiese
Last change on this file since 103906 was 103906, checked in by Hans Schoenemann <hannes@…>, 14 years ago
directory resources created
  • Property mode set to 100644
File size: 1.9 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         = /usr/bin/install -c
25INSTALL_PROGRAM = ${INSTALL}
26INSTALL_DATA    = ${INSTALL} -m 644
27MKINSTALLDIRS   = ./mkinstalldirs
28LN_S            = ln -s
29
30##
31## compiler and linker options
32##
33PIPE            = -pipe
34CFLAGS          = -O3 -w -fomit-frame-pointer ${PIPE}
35CXXFLAGS        = -O3 -w -fomit-frame-pointer --no-rtti ${PIPE}
36CXXTEMPLFLAGS   = -fno-implicit-templates --no-exceptions
37CPPFLAGS        = -I${srcdir} -I${includedir} -I${srcdir}/../misc/
38DEFS            = -DNDEBUG -DOM_NDEBUG -Dix86_Linux -DHAVE_CONFIG_H
39
40## End configuration dependend stuff
41#################################################################
42
43###
44### file sets
45###
46
47# normal C++ source files
48CXXSOURCES= gnumpc.cc gnumpfl.cc longrat.cc longrat0.cc \
49            modulop.cc mpr_complex.cc \
50            numbers.cc rmodulo2m.cc rmodulon.cc shortfl.cc
51
52# normal C source files
53CSOURCES=
54
55SOURCES=${CSOURCES} ${CXXSOURCES}
56
57HEADERS= gnumpc.h gnumpfl.h longrat.h modulop.h \
58         mpr_complex.h mpr_global.h numbers.h \
59         rmodulo2m.h rmodulon.h shortfl.h
60
61DISTFILES=${SOURCES} ${HEADERS}
62
63OBJS := $(CXXSOURCES:.cc=.o) $(CSOURCES:.c=.o)
64
65.cc.o: 
66        ${CXX} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} -c $<
67.c.o:
68        ${CC} ${CFLAGS} ${CPPFLAGS} ${DEFS} -c $<
69
70libcoeffs.a: ${OBJS}
71        -rm -f libcoeffs.a
72        ar cr $@ $^
73
74##
75## clean targest
76##
77mostlyclean:
78        -rm -f *.o *.og core *.op
79
80clean: mostlyclean
81        -rm -f *.bak *.d *.dd depend *.a *.so*
82
83tags:   
84        ctags *.c *.h *.cc *.inc
85
86all: libcoeffs.a
87
88install: all
89        ${MKINSTALLDIRS} ${includedir}
90        ${MKINSTALLDIRS} ${libdir}
91        ${INSTALL_DATA} libcoeffs.a ${libdir}/libcoeffs.a
92#       $(INSTALL_DATA) output.h $(includedir)/output.h
Note: See TracBrowser for help on using the repository browser.