source: git/modules/Makefile.in @ a69d3b

spielwiese
Last change on this file since a69d3b was a69d3b, checked in by Hans Schönemann <hannes@…>, 19 years ago
*hannes: some fixes for configure/make git-svn-id: file:///usr/local/Singular/svn/trunk@8204 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.11 2005-05-17 09:09:21 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@
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/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                else \
75                  ${MODGEN} $${file}.mod >$${file}.log ;\
76                fi; \
77        done
78
79modgen/modgen:
80        cd modgen; make install
81
82modules: mod_prepare
83        for SUBDIR in ${MOD_DIRS} ${MOD_FILES}; \
84        do \
85                if test -d $${SUBDIR}; then \
86                   echo ${MAKE} $@ in $${SUBDIR}; \
87                   ( cd $${SUBDIR} && ${MAKE} ;) \
88                fi;\
89                if test !-d $${SUBDIR}; then \
90                   echo directory $${SUBDIR} does not exist!; \
91                fi;\
92        done
93
94clean:
95        rm -f *.o *.lo *.so* *.la *~ core
96        ( cd modgen && make $@; )
97        for SUBDIR in ${MOD_DIRS} ${MOD_FILES}; \
98        do \
99                if test -d $${SUBDIR}; then \
100                   echo ${MAKE} $@ in $${SUBDIR}; \
101                  if [ -e "$${SUBDIR}/Makefile" ]; then (cd $${SUBDIR}; $(MAKE) $@;) fi \
102                fi; \
103        done
104
105mod_clean:
106        for SUBDIR in ${MOD_FILES}; \
107        do \
108                if test -d $${SUBDIR}; then \
109                echo removing $${SUBDIR};\
110                   rm -rf $${SUBDIR}; \
111                fi; \
112        done
113
114        for SUBDIR in ${MOD_DIRS}; \
115        do \
116                if test -d $${SUBDIR}; then \
117                   echo ${MAKE} clean in $${SUBDIR}; \
118                  if [ -e "$${SUBDIR}/Makefile" ]; then (cd $${SUBDIR}; $(MAKE) clean;) fi \
119                fi; \
120        done
121
122distclean: clean mod_clean
123        ( cd modgen && make clean )
124        for SUBDIR in ${MOD_DIRS}; \
125        do \
126                echo ${MAKE} $@ in $${SUBDIR}; \
127                  if [ -e "$${SUBDIR}/Makefile" ]; then (cd $${SUBDIR}; $(MAKE) clean;) fi \
128        done
129        rm -f Makefile
130
131install: all
132        (cd modgen; make install)
133        for SUBDIR in ${MOD_DIRS} ${MOD_FILES}; \
134        do \
135                echo ${MAKE} $@ in $${SUBDIR}; \
136                ( cd $${SUBDIR} && ${MAKE} $@;) \
137        done
Note: See TracBrowser for help on using the repository browser.