source: git/factory/libfac/Makefile.in.SAVE_LIBFAC @ 6ce030f

jengelh-datetimespielwiese
Last change on this file since 6ce030f was 6ce030f, checked in by Oleksandr Motsak <motsak@…>, 11 years ago
removal of the $Id$ svn tag from everywhere NOTE: the git SHA1 may be used instead (only on special places) NOTE: the libraries Singular/LIB/*.lib still contain the marker due to our current use of svn
  • Property mode set to 100644
File size: 5.2 KB
Line 
1#################################################
2SHELL           = /bin/sh
3RM              = -rm -f
4#################################################
5TARGETNAME              = @targetname@
6LIBFACNAME              = @libfac_name@
7LIBFACVERSION           = @libfac_version@
8LIBFACDATE              = @libfac_date@
9LIBFACAUTHOR            = @libfac_author@
10LIBFACNAME              = @libfac@
11SINGLIBFACNAME          = @libsingfac@
12LIBFACINCLUDE           = @factorH@
13#################################################
14##
15## various paths
16##
17srcdir          = @srcdir@
18prefix          = @prefix@
19exec_prefix     = @exec_prefix@
20libdir          = @libdir@
21includedir      = @includedir@
22
23##
24## various programs
25##
26AR              = @AR@ cr
27RANLIB          = @RANLIB@
28CXX             = @CXX@
29INSTALL         = ./install-sh -c
30INSTALL_DATA    = ${INSTALL} -m 644
31INSTALL_PROGRAM = ${INSTALL}
32MKINSTALLDIRS   = ./mkinstalldirs
33
34##
35## compiler and linker options
36##
37CXXFLAGS        = @CXXFLAGS@
38CXXTEMPLFLAGS   = @CXXTEMPLFLAGS@
39CPPFLAGS        = -I${srcdir}/factor -I${srcdir}/charset -I${srcdir} -I.. -I${prefix} @CPPFLAGS@
40DEFS            = @DEFS@
41LDFLAGS         = @LDFLAGS@
42LIBS            = -lfac -lcf -lcfmem -lgmp @LIBS@
43
44##
45## src and objects
46##
47
48FACTORSRC1 =    factor/SqrFree.cc factor/Factor.cc \
49                factor/MVMultiHensel.cc factor/Truefactor.cc \
50                factor/helpstuff.cc  factor/version.cc \
51                factor/homogfactor.cc
52FACTORSRC2 =    factor/tmpl_inst.cc
53FACTORSRC =     $(FACTORSRC2) $(FACTORSRC1)
54
55CHARSETSRC1 =   charset/csutil.cc charset/charset.cc charset/reorder.cc
56CHARSETSRC =    $(CHARSETSRC1)
57
58FACTORINCL =    factor/Factor.h factor/MVMultiHensel.h factor/Truefactor.h \
59                factor/tmpl_inst.h factor/SqrFree.h factor/helpstuff.h \
60                factor/debug.h factor/timing.h factor/homogfactor.h \
61                factor/interrupt.h
62CHARSETINCL =   charset/csutil.h charset/charset.h charset/reorder.h \
63                charset/alg_factor.h charset/algfactor.h
64
65OPTFACTOROBJ1 = OPTOBJ/SqrFree.o OPTOBJ/Factor.o OPTOBJ/MVMultiHensel.o \
66                OPTOBJ/Truefactor.o OPTOBJ/helpstuff.o OPTOBJ/version.o \
67                OPTOBJ/homogfactor.o
68OPTFACTOROBJ2 = OPTOBJ/tmpl_inst.o
69OPTFACTOROBJ =  $(OPTFACTOROBJ2) $(OPTFACTOROBJ1)
70
71OPTCHARSETOBJ = OPTOBJ/csutil.o OPTOBJ/charset.o OPTOBJ/reorder.o \
72                OPTOBJ/alg_factor.o OPTOBJ/algfactor.o
73
74DEBOBJ = $(OPTFACTOROBJ1:%.o=%.og) $(OPTCHARSETOBJ:%.o=%.og)
75PROFOBJ = $(OPTFACTOROBJ1:%.o=%.op) $(OPTCHARSETOBJ:%.o=%.op)
76
77##
78## Primary targets
79##
80
81.SUFFIXES:      .cc .h .o .op .og
82
83all: OPTOBJ ${TARGETNAME} libsingfac_g.a
84
85OPTOBJ:
86        ${MKINSTALLDIRS} OPTOBJ
87
88OPTOBJ/%.o: %.cc OPTOBJ
89        $(CXX) $(CXXFLAGS) $(CXXTEMPLFLAGS) $(CPPFLAGS) $(DEFS) -c $< -o $@
90
91OPTOBJ/%.o: charset/%.cc OPTOBJ
92        $(CXX) $(CXXFLAGS) $(CXXTEMPLFLAGS) $(CPPFLAGS) $(DEFS) -c $< -o $@
93
94OPTOBJ/%.o: factor/%.cc OPTOBJ
95        $(CXX) $(CXXFLAGS) $(CXXTEMPLFLAGS) $(CPPFLAGS) $(DEFS) -c $< -o $@
96
97OPTOBJ/tmpl_inst.o: factor/tmpl_inst.cc  OPTOBJ
98        $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(DEFS) -c $< -o $@
99
100OPTOBJ/%.op: %.cc  OPTOBJ
101        $(CXX) -O -pg $(CXXTEMPLFLAGS) $(CPPFLAGS) $(DEFS) -c $< -o $@
102
103OPTOBJ/%.op: charset/%.cc  OPTOBJ
104        $(CXX) -O -pg $(CXXTEMPLFLAGS) $(CPPFLAGS) $(DEFS) -c $< -o $@
105
106OPTOBJ/%.op: factor/%.cc OPTOBJ
107        $(CXX) -O -pg $(CXXTEMPLFLAGS) $(CPPFLAGS) $(DEFS) -c $< -o $@
108
109OPTOBJ/tmpl_inst.op: factor/tmpl_inst.cc  OPTOBJ
110        $(CXX) -O -pg $(CPPFLAGS) $(DEFS) -c $< -o $@
111
112OPTOBJ/%.og: %.cc  OPTOBJ
113        $(CXX) -g $(CXXTEMPLFLAGS) $(CPPFLAGS) $(DEFS) -c $< -o $@
114
115OPTOBJ/%.og: charset/%.cc  OPTOBJ
116        $(CXX) -g $(CXXTEMPLFLAGS) $(CPPFLAGS) $(DEFS) -c $< -o $@
117
118OPTOBJ/%.og: factor/%.cc OPTOBJ
119        $(CXX) -g $(CXXTEMPLFLAGS) $(CPPFLAGS) $(DEFS) -c $< -o $@
120
121OPTOBJ/tmpl_inst.og: factor/tmpl_inst.cc  OPTOBJ
122        $(CXX) -g $(CPPFLAGS) $(DEFS) -c $< -o $@
123
124libfac:         OPTOBJ libfac.a
125
126libsingfac:     OPTOBJ libsingfac.a
127
128libsingfac_g:   OPTOBJ libsingfac_g.a
129
130libfac.a:       $(OPTFACTOROBJ) $(OPTCHARSETOBJ)
131                $(AR) ${LIBFACNAME}.a $(OPTFACTOROBJ) $(OPTCHARSETOBJ)
132                $(RANLIB) ${LIBFACNAME}.a
133
134libsingfac.a:   $(OPTFACTOROBJ1) $(OPTCHARSETOBJ)
135                $(AR) ${SINGLIBFACNAME}.a $(OPTFACTOROBJ1) $(OPTCHARSETOBJ)
136                $(RANLIB) ${SINGLIBFACNAME}.a
137
138libsingfac_g.a: $(DEBOBJ)
139                $(AR) $@ $^
140                $(RANLIB) $@
141
142libsingfac_p.a: $(PROFOBJ)
143                $(AR) $@ $^
144                $(RANLIB) $@
145
146install-nolns: install
147
148install install-libsingular:    all
149        ${MKINSTALLDIRS} ${includedir}
150        ${MKINSTALLDIRS} ${libdir}
151        ${INSTALL_DATA} ${LIBFACINCLUDE} ${includedir}
152        ${INSTALL_DATA} ${TARGETNAME}.a ${libdir}
153        -${INSTALL_DATA} libsingfac_g.a ${libdir}
154        $(RANLIB) ${libdir}/${TARGETNAME}.a
155        -$(RANLIB) ${libdir}/libsingfac_g.a
156
157install_all: install libsingfac_p.a
158        -${INSTALL_DATA} libsingfac_p.a ${libdir}
159        -$(RANLIB) ${libdir}/libsingfac_p.a
160
161uninstall:
162        $(RM) ${includedir}/${LIBFACINCLUDE}
163        $(RM) ${libdir}/${LIBFACNAME}.a
164        $(RM) ${libdir}/${SINGLIBFACNAME}.a
165
166mostlyclean:
167        $(RM)   test testcs ${LIBFACNAME}.a ${SINGLIBFACNAME}.a \
168                libsingfac_g.a libsingfac_p.a
169
170clean:  mostlyclean
171        $(RM) OPTOBJ/optdepend OPTOBJ/debdepend  \
172              OPTOBJ/*.op OPTOBJ/*.og OPTOBJ/*.o
173
174distclean:      clean
175        $(RM) config.cache config.log config.status Makefile
176
177dist:   distclean
178        $(RM) ../libfac-${LIBFACVERSION}.tgz
179        (cd .. ; gtar -zcvf libfac-${LIBFACVERSION}.tgz libfac-${LIBFACVERSION})
180
181depend:
182        @echo "No make depend available!"
183
184########## From here on: Only for internal use!
185#################################################
186
187factest:        libfac OPTOBJ/test.o   
188                $(CXX) -o test $(LDFLAGS) OPTOBJ/test.o $(LIBS)
189
190factests:       factest
191                (cd tests ; factortest )
192
193charsettest:    libfac  OPTOBJ/testcs.o
194                $(CXX) -o testcs $(LDFLAGS) OPTOBJ/testcs.o $(LIBS)
195
196#charsettests:  charsettest
197#               (cd tests ; charsettest )
198
199tests:          factests
200
Note: See TracBrowser for help on using the repository browser.