pike.git
/
src
/
Makefile.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/Makefile.in:1:
#
-
# $Id: Makefile.in,v 1.
414
2006/
01
/
05
01
:
05
:
06
marcus
Exp $
+
# $Id: Makefile.in,v 1.
415
2006/
02
/
27
12
:
33
:
55
mast
Exp $
# # This line is needed on some machines. @SET_MAKE@ # Pike embed target, either libpike.so or libpike.a. PIKE_LIB=@PIKE_LIB@ # Don't change this line. Define EXTRALIBS before this line if you # wish to add any libraries.
pike.git/src/Makefile.in:107:
LIGHT=@LIGHT@ -nologo FALLBACK_CC=@FALLBACK_CC@ AR=@AR@ LD=@LD@ LDFLAGS=@LDFLAGS@ @LINKFORSHARED@ $(EXTRALDFLAGS) LDSHARED=@LDSHARED@
-
DEFAULT_RUNPIKE=$(TMP_BUILDDIR)/
pike
-DNOT_INSTALLED -DPRECOMPILED_SEARCH_MORE -m$(TMP_BUILDDIR)/master.pike $(PIKEOPTS)
+
DEFAULT_RUNPIKE=$(TMP_BUILDDIR)/
tpike
-DNOT_INSTALLED -DPRECOMPILED_SEARCH_MORE -m$(TMP_BUILDDIR)/master.pike $(PIKEOPTS)
USE_PIKE=pike $(PIKEOPTS) RUNPIKE=$(@RUNPIKE@) PIKE_MODULE_RELOC=@PIKE_MODULE_RELOC@ # Set to an appropriate invocation of valgrind (or similar) VALGRIND=@VALGRIND@ VALGRINDARGS=@VALGRINDARGS@ MAKE_FLAGS= # Add alloca.o if you don't have alloca() on your machine. #
-
OBJ= \
+
CORE_
OBJ= \
language.o \ security.o \ bignum.o \ pike_cpulib.o \ interpret.o \ constants.o \ cpp.o \ fdlib.o \ cyclic.o \ array.o \
pike.git/src/Makefile.in:172:
threads.o \ version.o \ queue.o \ builtin.o \ iterators.o \ facetgroup.o \ svalue.o \ las.o \ builtin_functions.o \ peep.o \
-
module.o
@DLOPEN_O@ @EXTRA_OBJS@
+
@DLOPEN_O@ @EXTRA_OBJS@
+
OBJ=$(CORE_OBJ) module.o
MODULE_REQUIREMENTS= \ machine.h \ global.h \ precompile.sh-stamp \ modules/static_module_makefile \ modules/dynamic_module_makefile \ $(SRCDIR)/language.h \ $(SRCDIR)/interpret_protos.h \ lib @EXTRA_MODULE_REQUIREMENTS@
pike.git/src/Makefile.in:199:
$(SRCDIR)/peep_engine.c \ $(SRCDIR)/case_info.h \ $(SRCDIR)/treeopt.h @PMOD_TARGETS@ # # User callable targets # # Update the dumped modules, but only if dump_modules has been used earlier.
-
#
-
# Since post_modules might be static, we must remake pike after them
-
# to make sure they are linked in.
-
all: module_objects tools
+
all:
post_module_objects tools
if [ -f dumpversion ]; then $(MAKE) $(MAKE_FLAGS) dump_modules; else :; fi
-
$(MAKE) $(MAKE_FLAGS) $(MAKE_PARALLEL) post_module_objects
+
$(MAKE) $(MAKE_FLAGS) $(MAKE_PARALLEL) pike @if [ "`find . -name '*.fail' -print`" = "" ]; then :; else \ echo; \ echo "Pike compiled and linked ok, but the following file(s) "; \ echo "failed to compile with full optimization.";\ echo "This may affect performance negatively."; \ find . -name '*.fail' -print | sed -e 's/\.fail$$//' -e 's/^/ /'; \ echo; \ fi doc: documentation documentation: onepage.xml traditional.xml modref.xml cd $(DOCDIR) && $(MAKE) $(MAKE_FLAGS) PIKE="$(RUNPIKE)" \ BUILDDIR="$(TMP_BUILDDIR)" $(DOCTARGET) # Backward compat. post_modules: post_module_objects
-
post_module_objects:
pike
+
post_module_objects:
tpike
@( cd post_modules ; rm remake >/dev/null 2>&1 || : ; \ $(MAKE) $(MAKE_PARALLEL) $(MAKE_FLAGS) || \ ( test -f remake && $(MAKE) $(MAKE_PARALLEL) $(MAKE_FLAGS) ) ) || exit $$? post_modules/modlist_headers.h: @test -f post_modules/modlist_headers.h || touch post_modules/modlist_headers.h post_modules/modlist.h: @test -f post_modules/modlist.h || touch post_modules/modlist.h
pike.git/src/Makefile.in:278:
exit 1; \ fi # FIXME: Static linked version; this doesn't work yet! # Since we need to split linker_options into archives and options. libpike.a: $(OBJ) modules/linker_options post_modules/linker_options -rm -f libpike.a $(AR) cq libpike.a $(OBJ) -@RANLIB@ libpike.a
+
# tpike is a pike with no post modules compiled in. It's used during
+
# building of the post modules.
+
tpike: main.o $(CORE_OBJ) tmodule.o master-stamp pike.syms modules/linker_options
+
$(LD) $(LDFLAGS) main.o $(CORE_OBJ) tmodule.o \
+
`cat modules/linker_options` \
+
$(LIBS) -o tpike
+
#pike: main.o @DLOPEN_O@ $(PIKE_LIB) master-stamp pike.syms pike: main.o $(OBJ) master-stamp pike.syms modules/linker_options post_modules/linker_options -@if [ -f pike.old.exe ] ; then rm -f pike.old.exe || : ; else : ; fi -@if [ -f pike.old ] ; then rm -f pike.old || : ; else : ; fi -@if [ -f pike.exe ] ; then mv pike.exe pike.old.exe || : ; else : ; fi -@if [ -f pike ] ; then mv pike pike.old || : ; else : ; fi # $(LD) $(LDFLAGS) main.o @DLOPEN_O@ -o pike $(LD) $(LDFLAGS) main.o $(OBJ) \ `cat modules/linker_options post_modules/linker_options` \ $(LIBS) -o pike
pike.git/src/Makefile.in:549:
-rm -f *.fail *.o *.obj *.pp *.protos core y.output y.tab.c y.tab.h -rm -f $(TMP_BINDIR)/core *.o *.i *.i~ dynloadtest* -rm testsuite testsuite.tmp testsuite_test.pike testsuite_test_dir.pmod -find lib -type f -name \*.o | xargs rm -f # make clean clean_here: tidy doc_clean -( cd tlib; find . -name testsuite | xargs rm ) -( cd extra_tests; find . -name testsuite | xargs rm ) -rm -f confdefs.h conftest.*
-
-rm -rf test-install test-pike
+
-rm -rf test-install test-pike
tpike
-rm -f TAGS tags yacc.acts yacc.debug yacc.tmp *.debug.log a.out pike.tmp -rm -f hilfe rsif master.pike compiler-warnings dumpmodule.log -rm -f interpreter_debug.h lexer?.h -rm -f import-stamp modules-stamp master-stamp -rm -rf lib/modules/* # -rm -f lib/master.pike clean: clean_here -( cd modules; $(MAKE) $(MAKE_FLAGS) clean ) -( cd post_modules; $(MAKE) $(MAKE_FLAGS) clean )
pike.git/src/Makefile.in:1013:
@touch modules-stamp modules/modlist.h: modules-stamp modules/modlist_headers.h: modules-stamp modules/linker_options: modules-stamp module.o: modules/modlist_headers.h modules/modlist.h
+
tmodule.o: modules/modlist_headers.h modules/modlist.h
+
$(SRCDIR)/interpret_protos.h_src: $(SRCDIR)/interpret_functions.h $(SRCDIR)/strip_opcodes $(CPP) $(PREFLAGS) -DGEN_PROTOS $(SRCDIR)/interpret_functions.h | $(SRCDIR)/strip_opcodes >$(SRCDIR)/interpret_protos.h_src || { rm $(SRCDIR)/interpret_protos.h_src; exit 1; } lex.o: $(SRCDIR)/lex.c $(SRCDIR)/interpret_protos.h interpret.o: $(SRCDIR)/lex.c $(SRCDIR)/interpret_protos.h lex_t.o: $(SRCDIR)/lex_t.c $(SRCDIR)/interpret_protos.h language.o: $(SRCDIR)/language.c $(SRCDIR)/object.h $(SRCDIR)/interpret.h $(SRCDIR)/program.h