|
|
bb698ef |
--- makemakefile.py.orig 2018-10-04 03:54:49.000000000 -0600
|
|
|
bb698ef |
+++ makemakefile.py 2018-10-07 20:53:52.853013713 -0600
|
|
|
bb698ef |
@@ -147,213 +147,213 @@ cpp_libs = libs + " -L" + ntl_lib_dir +
|
|
|
bb698ef |
|
|
|
bb698ef |
import time
|
|
|
bb698ef |
|
|
|
bb698ef |
-print "#"
|
|
|
bb698ef |
-print "# Do not edit directly -- this file was auto-generated"
|
|
|
bb698ef |
-print "# by makemakefile.py on " + time.strftime("%a, %d %b %Y %H:%M:%S +0000",
|
|
|
bb698ef |
- time.gmtime())
|
|
|
bb698ef |
-print "#"
|
|
|
bb698ef |
-print "# (makemakefile.py patched for Sage, 04/2012)"
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
+print("#")
|
|
|
bb698ef |
+print("# Do not edit directly -- this file was auto-generated")
|
|
|
bb698ef |
+print("# by makemakefile.py on " + time.strftime("%a, %d %b %Y %H:%M:%S +0000",
|
|
|
bb698ef |
+ time.gmtime()))
|
|
|
bb698ef |
+print("#")
|
|
|
bb698ef |
+print("# (makemakefile.py patched for Sage, 04/2012)")
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "CC ?= gcc"
|
|
|
bb698ef |
-print "CPP ?= cpp"
|
|
|
bb698ef |
-print "CFLAGS = " + cflags
|
|
|
bb698ef |
-print "CPPFLAGS = " + cppflags
|
|
|
bb698ef |
-print "LDFLAGS = " + ldflags
|
|
|
bb698ef |
-print "INCLUDES = " + includes # These are options to the C preprocessor.
|
|
|
bb698ef |
-print "LIBS = " + libs # These are linker options passed to the compiler.
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "AR ?= ar"
|
|
|
bb698ef |
-print "RANLIB ?= ranlib"
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "SHARED_FLAG ?= -shared"
|
|
|
bb698ef |
-print "SONAME_FLAG ?= -soname" # '-h' for the Sun/Solaris linker
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("CC ?= gcc")
|
|
|
bb698ef |
+print("CPP ?= cpp")
|
|
|
bb698ef |
+print("CFLAGS = " + cflags)
|
|
|
bb698ef |
+print("CPPFLAGS = " + cppflags)
|
|
|
bb698ef |
+print("LDFLAGS = " + ldflags)
|
|
|
bb698ef |
+print("INCLUDES = " + includes) # These are options to the C preprocessor.
|
|
|
bb698ef |
+print("LIBS = " + libs) # These are linker options passed to the compiler.
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("AR ?= ar")
|
|
|
bb698ef |
+print("RANLIB ?= ranlib")
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("SHARED_FLAG ?= -shared")
|
|
|
bb698ef |
+print("SONAME_FLAG ?= -soname") # '-h' for the Sun/Solaris linker
|
|
|
bb698ef |
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "CXX ?= g++" # The C++ compiler.
|
|
|
bb698ef |
-print "CXXFLAGS = " + cxxflags # Options passed to the C++ compiler.
|
|
|
bb698ef |
-print "CPP_INCLUDES = " + cpp_includes
|
|
|
bb698ef |
-print "CPP_LIBS = " + cpp_libs
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("CXX ?= g++") # The C++ compiler.
|
|
|
bb698ef |
+print("CXXFLAGS = " + cxxflags) # Options passed to the C++ compiler.
|
|
|
bb698ef |
+print("CPP_INCLUDES = " + cpp_includes)
|
|
|
bb698ef |
+print("CPP_LIBS = " + cpp_libs)
|
|
|
bb698ef |
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "HEADERS = " + " ".join(install_headers + other_headers)
|
|
|
bb698ef |
-print "LIBOBJS = " + " ".join([x + ".o" for x in lib_modules])
|
|
|
bb698ef |
-print "TESTOBJS = " + " ".join([x + "-DEBUG.o" for x in
|
|
|
bb698ef |
- lib_modules + test_modules + testprof_modules])
|
|
|
bb698ef |
-print "PROFOBJS = " + " ".join([x + ".o" for x in
|
|
|
bb698ef |
- lib_modules + prof_modules + noncpp_prof_modules + testprof_modules])
|
|
|
bb698ef |
-print "CPP_PROFOBJS = " + " ".join([x + ".o" for x in
|
|
|
bb698ef |
- lib_modules + prof_modules + cpp_prof_modules + testprof_modules])
|
|
|
bb698ef |
-print "TUNEOBJS = " + " ".join([x + ".o" for x in
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("HEADERS = " + " ".join(install_headers + other_headers))
|
|
|
bb698ef |
+print("LIBOBJS = " + " ".join([x + ".o" for x in lib_modules]))
|
|
|
bb698ef |
+print("TESTOBJS = " + " ".join([x + "-DEBUG.o" for x in
|
|
|
bb698ef |
+ lib_modules + test_modules + testprof_modules]))
|
|
|
bb698ef |
+print("PROFOBJS = " + " ".join([x + ".o" for x in
|
|
|
bb698ef |
+ lib_modules + prof_modules + noncpp_prof_modules + testprof_modules]))
|
|
|
bb698ef |
+print("CPP_PROFOBJS = " + " ".join([x + ".o" for x in
|
|
|
bb698ef |
+ lib_modules + prof_modules + cpp_prof_modules + testprof_modules]))
|
|
|
bb698ef |
+print("TUNEOBJS = " + " ".join([x + ".o" for x in
|
|
|
bb698ef |
lib_modules + tune_modules + testprof_modules + prof_modules +
|
|
|
bb698ef |
- noncpp_prof_modules if x not in ("src/tuning", "profile/prof_main")])
|
|
|
bb698ef |
-print "ZN_POLY_TUNING = " + str(int(zn_poly_tuning))
|
|
|
bb698ef |
-print "ZN_POLY_VERSION = " + version
|
|
|
bb698ef |
-print "ZN_POLY_ABI_VERSION = " + abi_version
|
|
|
bb698ef |
+ noncpp_prof_modules if x not in ("src/tuning", "profile/prof_main")]))
|
|
|
bb698ef |
+print("ZN_POLY_TUNING = " + str(int(zn_poly_tuning)))
|
|
|
bb698ef |
+print("ZN_POLY_VERSION = " + version)
|
|
|
bb698ef |
+print("ZN_POLY_ABI_VERSION = " + abi_version)
|
|
|
bb698ef |
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "all: libzn_poly.a"
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "test: test/test"
|
|
|
bb698ef |
-print "tune: tune/tune"
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "check: test"
|
|
|
bb698ef |
-print "\ttest/test -quick all"
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "install:"
|
|
|
bb698ef |
-print "\tmkdir -p %s/include/zn_poly" % prefix
|
|
|
bb698ef |
-print "\tmkdir -p %s/lib" % prefix
|
|
|
bb698ef |
-print "\tcp libzn_poly.a %s/lib" % prefix
|
|
|
bb698ef |
-print "\tcp include/zn_poly.h %s/include/zn_poly" % prefix
|
|
|
bb698ef |
-print "\tcp include/wide_arith.h %s/include/zn_poly" % prefix
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "clean:"
|
|
|
bb698ef |
-print "\trm -f *.o"
|
|
|
bb698ef |
-print "\trm -f test/*.o"
|
|
|
bb698ef |
-print "\trm -f profile/*.o"
|
|
|
bb698ef |
-print "\trm -f tune/*.o"
|
|
|
bb698ef |
-print "\trm -f src/tuning.c"
|
|
|
bb698ef |
-print "\trm -f src/*.o"
|
|
|
bb698ef |
-print "\trm -f demo/bernoulli/*.o"
|
|
|
bb698ef |
-print "\trm -f libzn_poly.a"
|
|
|
bb698ef |
-print "\trm -f libzn_poly.dylib"
|
|
|
bb698ef |
-print "\trm -f libzn_poly*.so*"
|
|
|
bb698ef |
-print "\trm -f libzn_poly*.dll.a"
|
|
|
bb698ef |
-print "\trm -f cygzn_poly.dll"
|
|
|
bb698ef |
-print "\trm -f test/test"
|
|
|
bb698ef |
-print "\trm -f tune/tune"
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("all: libzn_poly.a")
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("test: test/test")
|
|
|
bb698ef |
+print("tune: tune/tune")
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("check: test")
|
|
|
bb698ef |
+print("\ttest/test -quick all")
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("install:")
|
|
|
bb698ef |
+print("\tmkdir -p %s/include/zn_poly" % prefix)
|
|
|
bb698ef |
+print("\tmkdir -p %s/lib" % prefix)
|
|
|
bb698ef |
+print("\tcp libzn_poly.a %s/lib" % prefix)
|
|
|
bb698ef |
+print("\tcp include/zn_poly.h %s/include/zn_poly" % prefix)
|
|
|
bb698ef |
+print("\tcp include/wide_arith.h %s/include/zn_poly" % prefix)
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("clean:")
|
|
|
bb698ef |
+print("\trm -f *.o")
|
|
|
bb698ef |
+print("\trm -f test/*.o")
|
|
|
bb698ef |
+print("\trm -f profile/*.o")
|
|
|
bb698ef |
+print("\trm -f tune/*.o")
|
|
|
bb698ef |
+print("\trm -f src/tuning.c")
|
|
|
bb698ef |
+print("\trm -f src/*.o")
|
|
|
bb698ef |
+print("\trm -f demo/bernoulli/*.o")
|
|
|
bb698ef |
+print("\trm -f libzn_poly.a")
|
|
|
bb698ef |
+print("\trm -f libzn_poly.dylib")
|
|
|
bb698ef |
+print("\trm -f libzn_poly*.so*")
|
|
|
bb698ef |
+print("\trm -f libzn_poly*.dll.a")
|
|
|
bb698ef |
+print("\trm -f cygzn_poly.dll")
|
|
|
bb698ef |
+print("\trm -f test/test")
|
|
|
bb698ef |
+print("\trm -f tune/tune")
|
|
|
bb698ef |
for x in prof_progs:
|
|
|
bb698ef |
- print "\trm -f " + x
|
|
|
bb698ef |
- print "\trm -f " + x + "-ntl"
|
|
|
bb698ef |
+ print("\trm -f " + x)
|
|
|
bb698ef |
+ print("\trm -f " + x + "-ntl")
|
|
|
bb698ef |
for x in demo_progs:
|
|
|
bb698ef |
- print "\trm -f " + x
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "distclean: clean"
|
|
|
bb698ef |
-print "\trm -f makefile"
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "dist: distclean"
|
|
|
bb698ef |
-print "\ttar --exclude-vcs --exclude=.gitignore -czf zn_poly-$(ZN_POLY_VERSION).tar.gz *"
|
|
|
bb698ef |
+ print("\trm -f " + x)
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("distclean: clean")
|
|
|
bb698ef |
+print("\trm -f makefile")
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("dist: distclean")
|
|
|
bb698ef |
+print("\ttar --exclude-vcs --exclude=.gitignore -czf zn_poly-$(ZN_POLY_VERSION).tar.gz *")
|
|
|
bb698ef |
|
|
|
bb698ef |
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "##### library targets"
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "ifeq ($(ZN_POLY_TUNING), 1)"
|
|
|
bb698ef |
-print "src/tuning.c: tune/tune"
|
|
|
bb698ef |
-print "\ttune/tune > src/tuning.c"
|
|
|
bb698ef |
-print "else"
|
|
|
bb698ef |
-print "src/tuning.c: tune/tuning.c"
|
|
|
bb698ef |
-print "\tcp tune/tuning.c src/tuning.c"
|
|
|
bb698ef |
-print "endif"
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "libzn_poly.a: $(LIBOBJS)"
|
|
|
bb698ef |
-print "\t$(AR) -r libzn_poly.a $(LIBOBJS)"
|
|
|
bb698ef |
-print "\t$(RANLIB) libzn_poly.a"
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "# TODO: Put '-single_module -fPIC -dynamiclib' into $(SHARED_FLAG)"
|
|
|
bb698ef |
-print "# and use that; also support $(SO_EXTENSION)..."
|
|
|
bb698ef |
-print "libzn_poly.dylib: $(LIBOBJS)"
|
|
|
bb698ef |
-print "\t$(CC) $(LDFLAGS) -single_module -fPIC -dynamiclib -o libzn_poly.dylib " \
|
|
|
bb698ef |
- "$(LIBOBJS) $(LIBS)"
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "# Left for compatibility with previous versions of Sage's 'spkg-install':"
|
|
|
bb698ef |
-print "libzn_poly.dylib64: $(LIBOBJS)"
|
|
|
bb698ef |
-print "\t$(CC) -m64 -single_module -fPIC -dynamiclib -o libzn_poly.dylib $(LIBOBJS) $(LIBS)"
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "cygzn_poly.dll: $(LIBOBJS)"
|
|
|
bb698ef |
-print "\t$(CC) $(SHARED_FLAG) $(LDFLAGS) " \
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("##### library targets")
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("ifeq ($(ZN_POLY_TUNING), 1)")
|
|
|
bb698ef |
+print("src/tuning.c: tune/tune")
|
|
|
bb698ef |
+print("\ttune/tune > src/tuning.c")
|
|
|
bb698ef |
+print("else")
|
|
|
bb698ef |
+print("src/tuning.c: tune/tuning.c")
|
|
|
bb698ef |
+print("\tcp tune/tuning.c src/tuning.c")
|
|
|
bb698ef |
+print("endif")
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("libzn_poly.a: $(LIBOBJS)")
|
|
|
bb698ef |
+print("\t$(AR) -r libzn_poly.a $(LIBOBJS)")
|
|
|
bb698ef |
+print("\t$(RANLIB) libzn_poly.a")
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("# TODO: Put '-single_module -fPIC -dynamiclib' into $(SHARED_FLAG)")
|
|
|
bb698ef |
+print("# and use that; also support $(SO_EXTENSION)...")
|
|
|
bb698ef |
+print("libzn_poly.dylib: $(LIBOBJS)")
|
|
|
bb698ef |
+print("\t$(CC) $(LDFLAGS) -single_module -fPIC -dynamiclib -o libzn_poly.dylib " \
|
|
|
bb698ef |
+ "$(LIBOBJS) $(LIBS)")
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("# Left for compatibility with previous versions of Sage's 'spkg-install':")
|
|
|
bb698ef |
+print("libzn_poly.dylib64: $(LIBOBJS)")
|
|
|
bb698ef |
+print("\t$(CC) -m64 -single_module -fPIC -dynamiclib -o libzn_poly.dylib $(LIBOBJS) $(LIBS)")
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("cygzn_poly.dll: $(LIBOBJS)")
|
|
|
bb698ef |
+print("\t$(CC) $(SHARED_FLAG) $(LDFLAGS) " \
|
|
|
bb698ef |
"-Wl,--out-implib,libzn_poly-$(ZN_POLY_VERSION).dll.a " \
|
|
|
bb698ef |
- "-o cygzn_poly.dll $(LIBOBJS) $(LIBS)"
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "libzn_poly-$(ZN_POLY_VERSION).dll.a: cygzn_poly.dll"
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "libzn_poly.dll.a: libzn_poly-$(ZN_POLY_VERSION).dll.a"
|
|
|
bb698ef |
-print "\tln -sf libzn_poly-$(ZN_POLY_VERSION).dll.a libzn_poly.dll.a"
|
|
|
bb698ef |
-print "\tln -sf libzn_poly-$(ZN_POLY_VERSION).dll.a libzn_poly-$(ZN_POLY_ABI_VERSION).dll.a"
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "libzn_poly.so: libzn_poly-$(ZN_POLY_VERSION).so"
|
|
|
bb698ef |
-print "\tln -sf libzn_poly-$(ZN_POLY_VERSION).so libzn_poly.so"
|
|
|
bb698ef |
-print "\tln -sf libzn_poly-$(ZN_POLY_VERSION).so libzn_poly-$(ZN_POLY_ABI_VERSION).so"
|
|
|
bb698ef |
+ "-o cygzn_poly.dll $(LIBOBJS) $(LIBS)")
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("libzn_poly-$(ZN_POLY_VERSION).dll.a: cygzn_poly.dll")
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("libzn_poly.dll.a: libzn_poly-$(ZN_POLY_VERSION).dll.a")
|
|
|
bb698ef |
+print("\tln -sf libzn_poly-$(ZN_POLY_VERSION).dll.a libzn_poly.dll.a")
|
|
|
bb698ef |
+print("\tln -sf libzn_poly-$(ZN_POLY_VERSION).dll.a libzn_poly-$(ZN_POLY_ABI_VERSION).dll.a")
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("libzn_poly.so: libzn_poly-$(ZN_POLY_VERSION).so")
|
|
|
bb698ef |
+print("\tln -sf libzn_poly-$(ZN_POLY_VERSION).so libzn_poly.so")
|
|
|
bb698ef |
+print("\tln -sf libzn_poly-$(ZN_POLY_VERSION).so libzn_poly-$(ZN_POLY_ABI_VERSION).so")
|
|
|
bb698ef |
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "libzn_poly-$(ZN_POLY_VERSION).so: $(LIBOBJS)"
|
|
|
bb698ef |
-print "\t$(CC) $(SHARED_FLAG) $(LDFLAGS) -Wl,-soname,libzn_poly-$(ZN_POLY_ABI_VERSION).so " \
|
|
|
bb698ef |
- "-o libzn_poly-$(ZN_POLY_VERSION).so $(LIBOBJS) $(LIBS)"
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("libzn_poly-$(ZN_POLY_VERSION).so: $(LIBOBJS)")
|
|
|
bb698ef |
+print("\t$(CC) $(SHARED_FLAG) $(LDFLAGS) -Wl,-soname,libzn_poly-$(ZN_POLY_ABI_VERSION).so " \
|
|
|
bb698ef |
+ "-o libzn_poly-$(ZN_POLY_VERSION).so $(LIBOBJS) $(LIBS)")
|
|
|
bb698ef |
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "##### test program"
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "test/test: $(TESTOBJS) $(HEADERS)"
|
|
|
bb698ef |
-print "\t$(CC) -g $(LDFLAGS) -o test/test $(TESTOBJS) $(LIBS)"
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("##### test program")
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("test/test: $(TESTOBJS) $(HEADERS)")
|
|
|
bb698ef |
+print("\t$(CC) -g $(LDFLAGS) -o test/test $(TESTOBJS) $(LIBS)")
|
|
|
bb698ef |
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "##### profiling programs"
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("##### profiling programs")
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
for x in prof_progs:
|
|
|
bb698ef |
- print "%s-main.o: %s-main.c $(HEADERS)" % (x, x)
|
|
|
bb698ef |
- print "\t$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -DNDEBUG -o %s-main.o -c %s-main.c" \
|
|
|
bb698ef |
- % (x, x)
|
|
|
bb698ef |
- print
|
|
|
bb698ef |
- print "%s: %s-main.o $(PROFOBJS)" % (x, x)
|
|
|
bb698ef |
- print "\t$(CC) $(CFLAGS) $(LDFLAGS) -o %s %s-main.o $(PROFOBJS) $(LIBS)" \
|
|
|
bb698ef |
- % (x, x)
|
|
|
bb698ef |
- print
|
|
|
bb698ef |
- print "%s-main-ntl.o: %s-main.c $(HEADERS)" % (x, x)
|
|
|
bb698ef |
- print "\t$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -DPROFILE_NTL -DNDEBUG " \
|
|
|
bb698ef |
- "-o %s-main-ntl.o -c %s-main.c" % (x, x)
|
|
|
bb698ef |
- print
|
|
|
bb698ef |
- print "%s-ntl: %s-main-ntl.o $(CPP_PROFOBJS)" % (x, x)
|
|
|
bb698ef |
- print "\t$(CXX) $(CXXFLAGS) $(LDFLAGS) -o %s-ntl %s-main-ntl.o " \
|
|
|
bb698ef |
- "$(CPP_PROFOBJS) $(CPP_LIBS)" % (x, x)
|
|
|
bb698ef |
- print
|
|
|
bb698ef |
+ print("%s-main.o: %s-main.c $(HEADERS)" % (x, x))
|
|
|
bb698ef |
+ print("\t$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -DNDEBUG -o %s-main.o -c %s-main.c" \
|
|
|
bb698ef |
+ % (x, x))
|
|
|
bb698ef |
+ print()
|
|
|
bb698ef |
+ print("%s: %s-main.o $(PROFOBJS)" % (x, x))
|
|
|
bb698ef |
+ print("\t$(CC) $(CFLAGS) $(LDFLAGS) -o %s %s-main.o $(PROFOBJS) $(LIBS)" \
|
|
|
bb698ef |
+ % (x, x))
|
|
|
bb698ef |
+ print()
|
|
|
bb698ef |
+ print("%s-main-ntl.o: %s-main.c $(HEADERS)" % (x, x))
|
|
|
bb698ef |
+ print("\t$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -DPROFILE_NTL -DNDEBUG " \
|
|
|
bb698ef |
+ "-o %s-main-ntl.o -c %s-main.c" % (x, x))
|
|
|
bb698ef |
+ print()
|
|
|
bb698ef |
+ print("%s-ntl: %s-main-ntl.o $(CPP_PROFOBJS)" % (x, x))
|
|
|
bb698ef |
+ print("\t$(CXX) $(CXXFLAGS) $(LDFLAGS) -o %s-ntl %s-main-ntl.o " \
|
|
|
bb698ef |
+ "$(CPP_PROFOBJS) $(CPP_LIBS)" % (x, x))
|
|
|
bb698ef |
+ print()
|
|
|
bb698ef |
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "##### tuning utility"
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "tune/tune: $(TUNEOBJS)"
|
|
|
bb698ef |
-print "\t$(CC) $(CFLAGS) $(LDFLAGS) -o tune/tune $(TUNEOBJS) $(LIBS)"
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("##### tuning utility")
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("tune/tune: $(TUNEOBJS)")
|
|
|
bb698ef |
+print("\t$(CC) $(CFLAGS) $(LDFLAGS) -o tune/tune $(TUNEOBJS) $(LIBS)")
|
|
|
bb698ef |
|
|
|
bb698ef |
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "##### demo programs"
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("##### demo programs")
|
|
|
bb698ef |
for x in demo_progs:
|
|
|
bb698ef |
- print
|
|
|
bb698ef |
- print "%s: %s.o $(LIBOBJS)" % (x, x)
|
|
|
bb698ef |
- print "\t$(CC) $(CFLAGS) $(LDFLAGS) -o %s %s.o $(LIBOBJS) $(LIBS)" % (x, x)
|
|
|
bb698ef |
+ print()
|
|
|
bb698ef |
+ print("%s: %s.o $(LIBOBJS)" % (x, x))
|
|
|
bb698ef |
+ print("\t$(CC) $(CFLAGS) $(LDFLAGS) -o %s %s.o $(LIBOBJS) $(LIBS)" % (x, x))
|
|
|
bb698ef |
|
|
|
bb698ef |
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "##### object files (with debug code)"
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("##### object files (with debug code)")
|
|
|
bb698ef |
for x in lib_modules + test_modules + testprof_modules + demo_progs:
|
|
|
bb698ef |
- print
|
|
|
bb698ef |
- print "%s-DEBUG.o: %s.c $(HEADERS)" % (x, x)
|
|
|
bb698ef |
- print "\t$(CC) -g $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -DDEBUG -o %s-DEBUG.o -c %s.c" \
|
|
|
bb698ef |
- % (x, x)
|
|
|
bb698ef |
+ print()
|
|
|
bb698ef |
+ print("%s-DEBUG.o: %s.c $(HEADERS)" % (x, x))
|
|
|
bb698ef |
+ print("\t$(CC) -g $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -DDEBUG -o %s-DEBUG.o -c %s.c" \
|
|
|
bb698ef |
+ % (x, x))
|
|
|
bb698ef |
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "##### object files (no debug code)"
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("##### object files (no debug code)")
|
|
|
bb698ef |
for x in lib_modules + prof_modules + testprof_modules + \
|
|
|
bb698ef |
tune_modules + demo_progs:
|
|
|
bb698ef |
- print
|
|
|
bb698ef |
- print "%s.o: %s.c $(HEADERS)" % (x, x)
|
|
|
bb698ef |
- print "\t$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -DNDEBUG -o %s.o -c %s.c" % (x, x)
|
|
|
bb698ef |
+ print()
|
|
|
bb698ef |
+ print("%s.o: %s.c $(HEADERS)" % (x, x))
|
|
|
bb698ef |
+ print("\t$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -DNDEBUG -o %s.o -c %s.c" % (x, x))
|
|
|
bb698ef |
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print
|
|
|
bb698ef |
-print "##### object files (C++, no debug code)"
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print()
|
|
|
bb698ef |
+print("##### object files (C++, no debug code)")
|
|
|
bb698ef |
for x in cpp_prof_modules:
|
|
|
bb698ef |
- print
|
|
|
bb698ef |
- print "%s.o: %s.c $(HEADERS)" % (x, x)
|
|
|
bb698ef |
- print "\t$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(CPP_INCLUDES) -DNDEBUG -o %s.o -c %s.c" \
|
|
|
bb698ef |
- % (x, x)
|
|
|
bb698ef |
+ print()
|
|
|
bb698ef |
+ print("%s.o: %s.c $(HEADERS)" % (x, x))
|
|
|
bb698ef |
+ print("\t$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(CPP_INCLUDES) -DNDEBUG -o %s.o -c %s.c" \
|
|
|
bb698ef |
+ % (x, x))
|
|
|
bb698ef |
|
|
|
bb698ef |
|
|
|
bb698ef |
### end of file
|