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

fieker-DuValspielwiese
Last change on this file since 2dc9fea was 0b6d08, checked in by Hans Schönemann <hannes@…>, 19 years ago
*hannes: use MAKE, not make git-svn-id: file:///usr/local/Singular/svn/trunk@8308 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 3.3 KB
Line 
1#################################################################
2###
3### Makefile for Singular-modules
4###
5### $Id: Makefile.in,v 1.17 2005-05-24 15:54:46 Singular 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@
21install_bindir  = @bindir@
22# Singular libs go here
23includedir      = @includedir@
24INC_SRC         = ${topsrcdir}/Singular
25SINGUNAME       = @SINGUNAME@
26install_bindir  = ${install_prefix}/${SINGUNAME}/MOD
27
28##
29## various programs
30##
31CC              = @CC@
32CXX             = @CXX@
33#LEXP           = @LEXP@
34PERL            = @PERL@
35BISON           = bison
36@SET_MAKE@
37INSTALL         = ./install-sh -c
38INSTALL_PROGRAM = ${INSTALL}
39INSTALL_DATA    = ${INSTALL} -m 644
40MKINSTALLDIRS   = ./mkinstalldirs
41MODGEN          = ${srcdir}/modgen/modgen
42
43##
44## compiler and linker options
45##
46CFLAGS          = @CFLAGS@ -pipe -I${srcdir} -I${INC_SRC}
47CXXFLAGS        = @CXXFLAGS@ -pipe
48#CXXTEMPLFLAGS  = @CXXTEMPLFLAGS@
49CPPFLAGS        = -I${srcdir} @CPPFLAGS@ -I${includedir} -I${INC_SRC}
50DEFS            = @DEFS@ -DNDEBUG
51LDFLAGS         = @LDFLAGS@ # @LD_DYNAMIC@
52#STATIC_LDFLAGS = @STATIC_LDFLAGS@
53#LIBS           = @NEED_LIBS@
54
55##
56## End configuration dependend stuff
57#################################################################
58##
59## compiler and linker options
60##
61CFLAGS          += ${DEFS}
62
63MOD_FILES = loctriv
64#MOD_DIRS = kernel
65MOD_DIRS =
66
67##
68##
69##
70
71all: modgen mod_prepare modules
72
73mod_prepare: modgen/modgen
74        for file in ${MOD_FILES}; do \
75                if test -d $${file}; then \
76                  echo Directory $${file} exists! Ignoring $${file}; \
77                  echo Use make mod_clean or remove directory by hand; \
78                else \
79                  ${MODGEN} $${file}.mod >$${file}.log ;\
80                fi; \
81        done
82
83modgen/modgen:
84        cd modgen; ${MAKE} install
85
86modules: mod_prepare
87        for SUBDIR in ${MOD_DIRS} ${MOD_FILES}; \
88        do \
89                if test -d $${SUBDIR}; then \
90                   echo ${MAKE} $@ in $${SUBDIR}; \
91                   ( cd $${SUBDIR} && ${MAKE} ;) \
92                fi;\
93                if test ! -d $${SUBDIR}; then \
94                   echo directory $${SUBDIR} does not exist!; \
95                fi;\
96        done
97
98clean:
99        rm -f *.o *.lo *.so* *.la *~ core
100        ( cd modgen && ${MAKE} $@; )
101        for SUBDIR in ${MOD_DIRS} ${MOD_FILES}; \
102        do \
103                if test -d $${SUBDIR}; then \
104                   echo ${MAKE} $@ in $${SUBDIR}; \
105                  if [ -e "$${SUBDIR}/Makefile" ]; then (cd $${SUBDIR}; $(MAKE) $@;) fi \
106                fi; \
107        done
108
109mod_clean:
110        for SUBDIR in ${MOD_FILES}; \
111        do \
112                if test -d $${SUBDIR}; then \
113                echo removing $${SUBDIR};\
114                   rm -rf $${SUBDIR}; \
115                fi; \
116        done
117
118        for SUBDIR in ${MOD_DIRS}; \
119        do \
120                if test -d $${SUBDIR}; then \
121                   echo ${MAKE} clean in $${SUBDIR}; \
122                  if [ -e "$${SUBDIR}/Makefile" ]; then (cd $${SUBDIR}; $(MAKE) clean;) fi \
123                fi; \
124        done
125
126distclean: clean mod_clean
127        ( cd modgen && ${MAKE} clean )
128        for SUBDIR in ${MOD_DIRS}; \
129        do \
130                echo ${MAKE} $@ in $${SUBDIR}; \
131                  if [ -e "$${SUBDIR}/Makefile" ]; then (cd $${SUBDIR}; $(MAKE) clean;) fi \
132        done
133        rm -f Makefile
134
135install bindist: all
136        (cd modgen; ${MAKE} $@)
137        for SUBDIR in ${MOD_DIRS} ${MOD_FILES}; \
138        do \
139                echo ${MAKE} $@ in $${SUBDIR}; \
140                ( cd $${SUBDIR} && ${MAKE} $@;) || true; \
141        done
142
143install-bindist: all
144        (cd modgen; ${MAKE} install_bindir=${install_bindir} $@)
145        for SUBDIR in ${MOD_DIRS} ${MOD_FILES}; \
146        do \
147                echo ${MAKE} install_bindir=${install_bindir} $@ in $${SUBDIR}; \
148                ( cd $${SUBDIR} && ${MAKE} install_bindir=${install_bindir} $@;)|| true ;\
149        done
Note: See TracBrowser for help on using the repository browser.