source: git/modules/Makefile.in @ fc3db7

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