source: git/libfac/Makefile.in @ 58c313

spielwiese
Last change on this file since 58c313 was 128ff77, checked in by Wilfred Pohl <pohl@…>, 26 years ago
* Makefile.in (CPPFLAGS): include paths fixed so that Windows NT will find Factor.h before factor.h git-svn-id: file:///usr/local/Singular/svn/trunk@2034 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 5.1 KB
Line 
1# $Id: Makefile.in,v 1.9 1998-06-03 12:45:53 pohl Exp $
2#################################################
3SHELL           = /bin/sh
4RM              = -rm -f
5#################################################
6TARGETNAME              = @targetname@
7LIBFACNAME              = @libfac_name@
8LIBFACVERSION           = @libfac_version@
9LIBFACDATE              = @libfac_date@
10LIBFACAUTHOR            = @libfac_author@
11LIBFACNAME              = @libfac@
12SINGLIBFACNAME          = @libsingfac@
13LIBFACNAME-G            = @libfac_g@
14SINGLIBFACNAME-G        = @libsingfac_g@
15LIBFACINCLUDE           = @factorH@
16#################################################
17##
18## various paths
19##
20srcdir          = @srcdir@
21prefix          = @prefix@
22exec_prefix     = @exec_prefix@
23libdir          = @libdir@
24includedir      = @includedir@
25
26##
27## various programs
28##
29AR              = @AR@ cr
30RANLIB          = @RANLIB@
31CXX             = @CXX@
32INSTALL         = ./install-sh -c
33INSTALL_DATA    = ${INSTALL} -m 644
34INSTALL_PROGRAM = ${INSTALL}
35MKINSTALLDIRS   = ./mkinstalldirs
36
37##
38## compiler and linker options
39##
40CXXFLAGS        = @CXXFLAGS@
41CXXTEMPLFLAGS   = @CXXTEMPLFLAGS@
42CPPFLAGS        = -I${srcdir}/factor -I${srcdir}/charsets -I${srcdir} @CPPFLAGS@
43DEFS            = @DEFS@
44LDFLAGS         = @LDFLAGS@
45LIBS            = @LIBS@ -lfac -lcf -lmem -lgmp
46
47##
48## src and objects
49##
50
51FACTORSRC1 =    factor/SqrFree.cc factor/Factor.cc \
52                factor/MVMultiHensel.cc factor/Truefactor.cc \
53                factor/helpstuff.cc  factor/debug.cc factor/version.cc \
54                factor/homogfactor.cc
55FACTORSRC2 =    factor/tmpl_inst.cc
56FACTORSRC =     $(FACTORSRC2) $(FACTORSRC1)
57
58CHARSETSRC1 =   charset/csutil.cc charset/charset.cc charset/reorder.cc
59CHARSETSRC =    $(CHARSETSRC1)
60
61FACTORINCL =    factor/Factor.h factor/MVMultiHensel.h factor/Truefactor.h \
62                factor/tmpl_inst.h factor/SqrFree.h factor/helpstuff.h \
63                factor/debug.h factor/timing.h factor/homogfactor.h \
64                factor/interrupt.h
65CHARSETINCL =   charset/csutil.h charset/charset.h charset/reorder.h \
66                charset/alg_factor.h charset/algfactor.h
67
68OPTFACTOROBJ1 = OPTOBJ/SqrFree.o OPTOBJ/Factor.o OPTOBJ/MVMultiHensel.o \
69                OPTOBJ/Truefactor.o OPTOBJ/helpstuff.o OPTOBJ/version.o \
70                OPTOBJ/homogfactor.o OPTOBJ/debug.o
71OPTFACTOROBJ2 = OPTOBJ/tmpl_inst.o
72OPTFACTOROBJ =  $(OPTFACTOROBJ2) $(OPTFACTOROBJ1)
73
74OPTCHARSETOBJ = OPTOBJ/csutil.o OPTOBJ/charset.o OPTOBJ/reorder.o \
75                OPTOBJ/alg_factor.o OPTOBJ/algfactor.o
76
77DEBFACTOROBJ1 = DEBOBJ/SqrFree.o DEBOBJ/Factor.o DEBOBJ/MVMultiHensel.o \
78                DEBOBJ/Truefactor.o DEBOBJ/helpstuff.o DEBOBJ/version.o \
79                DEBOBJ/homogfactor.o DEBOBJ/debug.o
80DEBFACTOROBJ2 = DEBOBJ/tmpl_inst.o
81DEBFACTOROBJ =  $(DEBFACTOROBJ2) $(DEBFACTOROBJ1)
82
83DEBCHARSETOBJ = DEBOBJ/csutil.o DEBOBJ/charset.o DEBOBJ/reorder.o \
84                DEBOBJ/alg_factor.o DEBOBJ/algfactor.o
85
86##
87## Primary targets
88##
89
90.SUFFIXES:      .cc .h .o
91
92all: OPTOBJ DEBOBJ ${TARGETNAME}
93
94OPTOBJ:
95        ${MKINSTALLDIRS} OPTOBJ
96
97DEBOBJ:
98        ${MKINSTALLDIRS} DEBOBJ
99
100OPTOBJ/%.o: %.cc
101        $(CXX) $(CXXFLAGS) $(CXXTEMPLFLAGS) $(CPPFLAGS) $(DEFS) -c $< -o $@
102
103OPTOBJ/%.o: charset/%.cc
104        $(CXX) $(CXXFLAGS) $(CXXTEMPLFLAGS) $(CPPFLAGS) $(DEFS) -c $< -o $@
105
106OPTOBJ/%.o: factor/%.cc
107        $(CXX) $(CXXFLAGS) $(CXXTEMPLFLAGS) $(CPPFLAGS) $(DEFS) -c $< -o $@
108
109OPTOBJ/tmpl_inst.o: factor/tmpl_inst.cc
110        $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(DEFS) -c $< -o $@
111
112DEBOBJ/%.o: %.cc
113        $(CXX) $(CXXFLAGS) $(CXXTEMPLFLAGS) $(CPPFLAGS) $(DEFS) -c $< -o $@
114
115DEBOBJ/%.o: charset/%.cc
116        $(CXX) $(CXXFLAGS) $(CXXTEMPLFLAGS) $(CPPFLAGS) $(DEFS) -c $< -o $@
117
118DEBOBJ/%.o: factor/%.cc
119        $(CXX) $(CXXFLAGS) $(CXXTEMPLFLAGS) $(CPPFLAGS) $(DEFS) -c $< -o $@
120
121DEBOBJ/tmpl_inst.o: factor/tmpl_inst.cc
122        $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(DEFS) -c $< -o $@
123
124
125libfac:         libfac.a
126
127libsingfac:     libsingfac.a
128
129libfac-g:       libfac-g.a
130
131libsingfac-g:   libsingfac-g.a
132
133libfac.a:       $(OPTFACTOROBJ) $(OPTCHARSETOBJ)
134                $(AR) ${LIBFACNAME}.a $(OPTFACTOROBJ) $(OPTCHARSETOBJ)
135                $(RANLIB) ${LIBFACNAME}.a
136
137libsingfac.a:   $(OPTFACTOROBJ1) $(OPTCHARSETOBJ)
138                $(AR) ${SINGLIBFACNAME}.a $(OPTFACTOROBJ1) $(OPTCHARSETOBJ)
139                $(RANLIB) ${SINGLIBFACNAME}.a
140
141libfac-g.a:     $(DEBFACTOROBJ) $(DEBCHARSETOBJ)
142                $(AR) ${LIBFACNAME}.a $(DEBFACTOROBJ) $(DEBCHARSETOBJ)
143                $(RANLIB) ${LIBFACNAME}.a
144
145libsingfac-g.a: $(DEBFACTOROBJ1) $(DEBCHARSETOBJ)
146                $(AR) ${SINGLIBFACNAME}.a $(DEBFACTOROBJ1) $(DEBCHARSETOBJ)
147                $(RANLIB) ${SINGLIBFACNAME}.a
148
149install:        all
150        ${MKINSTALLDIRS} ${includedir}
151        ${MKINSTALLDIRS} ${libdir}
152        ${INSTALL_DATA} ${LIBFACINCLUDE} ${includedir}
153        ${INSTALL_PROGRAM} ${TARGETNAME}.a ${libdir}
154        $(RANLIB) ${libdir}/${TARGETNAME}.a
155
156uninstall:
157        $(RM) ${includedir}/${LIBFACINCLUDE}
158        $(RM) ${libdir}/${LIBFACNAME}.a
159        $(RM) ${libdir}/${SINGLIBFACNAME}.a
160
161mostlyclean:
162        $(RM)   test testcs ${LIBFACNAME}.a ${SINGLIBFACNAME}.a \
163                ${LIBFACNAME-G}.a ${SINGLIBFACNAME-G}.a
164
165clean:  mostlyclean
166        $(RM) OPTOBJ/optdepend DEBOBJ/debdepend  \
167              DEBOBJ/*.o OPTOBJ/*.o
168
169distclean:      clean
170        $(RM) config.cache config.log config.status Makefile
171
172dist:   distclean
173        $(RM) ../libfac-${LIBFACVERSION}.tgz
174        (cd .. ; gtar -zcvf libfac-${LIBFACVERSION}.tgz libfac-${LIBFACVERSION})
175
176########## From here on: Only for internal use!
177#################################################
178
179factest:        libfac OPTOBJ/test.o   
180                $(CXX) -o test $(LDFLAGS) OPTOBJ/test.o $(LIBS)
181
182factests:       factest
183                (cd tests ; factortest )
184
185charsettest:    libfac  OPTOBJ/testcs.o
186                $(CXX) -o testcs $(LDFLAGS) OPTOBJ/testcs.o $(LIBS)
187
188#charsettests:  charsettest
189#               (cd tests ; charsettest )
190
191tests:          factests
192
Note: See TracBrowser for help on using the repository browser.