source: git/gfanlib/Makefile.in @ 5acf7dc

spielwiese
Last change on this file since 5acf7dc was 74a91c9, checked in by Frank Seelisch <seelisch@…>, 13 years ago
new gfan lib version by Anders Jensen git-svn-id: file:///usr/local/Singular/svn/trunk@13668 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • 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             = @CXX@
24INSTALL         = @INSTALL@
25INSTALL_PROGRAM = @INSTALL_PROGRAM@
26INSTALL_DATA    = @INSTALL_DATA@
27MKINSTALLDIRS   = ../mkinstalldirs
28LN_S            = ln -s
29RANLIB          = @RANLIB@
30
31##
32## compiler and linker options
33##
34PIPE            = -pipe
35CFLAGS          = @CFLAGS@ ${PIPE}
36CXXFLAGS        = @CXXFLAGS@ ${PIPE}
37#CXXTEMPLFLAGS  = -fno-implicit-templates --no-exceptions
38CPPFLAGS        = -I${srcdir} -I${includedir}
39DEFS            = -DGMPRATIONAL
40
41## End configuration dependend stuff
42#################################################################
43
44###
45### file sets
46###
47
48# normal C++ source files
49CXXSOURCES= gfanlib_zcone.cpp gfanlib_symmetry.cpp gfanlib_symmetriccomplex.cpp gfanlib_polyhedralfan.cpp gfanlib_zfan.cpp gfanlib_polymakefile.cpp
50
51# normal C source files
52CSOURCES=
53
54SOURCES=${CSOURCES} ${CXXSOURCES}
55
56HEADERS=gfanlib_z.h gfanlib_q.h gfanlib_vector.h gfanlib_matrix.h gfanlib_zcone.h gfanlib.h gfanlib_polyhedralfan.h gfanlib_polymakefile.h gfanlib_symmetriccomplex.h gfanlib_zfan.h
57
58DISTFILES=${SOURCES} ${HEADERS}
59
60OBJS := $(CXXSOURCES:.cpp=.o) $(CSOURCES:.c=.o)
61
62.cpp.o:
63        ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${DEFS} -c $<
64.c.o:
65        ${CC} ${CFLAGS} ${CPPFLAGS} ${DEFS} -c $<
66
67libgfan.a: ${OBJS}
68         -rm -f $@
69         ar cr $@ $^
70
71all:  libgfan.a
72
73install: all
74        ${MKINSTALLDIRS} ${includedir}
75        ${MKINSTALLDIRS} ${libdir}
76        cp gfanlib*.h ${includedir}/
77        cp libgfan.a ${libdir}/libgfan.a
78        $(RANLIB) ${libdir}/libgfan.a
79
80##
81## clean targest
82##
83mostlyclean:
84        -rm -f *.o *.og core *.op
85
86clean: mostlyclean
87        -rm -f *.bak *.d *.dd depend *.a *.so*
88
89tags:   
90        ctags *.c *.h *.cc *.inc
Note: See TracBrowser for help on using the repository browser.