fccd4c1998-03-28Henrik Grubbström (Grubba) #
76b1071998-04-17Fredrik Hübinette (Hubbe) # $Id: Makefile.in,v 1.78 1998/04/18 06:28:50 hubbe Exp $
fccd4c1998-03-28Henrik Grubbström (Grubba) #
933d361996-04-29Fredrik Hübinette (Hubbe) # This line is needed on some machines. @SET_MAKE@ # Don't change this line. Define EXTRALIBS before this line if you # wish to add any libraries.
f3bce61996-06-21Fredrik Hübinette (Hubbe) LIBS=@LIBS@ $(EXTRALIBS)
933d361996-04-29Fredrik Hübinette (Hubbe) 
c1e9b11997-04-06Fredrik Hübinette (Hubbe) # This is normall the install program in the source directory
933d361996-04-29Fredrik Hübinette (Hubbe) INSTALL=@INSTALL@ SRCDIR=@srcdir@ VPATH=@srcdir@ # These are used while compiling
1a8e141997-02-27Fredrik Hübinette (Hubbe) LIBDIR_SRC = @LIBDIR@
933d361996-04-29Fredrik Hübinette (Hubbe) TMP_BINDIR = @BINDIR@ TMP_BUILDDIR = @BUILDDIR@ TMP_DOCDIR = @DOCDIR@
1a8e141997-02-27Fredrik Hübinette (Hubbe) TMP_LIBDIR = $(TMP_BUILDDIR)/lib
933d361996-04-29Fredrik Hübinette (Hubbe)  prefix = @prefix@ exec_prefix = $(prefix)/bin
06983f1996-09-22Fredrik Hübinette (Hubbe) lib_prefix = $(prefix)/lib/pike
fc33d21998-04-17Mirar (Pontus Hagland) share_prefix = @datadir@
933d361996-04-29Fredrik Hübinette (Hubbe)  #
1a8e141997-02-27Fredrik Hübinette (Hubbe) # use bison please, yacc isn't good enough.
933d361996-04-29Fredrik Hübinette (Hubbe) # YACC=@YACC@ YFLAGS=-d -v # If you don't have 'strchr', then add next flag to CFLAGS. # -Dstrchr=index -Dstrrchr=rindex # PROFIL= #PROFIL=-pg #
1a5be11997-11-03Henrik Grubbström (Grubba) # OS dependant flags # OSFLAGS= #
933d361996-04-29Fredrik Hübinette (Hubbe) #Enable warnings from the compiler, if wanted. # WARN=@WARN@ #add extra defines here
51bd9e1996-10-09Fredrik Hübinette (Hubbe) # Be sure to use -g when looking for bugs
af56471996-12-03Fredrik Hübinette (Hubbe) DEFINES=@CPPFLAGS@
933d361996-04-29Fredrik Hübinette (Hubbe)  # -O should work with all compilers OPTIMIZE=@OPTIMIZE@ # Preprocessor flags. PREFLAGS=-I. -I$(SRCDIR) $(DEFINES)
b3c73c1997-10-25Henrik Grubbström (Grubba) OTHERFLAGS=@CFLAGS@ @CPPFLAGS@ $(OSFLAGS) $(OPTIMIZE) $(WARN) $(PROFIL)
1909941997-11-04Henrik Grubbström (Grubba) NOOPTFLAGS=@CFLAGS@ @CPPFLAGS@ $(OSFLAGS) $(WARN) $(PROFIL)
933d361996-04-29Fredrik Hübinette (Hubbe) CFLAGS=$(PREFLAGS) $(OTHERFLAGS)
902adf1998-01-23Henrik Grubbström (Grubba) SMARTLINK=@SMARTLINK@ REALCC=@REALCC@
933d361996-04-29Fredrik Hübinette (Hubbe) CC=@CC@ CPP=@CPP@
1909941997-11-04Henrik Grubbström (Grubba) AR=@AR@
0809711998-02-27Marcus Comstedt LD=@LD@
740c7b1997-02-06Fredrik Hübinette (Hubbe) LDFLAGS=$(CFLAGS) @LDFLAGS@ @LINKFORSHARED@
933d361996-04-29Fredrik Hübinette (Hubbe) 
76b1071998-04-17Fredrik Hübinette (Hubbe) RUNPIKE=$(TMP_BUILDDIR)/pike -m$(TMP_BUILDDIR)/master.pike $(PIKEOPTS)
933d361996-04-29Fredrik Hübinette (Hubbe) 
1909941997-11-04Henrik Grubbström (Grubba) MOST_MAKE_FLAGS = "prefix=$(prefix)" "exec_prefix=$(exec_prefix)" "CC=$(CC)" "TMP_BINDIR=$(TMP_BINDIR)" "DEFINES=$(DEFINES)" "TMP_LIBDIR=$(TMP_LIBDIR)" "RUNPIKE=$(RUNPIKE)" "INSTALL=$(INSTALL)" "NOOPTFLAGS=$(NOOPTFLAGS)" "AR=$(AR)"
1a5be11997-11-03Henrik Grubbström (Grubba) MAKE_FLAGS = $(MOST_MAKE_FLAGS) "OTHERFLAGS=$(OTHERFLAGS)"
933d361996-04-29Fredrik Hübinette (Hubbe)  # Add alloca.o if you don't have alloca() on your machine. # Add ualarm.o if you don't have ualarm() on your machine. #
f3bce61996-06-21Fredrik Hübinette (Hubbe) OBJ= \
90c62d1997-01-26Fredrik Hübinette (Hubbe)  language.o \
06983f1996-09-22Fredrik Hübinette (Hubbe)  constants.o \
5740881998-01-01Fredrik Hübinette (Hubbe)  cpp.o \ fdlib.o \
fc33451997-10-02Fredrik Hübinette (Hubbe)  cyclic.o \
f3bce61996-06-21Fredrik Hübinette (Hubbe)  array.o \ backend.o \
06983f1996-09-22Fredrik Hübinette (Hubbe)  builtin_functions.o \
f3bce61996-06-21Fredrik Hübinette (Hubbe)  callback.o \
90c62d1997-01-26Fredrik Hübinette (Hubbe)  encode.o \
f3bce61996-06-21Fredrik Hübinette (Hubbe)  docode.o \ dynamic_buffer.o \
ca74dd1996-10-08Fredrik Hübinette (Hubbe)  dynamic_load.o \
f3bce61996-06-21Fredrik Hübinette (Hubbe)  error.o \ fd_control.o \ fsort.o \ gc.o \ hashtable.o \ las.o \ lex.o \
06983f1996-09-22Fredrik Hübinette (Hubbe)  multiset.o \ signal_handler.o \ pike_types.o \
f3bce61996-06-21Fredrik Hübinette (Hubbe)  main.o \ mapping.o \
9aa6fa1997-05-19Fredrik Hübinette (Hubbe)  pike_memory.o \
f3bce61996-06-21Fredrik Hübinette (Hubbe)  module.o \
dfa0b61997-01-21Fredrik Hübinette (Hubbe)  module_support.o \
f3bce61996-06-21Fredrik Hübinette (Hubbe)  object.o \ opcodes.o \ operators.o \ peep.o \ port.o \ program.o \ rusage.o \ stralloc.o \ stuff.o \
07513e1996-10-04Fredrik Hübinette (Hubbe)  threads.o \
6265aa1997-01-18Fredrik Hübinette (Hubbe)  version.o \
f3248c1996-08-03Fredrik Hübinette (Hubbe)  svalue.o @EXTRA_OBJS@
933d361996-04-29Fredrik Hübinette (Hubbe) # # User callable targets #
740c7b1997-02-06Fredrik Hübinette (Hubbe) 
fccd4c1998-03-28Henrik Grubbström (Grubba) all: module_objects hilfe
06983f1996-09-22Fredrik Hübinette (Hubbe)  $(MAKE) $(MAKE_FLAGS) pike
933d361996-04-29Fredrik Hübinette (Hubbe) 
1a5be11997-11-03Henrik Grubbström (Grubba) pike: $(OBJ) compile_interpret modules/linker_options
d0a5641997-10-15Henrik Grubbström (Grubba)  -@mv pike pike.old 2>/dev/null || true
1a5be11997-11-03Henrik Grubbström (Grubba)  $(LD) $(LDFLAGS) $(OBJ) interpret.o `cat modules/linker_options` $(LIBS) -o pike
933d361996-04-29Fredrik Hübinette (Hubbe)  # purify
1a5be11997-11-03Henrik Grubbström (Grubba) pure: $(OBJ) compile_interpret module_objects
d0a5641997-10-15Henrik Grubbström (Grubba)  -@mv pike pike.old 2>/dev/null || true
b57f161998-01-30Henrik Grubbström (Grubba)  $(SMARTLINK) purify -thread_stack_change=8192 -free-queue-length=500 -inuse-at-exit=yes -chain-length=12 $(REALCC) $(LDFLAGS) $(OBJ) interpret.o `cat modules/linker_options` $(LIBS) -o pike
933d361996-04-29Fredrik Hübinette (Hubbe)  # purecov
1a5be11997-11-03Henrik Grubbström (Grubba) cover: $(OBJ) compile_interpret module_objects
d0a5641997-10-15Henrik Grubbström (Grubba)  -@mv pike pike.old 2>/dev/null || true
b57f161998-01-30Henrik Grubbström (Grubba)  $(SMARTLINK) purecov purify -thread_stack_change=8192 -free-queue-length=500 -inuse-at-exit=yes -chain-length=12 $(REALCC) $(LDFLAGS) $(OBJ) interpret.o `cat modules/linker_options` $(LIBS) -o pike
933d361996-04-29Fredrik Hübinette (Hubbe)  # quantify
1a5be11997-11-03Henrik Grubbström (Grubba) quant: $(OBJ) compile_interpret module_objects
d0a5641997-10-15Henrik Grubbström (Grubba)  -@mv pike pike.old 2>/dev/null || true
902adf1998-01-23Henrik Grubbström (Grubba)  $(SMARTLINK) quantify $(REALCC) $(LDFLAGS) $(OBJ) interpret.o `cat modules/linker_options` $(LIBS) -o pike
1a5be11997-11-03Henrik Grubbström (Grubba) 
c6c7121998-04-08Fredrik Hübinette (Hubbe) atom: pike
5ff0ec1998-04-15Fredrik Hübinette (Hubbe)  atom pike -tool atom -env threads -g -v `find lib/modues -type f -name '*.so' -print | sed -e 's/^/-incobj /g'`
c6c7121998-04-08Fredrik Hübinette (Hubbe)  mv pike pike.pre-atom mv pike.third.threads pike @echo Make sure you have '.' in your LD_LIBRARY_PATH.
fccd4c1998-03-28Henrik Grubbström (Grubba) 
5ff0ec1998-04-15Fredrik Hübinette (Hubbe) pixie: pike atom pike -tool pixie -env threads -g -v `find lib/modues -type f -name '*.so' -print | sed -e 's/^/-incobj /g'` mv pike pike.pre-pixie mv pike.pixie.threads pixie @echo Make sure you have '.' in your LD_LIBRARY_PATH.
fccd4c1998-03-28Henrik Grubbström (Grubba) hilfe: $(TMP_BINDIR)/hilfe Makefile @echo "Creating ./hilfe..."; \ if [ "$(exec_prefix)" != "/usr/local/bin" -a \ "$(exec_prefix)" != "/usr/local/bin/" ]; then \ ( sed -e 's!/usr/local/bin!$(exec_prefix)!' <$(TMP_BINDIR)/hilfe \ >./hilfe && chmod 755 ./hilfe) || exit 1 ; \ else \
5ff0ec1998-04-15Fredrik Hübinette (Hubbe)  $(INSTALL) $(TMP_BINDIR)/hilfe `pwd` || exit 1; \
fccd4c1998-03-28Henrik Grubbström (Grubba)  fi @echo "Done."
1a5be11997-11-03Henrik Grubbström (Grubba) # Several optimizers have problems with interpret.c # First try compiling with optimization and if that doesn't work, without. compile_interpret : force
1909941997-11-04Henrik Grubbström (Grubba)  $(MAKE) $(MAKE_FLAGS) interpret.o || NO_ULIMIT=yes $(MAKE) $(MOST_MAKE_FLAGS) "OTHERFLAGS=$(NOOPTFLAGS)" interpret.o
1a5be11997-11-03Henrik Grubbström (Grubba)  force :
933d361996-04-29Fredrik Hübinette (Hubbe)  # install
76b1071998-04-17Fredrik Hübinette (Hubbe) install: pike hilfe
bc09891997-09-23Henrik Grubbström (Grubba)  @echo @echo Installing Pike... @echo
fd74241998-02-09Henrik Grubbström (Grubba)  @echo "Creating directories..."; \ for d in "$(prefix)" "$(exec_prefix)" "$(prefix)/lib" \
76b1071998-04-17Fredrik Hübinette (Hubbe)  "$(lib_prefix)" "$(share_prefix)" \
e33b091998-04-02Henrik Grubbström (Grubba)  "$(prefix)/include" "$(prefix)/include/pike"; do \
fd74241998-02-09Henrik Grubbström (Grubba)  if [ -d "$$d/." ]; then : ; else \ echo "$$d"; \ mkdir "$$d" || exit 1; \ chmod a+rx "$$d"; \ chmod u+w "$$d"; \ fi; \ done @for d in `cd "$(TMP_LIBDIR)"; find . -type d -print`; do \ if [ -d "$(lib_prefix)/$$d/." ]; then : ; else \ echo "$(lib_prefix)/$$d"; \ mkdir "$(lib_prefix)/$$d" || exit 1; \ chmod a+rx "$(lib_prefix)/$$d/."; \ chmod u+w "$(lib_prefix)/$$d/."; \ fi; \ done
e33b091998-04-02Henrik Grubbström (Grubba)  @for d in `cd "$(LIBDIR_SRC)"; find . -type d -print`; do \ if [ -d "$(share_prefix)/$$d/." ]; then : ; else \ echo "$(share_prefix)/$$d"; \ mkdir "$(share_prefix)/$$d" || exit 1; \ chmod a+rx "$(share_prefix)/$$d/."; \ chmod u+w "$(share_prefix)/$$d/."; \ fi; \ done
fd74241998-02-09Henrik Grubbström (Grubba)  @echo ; echo "Installing pike..."; \ if cmp "$(exec_prefix)/pike" ./pike >/dev/null 2>&1 ; then \ echo "This pike-binary is already installed." ; \ else \ if [ -f "$(exec_prefix)/pike" ]; then \ echo Renaming old "$(exec_prefix)/pike" to "$(exec_prefix)/pike.old"; \
fccd4c1998-03-28Henrik Grubbström (Grubba)  mv -f "$(exec_prefix)/pike" "$(exec_prefix)/pike.old" || exit 1; \
b02a7f1998-02-11Henrik Grubbström (Grubba)  else : ; fi ; \
fccd4c1998-03-28Henrik Grubbström (Grubba)  echo "$(exec_prefix)/pike"; \ $(INSTALL) ./pike $(exec_prefix) || exit 1; \ chmod a+rx $(exec_prefix)/pike; \ chmod u+w $(exec_prefix)/pike; \
fd74241998-02-09Henrik Grubbström (Grubba)  fi
fccd4c1998-03-28Henrik Grubbström (Grubba)  @if [ -f ./hilfe ]; then \ echo ; echo "Installing hilfe..."; \ if cmp "$(exec_prefix)/hilfe" $(TMP_BINDIR)/hilfe >/dev/null 2>&1 ; \
872adf1998-04-02Mirar (Pontus Hagland)  then \
fccd4c1998-03-28Henrik Grubbström (Grubba)  echo "$(exec_prefix)/hilfe already installed." ; \
872adf1998-04-02Mirar (Pontus Hagland)  else \
366c661997-05-07Henrik Grubbström (Grubba)  if [ -f $(exec_prefix)/hilfe ]; then \
fccd4c1998-03-28Henrik Grubbström (Grubba)  mv $(exec_prefix)/hilfe $(exec_prefix)/hilfe.old || exit 1; \ else : ; fi; \ echo "$(exec_prefix)/hilfe"; \
2043ba1998-02-10Fredrik Hübinette (Hubbe)  $(INSTALL) $(TMP_BINDIR)/hilfe $(exec_prefix) || exit 1; \
fccd4c1998-03-28Henrik Grubbström (Grubba)  chmod a+rx $(exec_prefix)/hilfe; \ chmod u+w $(exec_prefix)/hilfe; \
fd74241998-02-09Henrik Grubbström (Grubba)  fi; \
366c661997-05-07Henrik Grubbström (Grubba)  else : ; fi
fd74241998-02-09Henrik Grubbström (Grubba)  @echo ; echo "Installing header-files..."; \ for a in $(SRCDIR)/*.h *.h ; do \ $(INSTALL) $$a $(prefix)/include/pike || exit 1; \ chmod a+r $(prefix)/include/pike ; \ chmod u+w $(prefix)/include/pike ; \ done
e33b091998-04-02Henrik Grubbström (Grubba)  @echo ; echo "Installing modules written in Pike..."; \ for f in `cd "$(LIBDIR_SRC)"; find . -type f -print`; do \ if cmp "$(share_prefix)/$$f" "$(TMP_LIBDIR)/$$f" >/dev/null 2>&1 ; \ then : ; else \ echo "$(share_prefix)/$$f"; \ if [ -f "$(share_prefix)/$$f" ]; then \ mv -f "$(share_prefix)/$$f" "$(share_prefix)/$$f.old"; \ else : ; fi; \ if [ -f "$(lib_prefix)/$$f" ]; then \
613cea1998-04-17Mirar (Pontus Hagland)  if test "x$(lib_prefix)" != "x$(share_prefix)"; then \ mv -f "$(lib_prefix)/$$f" "$(lib_prefix)/$$f.now_in_share.old"; \ else : ; fi; \ else : ; fi; \
e33b091998-04-02Henrik Grubbström (Grubba)  cp "$(LIBDIR_SRC)/$$f" "$(share_prefix)/$$f" || exit 1; \ chmod a+r "$(share_prefix)/$$f"; \ chmod u+w "$(share_prefix)/$$f"; \ fi ; \ done @echo ; echo "Installing modules written in C..."; \
fd74241998-02-09Henrik Grubbström (Grubba)  for f in `cd "$(TMP_LIBDIR)"; find . -type f -print`; do \ if cmp "$(lib_prefix)/$$f" "$(TMP_LIBDIR)/$$f" >/dev/null 2>&1 ; \ then : ; else \ echo "$(lib_prefix)/$$f"; \ if [ -f "$(lib_prefix)/$$f" ]; then \ mv -f "$(lib_prefix)/$$f" "$(lib_prefix)/$$f.old"; \ else : ; fi; \ cp "$(TMP_LIBDIR)/$$f" "$(lib_prefix)/$$f" || exit 1; \ chmod a+r "$(lib_prefix)/$$f"; \ chmod u+w "$(lib_prefix)/$$f"; \ fi ; \ done
933d361996-04-29Fredrik Hübinette (Hubbe)  # tidy up a bit tidy:
b04d5f1996-07-08Fredrik Hübinette (Hubbe)  -rm -f *.o core y.output y.tab.c y.tab.h
06983f1996-09-22Fredrik Hübinette (Hubbe)  -rm -f $(TMP_BINDIR)/core *.o *.i *.i~ testsuite
933d361996-04-29Fredrik Hübinette (Hubbe)  # make clean clean: tidy
f3248c1996-08-03Fredrik Hübinette (Hubbe)  -( cd modules; ${MAKE} $(MAKE_FLAGS) clean )
933d361996-04-29Fredrik Hübinette (Hubbe)  -rm -f TAGS tags -rm -f yacc.acts yacc.debug yacc.tmp *.debug.log a.out # make _really_ clean spotless: clean rm -f Makefile machine.h find . -type f '(' -name '*~' -o -name '.*~' -o -name core -o -name '.nfs*' -name '#*#' ')' -print | xargs rm -f -rm -f lexical.c mon.out *.ln config.status
334e3d1997-04-16Fredrik Hübinette (Hubbe)  -rm -f $(TMP_BINDIR)/*~ $(TMP_BINDIR)/#*# -rm -f pike pike.old l.outa*
e5bb7d1996-09-23Fredrik Hübinette (Hubbe)  -rm -f modules/*/testsuite
334e3d1997-04-16Fredrik Hübinette (Hubbe)  -rm -rf lib
933d361996-04-29Fredrik Hübinette (Hubbe)  # create tags tags: ctags *.c TAGS: etags -t *.h *.c # verify / debug
115ae01996-09-25Fredrik Hübinette (Hubbe) verify_modules:
e5bb7d1996-09-23Fredrik Hübinette (Hubbe)  ( cd modules ; $(MAKE) $(MAKE_FLAGS) verify )
933d361996-04-29Fredrik Hübinette (Hubbe) 
8d3e031998-02-27Fredrik Hübinette (Hubbe) module_testsuites: ( cd modules ; $(MAKE) $(MAKE_FLAGS) testsuites )
76b1071998-04-17Fredrik Hübinette (Hubbe) verify: module_testsuites testsuite master.pike
8d3e031998-02-27Fredrik Hübinette (Hubbe)  $(RUNPIKE) $(TMP_BINDIR)/test_pike.pike modules/*/module_testsuite testsuite
115ae01996-09-25Fredrik Hübinette (Hubbe) 
af56471996-12-03Fredrik Hübinette (Hubbe) check: verify
b298e01997-04-16Fredrik Hübinette (Hubbe) sure: verify
933d361996-04-29Fredrik Hübinette (Hubbe) # verify / debug verbose
76b1071998-04-17Fredrik Hübinette (Hubbe) verbose_verify: module_testsuites testsuite master.pike
26f5e11998-03-02Fredrik Hübinette (Hubbe)  $(RUNPIKE) $(TMP_BINDIR)/test_pike.pike --verbose modules/*/module_testsuite testsuite
933d361996-04-29Fredrik Hübinette (Hubbe)  # verify & debug VERBOSE
76b1071998-04-17Fredrik Hübinette (Hubbe) gdb_verify: module_testsuites testsuite master.pike
80ef121997-03-17Fredrik Hübinette (Hubbe)  @echo >.gdbinit handle SIGFPE nostop noprint pass @echo >>.gdbinit handle SIGUSR1 nostop noprint pass
76b1071998-04-17Fredrik Hübinette (Hubbe)  @echo >>.gdbinit run -m$(TMP_BUILDDIR)/master.pike $(PIKEOPTS) $(TMP_BINDIR)/test_pike.pike testsuite -v -v -f modules/*/module_testsuite
06983f1996-09-22Fredrik Hübinette (Hubbe)  gdb ./pike
41a0f41996-06-09Fredrik Hübinette (Hubbe)  @rm .gdbinit
933d361996-04-29Fredrik Hübinette (Hubbe)  # run hilfe, for interactive testing run_hilfe:
06983f1996-09-22Fredrik Hübinette (Hubbe)  $(RUNPIKE) $(TMP_BINDIR)/hilfe
933d361996-04-29Fredrik Hübinette (Hubbe) 
b298e01997-04-16Fredrik Hübinette (Hubbe) feature_list: $(RUNPIKE) $(TMP_BINDIR)/feature_list
fccd4c1998-03-28Henrik Grubbström (Grubba) lib: $(LIBDIR_SRC)/master.pike.in Makefile @for d in lib lib/modules lib/include; do \ if [ -d $$d/. ]; then : ; else \ echo "Creating $$d/."; \ (mkdir $$d && chmod u+rwx $$d) || exit 1; \ fi ; \ done @if [ -d share/. ]; then : ; else \ echo "Creating symlink ./share"; \ if ls share >/dev/null 2>&1; then \ echo "Renaming share to share.old"; \ mv share share.old || exit 1; \ else : ; fi; \ ln -s "$(LIBDIR_SRC)" ./share || exit 1; \ fi @echo "Creating lib/master.pike"; \
76b1071998-04-17Fredrik Hübinette (Hubbe)  ( sed -e 's!¤lib_prefix¤!$(lib_prefix)!' <$(LIBDIR_SRC)/master.pike.in \ | sed -e 's!¤share_prefix¤!$(share_prefix)!' >./lib/master.pike && chmod 644 ./lib/master.pike) || exit 1
fccd4c1998-03-28Henrik Grubbström (Grubba)  @echo "Done." -@touch ./lib 2>/dev/null || (touch lib/.broken_gnu_touch && rm lib/.broken_gnu_touch)
1a8e141997-02-27Fredrik Hübinette (Hubbe) 
76b1071998-04-17Fredrik Hübinette (Hubbe)  master.pike: $(LIBDIR_SRC)/master.pike.in sed -e 's!¤lib_prefix¤!$(TMP_LIBDIR)!' <$(LIBDIR_SRC)/master.pike.in \ | sed -e 's!¤share_prefix¤!$(LIBDIR_SRC)!' >master.pike
06983f1996-09-22Fredrik Hübinette (Hubbe) # make export archive (requires compiled Pike)
933d361996-04-29Fredrik Hübinette (Hubbe) # Do not compile in source tree if you want to use this! # Beware that export archive this includes bison/yacc/byacc source # and thus has to follow the rules stated in that code.
06983f1996-09-22Fredrik Hübinette (Hubbe) export: new_peep_engine $(SRCDIR)/language.c $(SRCDIR)/language.h depend
933d361996-04-29Fredrik Hübinette (Hubbe)  chmod +x $(SRCDIR)/install-sh
3b8ba61998-04-09Fredrik Hübinette (Hubbe)  $(RUNPIKE) $(TMP_BINDIR)/export.pike Odbc Oracle _Crypto Postgres
f838321996-10-09Fredrik Hübinette (Hubbe)  full_export: new_peep_engine $(SRCDIR)/language.c $(SRCDIR)/language.h depend chmod +x $(SRCDIR)/install-sh
b42d191997-10-13Fredrik Hübinette (Hubbe)  $(RUNPIKE) $(TMP_BINDIR)/export.pike
933d361996-04-29Fredrik Hübinette (Hubbe) 
76b1071998-04-17Fredrik Hübinette (Hubbe) all_exports: full_export ( cd .. ; $(TMP_BINDIR)/makedists )
163a741997-12-04Fredrik Hübinette (Hubbe) bin_export: PATH=$(TMP_BINDIR)/fakes:$$PATH INSTALL_LOG=`pwd`/log make install INSTALL=install $(RUNPIKE) $(TMP_BINDIR)/parse_install_log <log $(SRCDIR) $(prefix)
933d361996-04-29Fredrik Hübinette (Hubbe) new_peep_engine:
06983f1996-09-22Fredrik Hübinette (Hubbe)  $(RUNPIKE) $(TMP_BINDIR)/mkpeep.pike $(SRCDIR)/peep.in >$(SRCDIR)/peep_engine.c
933d361996-04-29Fredrik Hübinette (Hubbe) 
97c0321997-01-28Fredrik Hübinette (Hubbe) $(SRCDIR)/peep_engine.c: $(SRCDIR)/peep.in
933d361996-04-29Fredrik Hübinette (Hubbe)  echo "" >$(SRCDIR)/peep_engine.c
06983f1996-09-22Fredrik Hübinette (Hubbe)  -$(RUNPIKE) $(TMP_BINDIR)/mkpeep.pike $(SRCDIR)/peep.in >$(SRCDIR)/peep_engine.c
933d361996-04-29Fredrik Hübinette (Hubbe) 
115ae01996-09-25Fredrik Hübinette (Hubbe) peep.o: $(SRCDIR)/peep_engine.c
d8632c1996-05-04Fredrik Hübinette (Hubbe) 
5625661997-04-15Fredrik Hübinette (Hubbe) # make dependencies
1dcea91997-04-22Fredrik Hübinette (Hubbe) depend: $(SRCDIR)/language.c
e5bb7d1996-09-23Fredrik Hübinette (Hubbe)  gcc -MM $(PREFLAGS) $(SRCDIR)/*.c | $(TMP_BINDIR)/fixdepends.sh $(SRCDIR)
f3bce61996-06-21Fredrik Hübinette (Hubbe)  ( cd modules ; $(MAKE) $(MAKE_FLAGS) depend )
a4f7de1998-01-13Fredrik Hübinette (Hubbe)  $(SRCDIR)/configure @ac_configure_args@
933d361996-04-29Fredrik Hübinette (Hubbe)  docs: mkdir docs html_docs: docs
06983f1996-09-22Fredrik Hübinette (Hubbe)  $(RUNPIKE) $(TMP_BINDIR)/htmlify_docs docs $(TMP_DOCDIR) `echo $(SRCDIR)/modules/*/doc`
61f4a11997-11-19Fredrik Hübinette (Hubbe)  lobotomize_crypto: ( cd $(SRCDIR)/modules/_Crypto ; ./.build_lobotomized_crypto ) ( cd $(SRCDIR)/modules/_Lobotomized_Crypto ; autoconf )
933d361996-04-29Fredrik Hübinette (Hubbe) #
06983f1996-09-22Fredrik Hübinette (Hubbe) # Pike internal targets
933d361996-04-29Fredrik Hübinette (Hubbe) #
76b1071998-04-17Fredrik Hübinette (Hubbe) module_objects: machine.h global.h modules/static_module_makefile modules/dynamic_module_makefile $(SRCDIR)/language.h lib master.pike
b66f021998-04-13Henrik Grubbström (Grubba)  @( cd modules ; rm remake >/dev/null 2>&1 || : ; \ ${MAKE} $(MAKE_FLAGS) || \ ( test -f remake && ${MAKE} $(MAKE_FLAGS) ) ) || exit $$?
933d361996-04-29Fredrik Hübinette (Hubbe) 
97c0321997-01-28Fredrik Hübinette (Hubbe) language.o: $(SRCDIR)/language.c $(SRCDIR)/object.h $(SRCDIR)/interpret.h $(SRCDIR)/program.h
933d361996-04-29Fredrik Hübinette (Hubbe) 
97c0321997-01-28Fredrik Hübinette (Hubbe) $(SRCDIR)/language.h: $(SRCDIR)/language.yacc
933d361996-04-29Fredrik Hübinette (Hubbe)  @echo "Expect 1 shift/reduce conflict."
74a2051996-10-02Per Hedbor  $(YACC) $(YFLAGS) $(SRCDIR)/language.yacc
933d361996-04-29Fredrik Hübinette (Hubbe)  mv y.tab.c $(SRCDIR)/language.c mv y.tab.h $(SRCDIR)/language.h
97c0321997-01-28Fredrik Hübinette (Hubbe) $(SRCDIR)/language.c: $(SRCDIR)/language.h
933d361996-04-29Fredrik Hübinette (Hubbe)  touch $(SRCDIR)/language.c
1dcea91997-04-22Fredrik Hübinette (Hubbe) # Internal testing target run_yacc: $(SRCDIR)/language.c
740c7b1997-02-06Fredrik Hübinette (Hubbe) modules/modlist.h: ( cd modules ; ${MAKE} $(MAKE_FLAGS) ) modules/modlist_headers.h: modules/modlist.h touch modules/modlist_headers.h
a9d05c1997-04-10Fredrik Hübinette (Hubbe) module.o: modules/modlist_headers.h modules/modlist.h
933d361996-04-29Fredrik Hübinette (Hubbe) 
97c0321997-01-28Fredrik Hübinette (Hubbe) $(SRCDIR)/configure: $(SRCDIR)/configure.in
933d361996-04-29Fredrik Hübinette (Hubbe)  cd $(SRCDIR) && autoconf
549f8b1996-05-02Fredrik Hübinette (Hubbe) config.status: $(SRCDIR)/configure
933d361996-04-29Fredrik Hübinette (Hubbe)  ./config.status --recheck
1909941997-11-04Henrik Grubbström (Grubba) modules/static_module_makefile: $(SRCDIR)/modules/static_module_makefile.in config.status CONFIG_FILES=modules/static_module_makefile CONFIG_HEADERS="" ./config.status modules/dynamic_module_makefile: $(SRCDIR)/@dmmsrc@ config.status CONFIG_FILES=modules/dynamic_module_makefile:@dmmsrc@ CONFIG_HEADERS="" ./config.status
6265aa1997-01-18Fredrik Hübinette (Hubbe) Makefile: $(SRCDIR)/Makefile.in $(SRCDIR)/dependencies config.status
5aea901997-10-13Henrik Grubbström (Grubba)  CONFIG_FILES=Makefile CONFIG_HEADERS="" ./config.status
549f8b1996-05-02Fredrik Hübinette (Hubbe)  @echo "Run make again" @exit 1
933d361996-04-29Fredrik Hübinette (Hubbe) 
97c0321997-01-28Fredrik Hübinette (Hubbe) $(SRCDIR)/machine.h.in: $(SRCDIR)/stamp-h.in $(SRCDIR)/stamp-h.in: $(SRCDIR)/configure.in $(SRCDIR)/acconfig.h
0d36f01997-01-28Fredrik Hübinette (Hubbe)  cd $(SRCDIR) && autoheader echo foo > $(SRCDIR)/stamp-h.in
933d361996-04-29Fredrik Hübinette (Hubbe) machine.h: stamp-h
97c0321997-01-28Fredrik Hübinette (Hubbe) stamp-h: $(SRCDIR)/machine.h.in config.status
5aea901997-10-13Henrik Grubbström (Grubba)  CONFIG_FILES="" CONFIG_HEADERS=machine.h ./config.status
933d361996-04-29Fredrik Hübinette (Hubbe) 
e5bb7d1996-09-23Fredrik Hübinette (Hubbe) testsuite: $(SRCDIR)/testsuite.in
086bfa1998-04-09Fredrik Hübinette (Hubbe)  $(TMP_BINDIR)/mktestsuite $(SRCDIR)/testsuite.in >testsuite -DSRCDIR="$(SRCDIR)"
933d361996-04-29Fredrik Hübinette (Hubbe) 
6265aa1997-01-18Fredrik Hübinette (Hubbe) @dependencies@