source: git/modules/Makefile.in @ 2d7f0f

spielwiese
Last change on this file since 2d7f0f was 2d7f0f, checked in by Kai Krüger <krueger@…>, 24 years ago
Path for modules git-svn-id: file:///usr/local/Singular/svn/trunk@4239 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 2.5 KB
Line 
1#################################################################
2###
3### Makefile for Singular-modules
4###
5### $Id: Makefile.in,v 1.6 2000-03-30 07:25:11 krueger Exp $
6###
7#################################################################
8
9SHELL           = /bin/sh
10
11##
12## various paths
13##
14topsrcdir       = @top_srcdir@
15srcdir          = @srcdir@
16prefix          = @prefix@
17exec_prefix     = @exec_prefix@
18libdir          = @libdir@
19# program executable goes here
20bindir          = @bindir@
21# Singular libs go here
22includedir      = @includedir@
23MOD_DEST        = ./include
24INC_SRC         = $(topsrcdir)/Singular
25MODDIRS         = pcv kernel
26
27##
28## various programs
29##
30CC              = @CC@
31CXX             = @CXX@
32LEXP            = @LEXP@
33PERL            = @PERL@
34BISON           = bison
35@SET_MAKE@
36INSTALL         = ./install-sh -c
37INSTALL_PROGRAM = ${INSTALL}
38INSTALL_DATA    = ${INSTALL} -m 644
39MKINSTALLDIRS   = ./mkinstalldirs
40MODGEN          = ${bindir}/modgen
41
42##
43## compiler and linker options
44##
45CFLAGS          = @CFLAGS@ -pipe -Iinclude -I../Singular
46CXXFLAGS        = @CXXFLAGS@ -pipe
47#CXXTEMPLFLAGS  = @CXXTEMPLFLAGS@
48CPPFLAGS        = -I${srcdir} @CPPFLAGS@
49DEFS            = @DEFS@ -DNDEBUG
50LDFLAGS         = @LDFLAGS@ # @LD_DYNAMIC@
51#STATIC_LDFLAGS = @STATIC_LDFLAGS@
52#LIBS           = @NEED_LIBS@
53
54##
55## End configuration dependend stuff
56#################################################################
57##
58## compiler and linker options
59##
60CFLAGS          += ${DEFS}
61
62MOD_INCLUDES    = mod2.h utils.h structs.h mmemory.h tok.h ipid.h \
63        subexpr.h febase.h modules.h grammar.h numbers.h polys.h \
64        ideals.h intvec.h polys-impl.h lists.h matpol.h ipconv.h \
65        lists.h matpol.h mmpage.h mmheap.h polys-comp.h
66
67##
68##
69##
70
71all: mod_install modgen modules
72
73mod_install:
74        for file in ${MOD_INCLUDES}; do \
75                if test -f ${MOD_DEST}/$${file}; then \
76                        rm -f ${MOD_DEST}/$${file}; \
77                fi; \
78                cp ${INC_SRC}/$${file} ${MOD_DEST}/$${file}; \
79                chmod 444 ${MOD_DEST}/$${file}; \
80        done
81
82modgen:
83        cd modgen; make install
84
85modules:
86        for SUBDIR in ${MODDIRS}; \
87        do \
88                echo ${MAKE} $@ in $${SUBDIR}; \
89                ( cd $${SUBDIR} && ${MODGEN} $${SUBDIR}.mod ;); \
90                ( cd $${SUBDIR}/$${SUBDIR} && ${MAKE} ;) \
91        done
92
93clean:
94        rm -f *.o *.lo *.so* *.la *~ core
95        for file in ${MOD_INCLUDES}; do \
96                rm -f ${MOD_DEST}/$${file}; \
97        done
98        ( cd modgen && make $@; )
99        for SUBDIR in ${MODDIRS}; \
100        do \
101                echo ${MAKE} $@ in $${SUBDIR}; \
102                ( cd $${SUBDIR} && ${MAKE} $@; ) \
103        done
104
105distclean: clean
106        ( cd modgen && make clean )
107        for SUBDIR in ${MODDIRS}; \
108        do \
109                echo ${MAKE} $@ in $${SUBDIR}; \
110                ( cd $${SUBDIR} && ${MAKE} $@ ;) \
111        done
112        rm -f Makefile
113
114install: all
115        cd modgen; make install
116        for SUBDIR in ${MODDIRS}; \
117        do \
118                echo ${MAKE} $@ in $${SUBDIR}; \
119                ( cd $${SUBDIR} && ${MAKE} $@;) \
120        done
Note: See TracBrowser for help on using the repository browser.