[b5ebe5] | 1 | # Generated automatically from Makefile.in by configure.- |
---|
| 2 | ################################################################# |
---|
| 3 | ### |
---|
| 4 | ### Makefile for Singular |
---|
| 5 | ### |
---|
| 6 | ################################################################# |
---|
| 7 | |
---|
| 8 | SHELL = /bin/sh |
---|
| 9 | |
---|
| 10 | ## |
---|
| 11 | ## version |
---|
| 12 | ## |
---|
| 13 | SINGULAR_VERSION = spielwiese |
---|
| 14 | ## |
---|
| 15 | ## various paths |
---|
| 16 | ## |
---|
| 17 | srcdir = . |
---|
| 18 | includedir = ../libpolys |
---|
| 19 | |
---|
| 20 | ## |
---|
| 21 | ## various programs |
---|
| 22 | ## |
---|
| 23 | |
---|
| 24 | CC = gcc |
---|
| 25 | LD = ld |
---|
| 26 | CXX = g++ |
---|
| 27 | PERL = perl |
---|
| 28 | INSTALL = /usr/bin/install -c |
---|
| 29 | INSTALL_PROGRAM = ${INSTALL} |
---|
| 30 | INSTALL_DATA = ${INSTALL} -m 644 |
---|
| 31 | MKINSTALLDIRS = ./mkinstalldirs |
---|
| 32 | LN_S = ln -s |
---|
| 33 | |
---|
| 34 | ## |
---|
| 35 | ## compiler and linker options |
---|
| 36 | ## |
---|
| 37 | LIBPOLYS_CFLAGS = `sh ../libpolys/libpolys-config --cflags` |
---|
| 38 | |
---|
| 39 | PIPE = -pipe |
---|
| 40 | CFLAGS = -O3 -w -fomit-frame-pointer ${PIPE} ${LIBPOLYS_CFLAGS} |
---|
| 41 | CXXFLAGS = -O3 -w -fomit-frame-pointer --no-rtti ${PIPE} ${LIBPOLYS_CFLAGS} |
---|
| 42 | CXXTEMPLFLAGS = -fno-implicit-templates --no-exceptions |
---|
| 43 | CPPFLAGS = -I${srcdir} -I.. -I${includedir} ${LIBPOLYS_CFLAGS} |
---|
| 44 | DEFS = -DNDEBUG -DOM_NDEBUG |
---|
| 45 | LDFLAGS = -L${srcdir}/lib |
---|
| 46 | LD_DYN_FLAGS = -ldl -rdynamic |
---|
| 47 | SFLAGS = -fpic -DPIC |
---|
| 48 | SLDFLAGS = -shared |
---|
| 49 | |
---|
| 50 | LD_LIBC = -lc |
---|
| 51 | STATIC_LDFLAGS = -static |
---|
| 52 | LIBS = -lm -lsingfac -lsingcf -lntl -lgmp -lreadline -lncurses -lm -lnsl -lomalloc_ndebug |
---|
| 53 | MP_LIBS = -lMPT -lMP -lnsl |
---|
| 54 | |
---|
| 55 | ## End configuration dependend stuff |
---|
| 56 | ################################################################# |
---|
| 57 | |
---|
| 58 | ### |
---|
| 59 | ### file sets |
---|
| 60 | ### |
---|
| 61 | |
---|
| 62 | # normal C++ source files |
---|
| 63 | CXXSOURCES=\ |
---|
| 64 | Minor.cc\ |
---|
| 65 | MinorInterface.cc\ |
---|
| 66 | MinorProcessor.cc\ |
---|
| 67 | attrib.cc\ |
---|
| 68 | bbcone.cc\ |
---|
| 69 | bbfan.cc\ |
---|
| 70 | bigintm.cc\ |
---|
| 71 | blackbox.cc\ |
---|
| 72 | calcSVD.cc\ |
---|
| 73 | cntrlc.cc\ |
---|
| 74 | denom_list.cc\ |
---|
| 75 | eigenval_ip.cc\ |
---|
| 76 | emacs.cc\ |
---|
| 77 | extra.cc\ |
---|
| 78 | feOpt.cc\ |
---|
| 79 | fehelp.cc\ |
---|
| 80 | fglm.cc\ |
---|
| 81 | gentable.cc\ |
---|
| 82 | gentable2.cc\ |
---|
| 83 | gms.cc\ |
---|
| 84 | grammar.cc\ |
---|
| 85 | interpolation.cc\ |
---|
| 86 | iparith.cc\ |
---|
| 87 | ipassign.cc\ |
---|
| 88 | ipconv.cc\ |
---|
| 89 | ipid.cc\ |
---|
| 90 | iplib.cc\ |
---|
| 91 | ipprint.cc\ |
---|
| 92 | ipshell.cc\ |
---|
| 93 | janet.cc\ |
---|
| 94 | libparse.cc\ |
---|
| 95 | linearAlgebra_ip.cc\ |
---|
| 96 | lists.cc\ |
---|
| 97 | maps_ip.cc\ |
---|
| 98 | minpoly.cc\ |
---|
| 99 | misc_ip.cc\ |
---|
| 100 | mpsr_Error.cc\ |
---|
| 101 | mpsr_Get.cc\ |
---|
| 102 | mpsr_GetMisc.cc\ |
---|
| 103 | mpsr_GetPoly.cc\ |
---|
| 104 | mpsr_Put.cc\ |
---|
| 105 | mpsr_PutPoly.cc\ |
---|
| 106 | mpsr_Timer.cc\ |
---|
| 107 | mpsr_Tok.cc\ |
---|
| 108 | mpsr_sl.cc\ |
---|
| 109 | ndbm.cc\ |
---|
| 110 | newstruct.cc\ |
---|
| 111 | pcv.cc\ |
---|
| 112 | pipeLink.cc\ |
---|
| 113 | pyobject.cc\ |
---|
| 114 | pyobject_setup.cc\ |
---|
| 115 | scanner.cc\ |
---|
| 116 | sdb.cc\ |
---|
| 117 | silink.cc\ |
---|
| 118 | sing_dbm.cc\ |
---|
| 119 | sing_win.cc\ |
---|
| 120 | slInit_Dynamic.cc\ |
---|
| 121 | slInit_Static.cc\ |
---|
| 122 | ssiLink.cc\ |
---|
| 123 | subexpr.cc\ |
---|
| 124 | tesths.cc\ |
---|
| 125 | utils.cc\ |
---|
| 126 | walk.cc\ |
---|
| 127 | walk_ip.cc\ |
---|
| 128 | wrapper.cc |
---|
| 129 | |
---|
| 130 | CXXSOURCES2 = SingularBuilder.cpp |
---|
| 131 | |
---|
| 132 | # special C++ source files (need extra compiling and/or linking), for which |
---|
| 133 | # dependencies should be generated |
---|
| 134 | ESOURCES=claptmpl.cc |
---|
| 135 | |
---|
| 136 | SOURCES=${CSOURCES} ${CXXSOURCES} \ |
---|
| 137 | kInline.h |
---|
| 138 | |
---|
| 139 | HEADERS=\ |
---|
| 140 | Cache.h \ |
---|
| 141 | CacheImplementation.h \ |
---|
| 142 | Minor.h \ |
---|
| 143 | MinorInterface.h \ |
---|
| 144 | MinorProcessor.h \ |
---|
| 145 | attrib.h \ |
---|
| 146 | bbcone.h \ |
---|
| 147 | bigintm.h \ |
---|
| 148 | blackbox.h \ |
---|
| 149 | cntrlc.h \ |
---|
| 150 | dbm_sl.h \ |
---|
| 151 | distrib.h \ |
---|
| 152 | eigenval_ip.h \ |
---|
| 153 | feOpt.h \ |
---|
| 154 | gms.h \ |
---|
| 155 | grammar.h \ |
---|
| 156 | interpolation.h \ |
---|
| 157 | ipconv.h \ |
---|
| 158 | ipid.h \ |
---|
| 159 | ipprint.h \ |
---|
| 160 | ipshell.h \ |
---|
| 161 | janet.h \ |
---|
| 162 | libparse.h \ |
---|
| 163 | libsingular.h \ |
---|
| 164 | lists.h \ |
---|
| 165 | locals.h \ |
---|
| 166 | maps_ip.h \ |
---|
| 167 | minpoly.h \ |
---|
| 168 | misc_ip.h \ |
---|
| 169 | mpsr.h \ |
---|
| 170 | mpsr_Get.h \ |
---|
| 171 | mpsr_Put.h \ |
---|
| 172 | mpsr_Timer.h \ |
---|
| 173 | mpsr_Tok.h \ |
---|
| 174 | mpsr_sl.h \ |
---|
| 175 | ndbm.h \ |
---|
| 176 | newstruct.h \ |
---|
| 177 | omSingularConfig.h \ |
---|
| 178 | pcv.h \ |
---|
| 179 | pipeLink.h \ |
---|
| 180 | pyobject_setup.h \ |
---|
| 181 | run.h \ |
---|
| 182 | sdb.h \ |
---|
| 183 | silink.h \ |
---|
| 184 | sing_dbm.h \ |
---|
| 185 | sing_win.h \ |
---|
| 186 | slInit.h \ |
---|
| 187 | ssiLink.h \ |
---|
| 188 | static.h \ |
---|
| 189 | stype.h \ |
---|
| 190 | subexpr.h \ |
---|
| 191 | table.h \ |
---|
| 192 | tok.h \ |
---|
| 193 | utils.h \ |
---|
| 194 | walk.h |
---|
| 195 | |
---|
| 196 | |
---|
| 197 | OBJS := $(CXXSOURCES:.cc=.o) $(CSOURCES:.c=.o) #$(CXXSOURCES2:.cpp=.o) |
---|
| 198 | OBJS2 := $(ESOURCES:.cc=.o) |
---|
| 199 | OBJSG2 := $(ESOURCES:.cc=.og) |
---|
| 200 | OBJSP2 := $(ESOURCES:.cc=.op) |
---|
| 201 | |
---|
| 202 | ## |
---|
| 203 | ## Build Targets |
---|
| 204 | ## |
---|
| 205 | .cc.o: |
---|
| 206 | ${CXX} ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} -c $< |
---|
| 207 | .c.o: |
---|
| 208 | ${CC} ${CFLAGS} ${CPPFLAGS} ${DEFS} -c $< |
---|
| 209 | |
---|
| 210 | OBJG= $(CXXSOURCES:.cc=.og) $(CSOURCES:.c=.og) |
---|
| 211 | |
---|
| 212 | OBJG := $(OBJG) $(STATIC_SOURCES:.cc=.og) |
---|
| 213 | OBJP := $(OBJP) $(STATIC_SOURCES:.cc=.op) |
---|
| 214 | |
---|
| 215 | all: Singular |
---|
| 216 | |
---|
| 217 | Singular: ${OBJS} |
---|
| 218 | |
---|
| 219 | ## |
---|
| 220 | ## clean targest |
---|
| 221 | ## |
---|
| 222 | mostlyclean: |
---|
| 223 | -rm -f *.o *.og core *.op |
---|
| 224 | |
---|
| 225 | clean: mostlyclean |
---|
| 226 | -rm -f *.bak *.d *.dd depend *.a *.so* |
---|
| 227 | |
---|
| 228 | distclean: clean |
---|
| 229 | -rm -f *~ .\#* |
---|
| 230 | -rm -f mod2.h Makefile TAGS* tags config.status config.cache config.log |
---|
| 231 | |
---|
| 232 | srcclean: |
---|
| 233 | @echo "This command is intended for maintainers to use;" |
---|
| 234 | @echo "Rebuilding the deleted files requires flex" |
---|
| 235 | @echo "bison, perl" |
---|
| 236 | |
---|
| 237 | maintainer-clean: distclean srcclean |
---|
| 238 | @echo "This command is intended for maintainers to use;" |
---|
| 239 | @echo "Rebuilding the deleted files requires flex" |
---|
| 240 | @echo "bison, perl and autoconf" |
---|
| 241 | |
---|
| 242 | ## |
---|
| 243 | ## miscellanous targets |
---|
| 244 | ## |
---|
| 245 | |
---|
| 246 | TAGS: ${SOURCES} ${ESOURCES} ${HEADERS} |
---|
| 247 | etags ${SOURCES} ${ESOURCES} ${HEADERS} |
---|
| 248 | |
---|
| 249 | tags: |
---|
| 250 | ctags *.c *.h *.cc *.inc |
---|
| 251 | |
---|
| 252 | ## |
---|
| 253 | ## Below here is stuff for developpers |
---|
| 254 | ################################################################# |
---|
| 255 | |
---|
| 256 | |
---|
| 257 | ## |
---|
| 258 | ## .og files for having -O and -g object versions available at the same time |
---|
| 259 | ## |
---|
| 260 | |
---|
| 261 | OBJG1 := $(CXXSOURCES:.cc=.og) |
---|
| 262 | OBJG2 := $(CSOURCES:.c=.og) |
---|
| 263 | |
---|
| 264 | ## |
---|
| 265 | ## compiler and linker options for debug version |
---|
| 266 | ## |
---|
| 267 | |
---|
| 268 | CCG = ${CC} |
---|
| 269 | CXXG = ${CXX} -Wall |
---|
| 270 | CXXM = gcc -MM -MG -DGENERATE_DEPEND |
---|
| 271 | CCM = gcc -MM -MG -DGENERATE_DEPEND |
---|
| 272 | |
---|
| 273 | CFLAGSG = -g ${PIPE} ${LIBPOLYS_CFLAGS} |
---|
| 274 | CXXFLAGSG = -g ${PIPE} ${LIBPOLYS_CFLAGS} |
---|
| 275 | DEFSG = |
---|
| 276 | |
---|
| 277 | ## |
---|
| 278 | ## Debug Targets |
---|
| 279 | ## |
---|
| 280 | |
---|
| 281 | %.og: %.cc |
---|
| 282 | $(CXXG) ${CXXFLAGSG} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFSG} -c $< -o $@ |
---|
| 283 | |
---|
| 284 | $(OBJG2) : %.og: %.c |
---|
| 285 | $(CCG) ${CFLAGSG} ${CPPFLAGS} ${DEFSG} -c $< -o $@ |
---|
| 286 | |
---|
| 287 | libkernel_g.a: ${OBJG} ${OBJSG2} |
---|
| 288 | -rm -f libkernel_g.a |
---|
| 289 | ar cr $@ ${OBJG} |
---|
| 290 | |
---|
| 291 | |
---|
| 292 | |
---|
| 293 | ## |
---|
| 294 | ## .op files for profiling |
---|
| 295 | ## |
---|
| 296 | |
---|
| 297 | OBJP1 := $(CXXSOURCES:.cc=.op) |
---|
| 298 | OBJP2 := $(CSOURCES:.c=.op) |
---|
| 299 | |
---|
| 300 | OBJP=$(OBJP1) $(OBJP2) |
---|
| 301 | |
---|
| 302 | OBJP := $(OBJP) $(STATIC_SOURCES:.cc=.op) |
---|
| 303 | |
---|
| 304 | ## |
---|
| 305 | ## compiler and linker options for profiling version |
---|
| 306 | ## |
---|
| 307 | |
---|
| 308 | CCP = ${CC} |
---|
| 309 | CXXP = ${CXX} |
---|
| 310 | |
---|
| 311 | CFLAGSP = -g -pg -O ${PIPE} ${LIBPOLYS_CFLAGS} |
---|
| 312 | CXXFLAGSP = -g -pg -O ${PIPE} ${LIBPOLYS_CFLAGS} |
---|
| 313 | DEFSP = |
---|
| 314 | |
---|
| 315 | |
---|
| 316 | |
---|
| 317 | |
---|
| 318 | ## |
---|
| 319 | ## Profiling Targets |
---|
| 320 | ## |
---|
| 321 | |
---|
| 322 | %.op: %.cc |
---|
| 323 | $(CXXP) ${CXXFLAGSP} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFSP} -c $< -o $@ |
---|
| 324 | |
---|
| 325 | $(OBJP2) : %.op: %.c |
---|
| 326 | $(CCP) ${CFLAGSP} ${CPPFLAGS} ${DEFSP} -c $< -o $@ |
---|
| 327 | |
---|
| 328 | libkernel_p.a: ${OBJP} ${OBJSP2} |
---|
| 329 | -rm -f libkernel_p.a |
---|
| 330 | ar cr $@ ${OBJP} |
---|
| 331 | |
---|
| 332 | ## |
---|
| 333 | ## dependencies |
---|
| 334 | ## |
---|
| 335 | |
---|
| 336 | %.dd: %.cc mod2.h |
---|
| 337 | echo $(@:.dd=.og) $(@:.dd=.op) " " \\ > $@ |
---|
| 338 | $(CXXM) -DGENTABLE ${CPPFLAGS} ${DEFSG} $< >> $@ |
---|
| 339 | |
---|
| 340 | %.d: %.c mod2.h |
---|
| 341 | echo $(@:.d=.og) $(@:.d=.op) " " \\ > $@ |
---|
| 342 | $(CCM) ${CPPFLAGS} ${DEFSG} $< >> $@ |
---|
| 343 | |
---|
| 344 | depend: $(CXXSOURCES:.cc=.dd) $(ESOURCES:.cc=.dd) $(CSOURCES:.c=.d) mod2.h |
---|
| 345 | cat *.d *.dd >depend |
---|
| 346 | |
---|
| 347 | ifeq (depend,$(wildcard depend)) |
---|
| 348 | include depend |
---|
| 349 | endif |
---|
| 350 | |
---|
| 351 | |
---|
| 352 | # My headers test |
---|
| 353 | # test: test.o |
---|
| 354 | |
---|
| 355 | test.o: test.cc mod2.h |
---|
| 356 | $(CXXG) ${CXXFLAGSG} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFSG} -c $< -o $@ |
---|