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.65 1998/03/28 13:39:52 grubba Exp $
+
#
+
# 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. LIBS=@LIBS@ $(EXTRALIBS) # This is normall the install program in the source directory INSTALL=@INSTALL@
pike.git/src/Makefile.in:60:
SMARTLINK=@SMARTLINK@ REALCC=@REALCC@ CC=@CC@ CPP=@CPP@ AR=@AR@ LD=@LD@ LDFLAGS=$(CFLAGS) @LDFLAGS@ @LINKFORSHARED@
-
RUNPIKE=$(TMP_BUILDDIR)/pike -m $(TMP_LIBDIR)/master.pike $(PIKEOPTS)
+
RUNPIKE=$(TMP_BUILDDIR)/pike -m $(TMP_LIBDIR)/master.pike
-M$(LIBDIR_SRC)/modules -I$(LIBDIR_SRC)/include
$(PIKEOPTS)
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)" MAKE_FLAGS = $(MOST_MAKE_FLAGS) "OTHERFLAGS=$(OTHERFLAGS)" # Add alloca.o if you don't have alloca() on your machine. # Add ualarm.o if you don't have ualarm() on your machine. # OBJ= \ language.o \ constants.o \
pike.git/src/Makefile.in:115:
stuff.o \ threads.o \ version.o \ svalue.o @EXTRA_OBJS@ # # User callable targets #
-
all: module_objects
+
all: module_objects
hilfe
$(MAKE) $(MAKE_FLAGS) pike pike: $(OBJ) compile_interpret modules/linker_options -@mv pike pike.old 2>/dev/null || true $(LD) $(LDFLAGS) $(OBJ) interpret.o `cat modules/linker_options` $(LIBS) -o pike # purify pure: $(OBJ) compile_interpret module_objects -@mv pike pike.old 2>/dev/null || true $(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
pike.git/src/Makefile.in:137:
# purecov cover: $(OBJ) compile_interpret module_objects -@mv pike pike.old 2>/dev/null || true $(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 # quantify quant: $(OBJ) compile_interpret module_objects -@mv pike pike.old 2>/dev/null || true $(SMARTLINK) quantify $(REALCC) $(LDFLAGS) $(OBJ) interpret.o `cat modules/linker_options` $(LIBS) -o pike
+
+
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 \
+
$(INSTALL) $(TMP_BINDIR)/hilfe . || exit 1; \
+
fi
+
@echo "Done."
+
+
# Several optimizers have problems with interpret.c # First try compiling with optimization and if that doesn't work, without. compile_interpret : force $(MAKE) $(MAKE_FLAGS) interpret.o || NO_ULIMIT=yes $(MAKE) $(MOST_MAKE_FLAGS) "OTHERFLAGS=$(NOOPTFLAGS)" interpret.o force : # install install: @echo
pike.git/src/Makefile.in:174:
chmod a+rx "$(lib_prefix)/$$d/."; \ chmod u+w "$(lib_prefix)/$$d/."; \ fi; \ done @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"; \
-
mv -f "$(exec_prefix)/pike" "$(exec_prefix)/pike.old"; \
+
mv -f "$(exec_prefix)/pike" "$(exec_prefix)/pike.old"
|| exit 1
; \
else : ; fi ; \
-
echo "$(exec_prefix)/pike"; $(INSTALL) ./pike $(exec_prefix) ; \
+
echo "$(exec_prefix)/pike";
\
+
$(INSTALL) ./pike $(exec_prefix)
|| exit 1
; \
+
chmod a+rx $(exec_prefix)/pike; \
+
chmod u+w $(exec_prefix)/pike; \
fi
-
@if [ -f
$(SRCDIR)/
.
.
/
bin/
hilfe ]; then \
-
echo ; echo "Installing
$(exec_prefix)/
hilfe..."; \
-
if
[
"$(exec_prefix)"
!=
"
/
usr
/
local/bin"
-a
\
-
"$(exec_prefix)
"
!=
"
/usr/local/bin/"
]
;
then
\
+
@if [ -f ./hilfe ]; then \
+
echo ; echo "Installing hilfe..."; \
+
if
cmp
"$(exec_prefix)
/hilfe
"
$(TMP_BINDIR)/hilfe
>
/
dev
/
null
2>&1
;
\
+
then
+
echo
"$(exec_prefix)
/hilfe
already
installed.
" ;
\
+
else
if [ -f $(exec_prefix)/hilfe ]; then \
-
mv $(exec_prefix)/hilfe $(exec_prefix)/hilfe.old; \
-
else : ; fi
&&
\
-
(
sed -e 's!/usr/local/bin!
$(exec_prefix)
!' <$(TMP_BINDIR)
/hilfe \
-
>./hilfe && chmod 755 ./hilfe && $(INSTALL) ./hilfe $(exec_prefix) ) || exit 1\
-
else \
+
mv $(exec_prefix)/hilfe $(exec_prefix)/hilfe.old
|| exit 1
; \
+
else : ; fi
;
\
+
echo
"
$(exec_prefix)/hilfe
";
\
$(INSTALL) $(TMP_BINDIR)/hilfe $(exec_prefix) || exit 1; \
-
fi; \
+
chmod a+rx $(exec_prefix)/hilfe; \ chmod u+w $(exec_prefix)/hilfe; \
-
+
fi; \
else : ; fi @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 @echo ; echo "Installing modules..."; \ for f in `cd "$(TMP_LIBDIR)"; find . -type f -print`; do \ if cmp "$(lib_prefix)/$$f" "$(TMP_LIBDIR)/$$f" >/dev/null 2>&1 ; \
pike.git/src/Makefile.in:280:
gdb ./pike @rm .gdbinit # run hilfe, for interactive testing run_hilfe: $(RUNPIKE) $(TMP_BINDIR)/hilfe feature_list: $(RUNPIKE) $(TMP_BINDIR)/feature_list
-
lib: $(LIBDIR_SRC)
$(LIBDIR_SRC)
/master.pike
$(LIBDIR_SRC)
/modules
$(LIBDIR_SRC)
/include
-
cp
-
r
$
(
LIBDIR_SRC
)
.
-
-cvs_dirs="`find
lib
-type
d
-
name
CVS`
"; if
test
"
x$$cvs_dirs"
=
"
x"
;
then
: ;
else
rm
-
r
$$cvs
_
dirs
;
fi
-
-for
f
in
`find
lib
-type
f
-
name
'
*~
'
`
`find
lib
-type
f
-name
'
.
#*'`
`find
lib
-type
f
-name
'#*#'`;
do
rm
$$f;
done
-
-
touch
./lib 2>/dev/null || (touch lib/.broken_gnu_touch && rm lib/.broken_gnu_touch)
+
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";
\
+
( sed
-
e
'
s!¤exec_prefix¤!$(exec_prefix)!
'
<$(LIBDIR_SRC)/master.pike.in
\
+
>
.
/lib/master.pike
&&
chmod 644 ./
lib
/master.pike)
||
exit
1
+
@echo "Done."
+
-
@touch
./lib 2>/dev/null || (touch lib/.broken_gnu_touch && rm lib/.broken_gnu_touch)
# make export archive (requires compiled Pike) # 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. export: new_peep_engine $(SRCDIR)/language.c $(SRCDIR)/language.h depend chmod +x $(SRCDIR)/install-sh $(RUNPIKE) $(TMP_BINDIR)/export.pike Odbc Oracle _Crypto full_export: new_peep_engine $(SRCDIR)/language.c $(SRCDIR)/language.h depend