pike.git
/
src
/
Makefile.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/Makefile.in:5:
# wish to add any libraries. LIBS=@LIBS@ $(EXTRALIBS) # not used yet INSTALL=@INSTALL@ SRCDIR=@srcdir@ VPATH=@srcdir@ # These are used while compiling
-
TMP_LIBDIR =
@srcdir@/../lib
-
TMP_BINDIR =
@srcdir@/../bin
+
TMP_LIBDIR =
@LIBDIR@
+
TMP_BINDIR =
@BINDIR@
+
TMP_BUILDDIR = @BUILDDIR@
prefix = @prefix@ exec_prefix = $(prefix)/bin lib_prefix = $(prefix)/lib/ulpc # # use bison please, yacc doesn't always work good enough. # YACC=@YACC@ YFLAGS=-d -v
pike.git/src/Makefile.in:49:
PREFLAGS=-I. -I$(SRCDIR) $(DEFINES) OTHERFLAGS=$(OSFLAGS) $(OPTIMIZE) $(WARN) $(PROFIL) CFLAGS=$(PREFLAGS) $(OTHERFLAGS) CC=@CC@ CPP=@CPP@ LD=$(CC) LDFLAGS=$(CFLAGS)
-
MAKE_FLAGS
=
"prefix=
$(
prefix
)
"
"exex_prefix=
$(
exex
_
prefix
)
" "CC
=$(
CC
)
"
"OTHERFLAGS=
$(
OTHERFLAGS
)
"
+
RUNULPC
=$(
TMP_BUILDDIR
)
/ulpc
-m
$(
TMP
_
LIBDIR
)
/master.lpc
+
FIXDEP
=$(
RUNULPC
) $(
TMP_BINDIR
)
/fixdepends.lpc
-
+
MAKE_FLAGS = "prefix=$(prefix)" "exex_prefix=$(exex_prefix)" "CC=$(CC)" "OTHERFLAGS=$(OTHERFLAGS)" "FIXDEP=$(FIXDEP)"
+
# 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 add_efun.o array.o builtin_efuns.o backend.o \ call_out.o docode.o dynamic_buffer.o error.o fd_control.o \ fsort.o hashtable.o interpret.o lex.o las.o list.o \ lpc_types.o main.o mapping.o memory.o module.o object.o \ opcodes.o operators.o port.o program.o rusage.o stralloc.o \
-
stuff.o svalue.o debug.o callback.o lpc_signal.o
+
stuff.o svalue.o debug.o callback.o lpc_signal.o
@EXTRA_OBJS@
# MODULES=@subdirs@ MODULE_OBJS=@MODULE_OBJS@
-
+
#
+
# User callable targets
+
#
+
all: ulpc
-
module_objects
:
-
for a in
$(
MODULES
)
;
do
(
cd
$$a
;
${MAKE}
$(MAKE_FLAGS)
) ; done
+
optimum
:
+
$(
MAKE
)
all
OTHERFLAGS="-pipe
-g
-W
-Wunused
-Wformat
-O4711
-funroll-loops
-mv8"
ulpc: $(OBJ) module_objects -mv ulpc ulpc.old $(LD) $(LDFLAGS) $(OBJ) $(MODULE_OBJS) -o ulpc $(LIBS)
-
+
+
# purify
pure: $(OBJ) module_objects -mv ulpc ulpc.old purify -free-queue-length=500 -inuse-at-exit=yes -chain-length=12 $(LD) $(LDFLAGS) $(OBJ) $(MODULE_OBJS) -o ulpc $(LIBS)
-
+
# purecov
cover: $(OBJ) module_objects -mv ulpc ulpc.old purecov purify -free-queue-length=500 -inuse-at-exit=yes -chain-length=12 $(LD) $(LDFLAGS) $(OBJ) $(MODULE_OBJS) -o ulpc $(LIBS)
-
+
# quantify
quant: $(OBJ) module_objects -mv ulpc ulpc.old quantify $(LD) $(LDFLAGS) $(OBJ) $(MODULE_OBJS) -o ulpc $(LIBS)
-
+
# install
install: if [ ! -d "$(prefix)" ]; then mkdir "$(prefix)" ; chmod 755 "$(prefix)" ; fi if [ ! -d "$(exec_prefix)" ]; then mkdir "$(exec_prefix)" ; chmod 755 "$(exec_prefix)" ; fi $(INSTALL) ./ulpc $(exec_prefix) if [ ! -d "$(prefix)/lib" ]; then mkdir "$(prefix)/lib" ; chmod 755 "$(prefix)/lib" ; fi if [ ! -d "$(lib_prefix)" ]; then mkdir "$(lib_prefix)" ; chmod 755 "$(lib_prefix)" ; fi $(INSTALL) $(TMP_LIBDIR)/master.lpc $(lib_prefix) $(INSTALL) $(TMP_LIBDIR)/simulate.lpc $(lib_prefix)
-
-
spinner-install:
-
cp ulpc $(SRCDIR)/../../server/bin/
-
-
lint: *.c
-
lint *.c
-
-
lang.o: lang.c config.h object.h interpret.h program.h
-
-
language.h: language.y
-
@echo "Expect 1 shift/reduce conflict."
-
$(YACC) $(YFLAGS) $(SRCDIR)/language.y
-
mv y.tab.c language.c
-
mv y.tab.h language.h
-
-
language.c: language.h
-
touch language.c
-
-
module.c: modlist.h
-
+
#
tidy
up
a
bit
tidy: -rm -f *.o core $(MUD_LIB)/core y.output y.tab.c y.tab.h -rm -f $(TMP_BINDIR)/core *.o *.i *.i~
-
+
# make clean
clean: tidy -for a in $(MODULES) ; do ( cd $$a ; ${MAKE} $(MAKE_FLAGS) clean ) ; done -for a in $(MODULES) ; do rm -f $$a/*.o ; done -rm -f language.h language.c 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 -rm -f $(TMP_BINDIR)/driver $(TMP_BINDIR)/*~ $(TMP_BINDIR)/#*# -rm -f .pure driver* l.outa*
-
+
# create tags
tags: ctags *.c TAGS: etags -t *.h *.c
-
Makefile:
Makefile.in
-
.
/
config.status
-
-
machine.h:
stamp-h
-
-
stamp-h: machine.h.in
-
./config.status
-
-
modlist.h:
-
./config.status
-
-
$(TMP_LIBDIR)/testsuite.lpc: $(TMP_BINDIR)/create_testsuite
-
$(TMP_BINDIR)/create_testsuite >$(TMP_LIBDIR)/testsuite.lpc
-
+
#
verify
/
debug
verify: $(TMP_LIBDIR)/testsuite.lpc
-
./ulpc -m
$(
TMP_LIBDIR
)
/master.lpc
$(TMP_LIBDIR)/testsuite.lpc
+
$(
RUNULPC
) $(TMP_LIBDIR)/testsuite.lpc
-
+
# verify / debug verbose
verbose_verify: $(TMP_LIBDIR)/testsuite.lpc
-
./ulpc -m
$(
TMP_LIBDIR
)
/master.lpc
$(TMP_LIBDIR)/testsuite.lpc --verbose
+
$(
RUNULPC
) $(TMP_LIBDIR)/testsuite.lpc --verbose
-
+
# verify & debug VERBOSE
gdb_verify: $(TMP_LIBDIR)/testsuite.lpc echo >.gdbinit handle SIGUSR1 nostop noprint pass echo >>.gdbinit run -m $(TMP_LIBDIR)/master.lpc $(TMP_LIBDIR)/testsuite.lpc -v -v -f gdb ./ulpc
-
+
# run hilfe, for interactive testing
run_hilfe:
-
./ulpc -m
$(
TMP_LIBDIR
)
/master.lpc
$(TMP_BINDIR)/hilfe
+
$(
RUNULPC
) $(TMP_BINDIR)/hilfe
-
+
# make export archive (requires compiled uLPC)
+
# Do not compile in source tree if you want to use this!
+
export: $(TMP_LIBDIR)/testsuite.lpc
+
$(RUNULPC) $(TMP_BINDIR)/export.lpc
-
+
# make dependencies (requires compiled uLPC)
depend: language.c
-
gcc -MM $(PREFLAGS) *.c $(SRCDIR)/*.c |
sed 's;"
$(
SRCDIR
)
/";;g'
| sed 's;\./;;g' >
$(SRCDIR)/
dependencies
-
cat $(SRCDIR)/
Makefile.in
.src $(SRCDIR)/dependencies > $(SRCDIR)/Makefile.in
-
config.status
+
gcc -MM $(PREFLAGS) *.c $(SRCDIR)/*.c | $(
FIXDEP
) $(SRCDIR)/Makefile.in
for a in $(MODULES) ; do ( cd $$a ; ${MAKE} $(MAKE_FLAGS) depend ) ; done
-
+
#
+
# uLPC internal targets
+
#
+
module_objects:
+
for a in $(MODULES) ; do ( cd $$a ; ${MAKE} $(MAKE_FLAGS) ) ; done
+
+
lang.o: lang.c config.h object.h interpret.h program.h
+
+
language.h: language.y
+
@echo "Expect 1 shift/reduce conflict."
+
$(YACC) $(YFLAGS) $(SRCDIR)/language.y
+
mv y.tab.c language.c
+
mv y.tab.h language.h
+
+
language.c: language.h
+
touch language.c
+
+
module.c: modlist.h
+
+
configure: configure.in
+
cd $(SRCDIR) && autoconf
+
+
config.status: configure
+
./config.status --recheck
+
+
+
Makefile: Makefile.in config.status
+
./config.status
+
+
machine.h: stamp-h
+
+
stamp-h: machine.h.in config.status
+
./config.status
+
+
modlist.h:
+
./config.status
+
+
$(TMP_LIBDIR)/testsuite.lpc: $(TMP_BINDIR)/create_testsuite
+
$(TMP_BINDIR)/create_testsuite >$(TMP_LIBDIR)/testsuite.lpc
+
+
+
#Dependencies begin here, DO NOT REMOVE THIS LINE!!!!
add_efun.o: add_efun.c add_efun.h svalue.h types.h machine.h \ hashtable.h las.h config.h dynamic_buffer.h program.h macros.h \ memory.h lpc_types.h stralloc.h interpret.h alloca.o: alloca.c array.o: array.c global.h machine.h config.h debug.h types.h port.h \ svalue.h array.h las.h dynamic_buffer.h program.h object.h stralloc.h \ interpret.h language.h error.h lpc_types.h fsort.h builtin_efuns.h \ memory.h backend.o: backend.c global.h machine.h config.h debug.h types.h \ port.h interpret.h program.h object.h svalue.h error.h call_out.h \
pike.git/src/Makefile.in:210:
memory.h error.h main.h lex.h builtin_efuns.h dynamic_buffer.o: dynamic_buffer.c global.h machine.h config.h debug.h \ types.h port.h dynamic_buffer.h stralloc.h error.h svalue.h memory.h error.o: error.c global.h machine.h config.h debug.h types.h port.h \ macros.h memory.h error.h svalue.h interpret.h program.h stralloc.h \ builtin_efuns.h array.h las.h dynamic_buffer.h object.h fd_control.o: fd_control.c fd_control.h global.h machine.h config.h \ debug.h types.h port.h fsort.o: fsort.c global.h machine.h config.h debug.h types.h port.h \ fsort.h
-
hashtable.o: hashtable.c
hashtable
.h
types
.h
machine
.h
stralloc
.h \
-
config
.h stuff.h error.h svalue.h
+
hashtable.o: hashtable.c
global
.h
machine
.h
config
.h
debug
.h
types.h
\
+
port
.h
hashtable.h stralloc.h
stuff.h error.h svalue.h
interpret.o: interpret.c global.h machine.h config.h debug.h types.h \ port.h interpret.h program.h object.h svalue.h array.h las.h \ dynamic_buffer.h mapping.h error.h language.h stralloc.h add_efun.h \ hashtable.h macros.h memory.h list.h backend.h operators.h opcodes.h \ main.h lex.h builtin_efuns.h lpc_signal.h language.o: language.c global.h machine.h config.h debug.h \ port.h interpret.h program.h array.h las.h svalue.h \ dynamic_buffer.h object.h stralloc.h lex.h lpc_types.h \ add_efun.h hashtable.h macros.h error.h docode.h las.o: las.c global.h machine.h config.h debug.h types.h port.h \
pike.git/src/Makefile.in:265:
stralloc.h mapping.h list.h opcodes.h object.h error.h lpc_types.h operators.o: operators.c global.h machine.h config.h debug.h types.h \ port.h interpret.h program.h svalue.h list.h las.h dynamic_buffer.h \ mapping.h array.h stralloc.h opcodes.h operators.h language.h \ memory.h error.h port.o: port.c global.h machine.h config.h debug.h types.h port.h \ macros.h memory.h program.o: program.c global.h machine.h config.h debug.h types.h \ port.h program.h object.h svalue.h dynamic_buffer.h lpc_types.h \ stralloc.h las.h language.h lex.h macros.h memory.h fsort.h error.h \
-
docode.h interpret.h hashtable.h
+
docode.h interpret.h hashtable.h
main.h compilation.h
rusage.o: rusage.c global.h machine.h config.h debug.h types.h port.h \ rusage.h stralloc.o: stralloc.c global.h machine.h config.h debug.h types.h \ port.h stralloc.h macros.h memory.h dynamic_buffer.h error.h svalue.h stuff.o: stuff.c stuff.h types.h machine.h svalue.o: svalue.c global.h machine.h config.h debug.h types.h port.h \ svalue.h stralloc.h array.h las.h dynamic_buffer.h program.h \ mapping.h list.h object.h add_efun.h hashtable.h error.h ualarm.o: ualarm.c add_efun.o: add_efun.c add_efun.h svalue.h types.h machine.h \
pike.git/src/Makefile.in:318:
debug.h port.h dynamic_buffer.h stralloc.h error.h \ svalue.h error.o: error.c global.h machine.h config.h debug.h \ port.h macros.h error.h svalue.h interpret.h program.h \ stralloc.h builtin_efuns.h array.h las.h dynamic_buffer.h \ object.h fd_control.o: fd_control.c fd_control.h global.h machine.h \ config.h debug.h port.h fsort.o: fsort.c global.h machine.h config.h debug.h \ port.h fsort.h
-
hashtable.o: hashtable.c
hashtable
.h
types
.h
machine
.h \
-
stralloc
.h
config
.h stuff.h error.h svalue.h
+
hashtable.o: hashtable.c
global
.h
machine
.h
config
.h
debug.h
\
+
port
.h
hashtable
.h
stralloc.h
stuff.h error.h svalue.h
interpret.o: interpret.c global.h machine.h config.h debug.h \ port.h interpret.h program.h object.h svalue.h array.h \ las.h dynamic_buffer.h mapping.h error.h language.h \ stralloc.h add_efun.h hashtable.h macros.h list.h \ backend.h operators.h opcodes.h main.h lex.h \ builtin_efuns.h lpc_signal.h language.o: language.c global.h machine.h config.h debug.h \ port.h interpret.h program.h array.h las.h svalue.h \ dynamic_buffer.h object.h stralloc.h lex.h lpc_types.h \ add_efun.h hashtable.h macros.h error.h docode.h
pike.git/src/Makefile.in:379:
object.h error.h lpc_types.h operators.o: operators.c global.h machine.h config.h debug.h \ port.h interpret.h program.h svalue.h list.h las.h \ dynamic_buffer.h mapping.h array.h stralloc.h opcodes.h \ operators.h language.h error.h port.o: port.c global.h machine.h config.h debug.h port.h \ macros.h program.o: program.c global.h machine.h config.h debug.h \ port.h program.h object.h svalue.h dynamic_buffer.h \ lpc_types.h stralloc.h las.h language.h lex.h macros.h \
-
fsort.h error.h docode.h interpret.h hashtable.h
+
fsort.h error.h docode.h interpret.h hashtable.h
main.h \
+
compilation.h
rusage.o: rusage.c global.h machine.h config.h debug.h \ port.h rusage.h stralloc.o: stralloc.c global.h machine.h config.h debug.h \ port.h stralloc.h macros.h dynamic_buffer.h error.h \ svalue.h stuff.o: stuff.c stuff.h types.h machine.h svalue.o: svalue.c global.h machine.h config.h debug.h \ port.h svalue.h stralloc.h array.h las.h dynamic_buffer.h \ program.h mapping.h list.h object.h add_efun.h \ hashtable.h error.h ualarm.o: ualarm.c