Modules
ADT Database GTK2 GUI IP PiJAX Public Sql Stdio Subversion System Tools Xosd lua v4l2 wx
Recent Changes
Public.Parser.XML2 1.50
Public.ZeroMQ 1.1
Public.Template.Mustache 1.0
Public.Protocols.XMPP 1.4
Sql.Provider.jdbc 1.0
Popular Downloads
Public.Parser.JSON2 1.0
Public.Parser.JSON 0.2
GTK2 2.23
Public.Web.FCGI 1.8
Public.Parser.XML2 1.48
|
Module Information
GTK2
Viewing contents of GTK2-1.8/Makefile
# This line is needed on some machines.
# -*- Makefile -*-
#
# $Id: make_variables.in,v 1.16 2004/04/17 15:18:52 marcus Exp $
#
# Note: This template is actually used only for make_variables in the
# subdirectories; the one created in the build base dir is just an
# unwanted by-product.
prefix=/usr/local
exec_prefix=$(prefix)/bin
CC=/usr/local/pike/7.6.24/include/pike/smartlink gcc
CPP=gcc -E
LDSHARED=gcc -shared
TMP_BUILDDIR=
TMP_BINDIR=
DEFINES= -I/home/riffraff/src/Pike-v7.6.24/build/linux-2.6.11-1.27_fc3-i686/bundles/include -I/usr/local/include -I/usr/X11R6/include -DHAVE_CONFIG_H
TMP_LIBDIR=$(TMP_BUILDDIR)/lib
PIKE_SRC_DIR=/usr/local/pike/7.6.24/include/pike
BUILD_BASE=/usr/local/pike/7.6.24/include/pike
DEFAULT_RUNPIKE=$(TMP_BUILDDIR)/pike -DNOT_INSTALLED -DPRECOMPILED_SEARCH_MORE -m$(TMP_BUILDDIR)/master.pike $(PIKEOPTS)
USE_PIKE=pike $(PIKEOPTS)
RUNPIKE=$(DEFAULT_RUNPIKE)
OPTIMIZE=
INSTALL=
WARN=
OTHERFLAGS= -g -Wa,--execstack -mcpu=i686 -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -DORBIT2=1 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libgnome-2.0 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/panel-2.0 $(OSFLAGS) $(OPTIMIZE) $(WARN) $(PROFIL)
NOOPTFLAGS= -g -Wa,--execstack -mcpu=i686 -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -DORBIT2=1 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libgnome-2.0 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/panel-2.0 -I/home/riffraff/src/Pike-v7.6.24/build/linux-2.6.11-1.27_fc3-i686/bundles/include -I/usr/local/include -I/usr/X11R6/include $(OSFLAGS) $(WARN) $(PROFIL)
AR=
SRCDIR=.
PMOD_TARGETS=
make_variables_in=/usr/local/pike/7.6.24/include/pike/make_variables.in
MODULE_PMOD_IN=./module.pmod.in
MODULE_WRAPPER_PREFIX=___
MODNAME=GTK2
MODPATH=
MODDIR=
MODNAME=GTK
DEST=/usr/local/lib/pike/modules/
OBJS=dummy.o
MODULE_LDFLAGS= -L/home/riffraff/src/Pike-v7.6.24/build/linux-2.6.11-1.27_fc3-i686/bundles/lib -z execstack -R/usr/local/lib -L/usr/local/lib -R/usr/X11R6/lib -L/usr/X11R6/lib -Wl,--export-dynamic -pthread -L/usr/X11R6/lib -lglade-2.0 -lpanel-applet-2 -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lxml2 -lpthread -lz -lgnome-2 -lpopt -lbonobo-2 -lgconf-2 -lgnomevfs-2 -lbonobo-activation -lORBit-2 -lgthread-2.0 -lgnomecanvas-2 -lart_lgpl_2 -lpangoft2-1.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -Wl,--export-dynamic -pthread -L/usr/X11R6/lib -lglade-2.0 -lpanel-applet-2 -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lxml2 -lpthread -lz -lgnome-2 -lpopt -lbonobo-2 -lgconf-2 -lgnomevfs-2 -lbonobo-activation -lORBit-2 -lgthread-2.0 -lgnomecanvas-2 -lart_lgpl_2 -lpangoft2-1.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
MODULE_CFLAGS=-DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -DORBIT2=1 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libgnome-2.0 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/panel-2.0
CONFIG_HEADERS=pgtk_config.h
MODULE_CLEAN_EXTRA=p*.c
# WITH_GTK == 2
# override -> compile2 -> compile1 -> [SET OBJS] -> all
#
# WITH_GTK == 1
# override -> compile1 -> [SET OBJS] -> all
#
# WITH_GTK == 0
# override -> compile0 -> all
#
MYRUNPIKE=../../pike -DNOT_INSTALLED -m../../master.pike
override: compile1
@:
#
# $Id: dynamic_module_makefile.in,v 1.115 2004/04/17 15:18:52 marcus Exp $
#
LIBGCC=/usr/lib/gcc/i386-redhat-linux/3.4.3/libgcc.a
LC_REQ=-lc
LINKAGE_CPPFLAGS=
LINKAGE_CFLAGS= -fPIC -DDYNAMIC_MODULE
MODULE_PROGRAM=.$(MODULE_WRAPPER_PREFIX)$(MODNAME)
MODULE_TARGET=$(TMP_MODULE_BASE)/$(MODDIR)$(MODULE_WRAPPER_PREFIX)$(MODNAME).so
#
# $Id: common_module_makefile.in,v 1.29 2004/05/10 15:58:42 bill Exp $
#
# Contains stuff common to both dynamic_module_makefile and
# static_module_makefile.
#
# Modules should NOT use this file directly, but instead use either
# dynamic_module_makefile or static_module_makefile as appropriate.
#
# These are set by make_variables.
# CC=/home/riffraff/src/Pike-v7.6.24/build/linux-2.6.11-1.27_fc3-i686/smartlink gcc
# CPP=gcc -E
# AR=/usr/bin/ar
REAL_LDFLAGS= -L/home/riffraff/src/Pike-v7.6.24/build/linux-2.6.11-1.27_fc3-i686/bundles/lib -z execstack -R/usr/local/lib -L/usr/local/lib -R/usr/X11R6/lib -L/usr/X11R6/lib
REAL_LDSHARED=gcc -shared
REAL_CFLAGS= -g -Wa,--execstack -mcpu=i686
REAL_CPPFLAGS= -I/home/riffraff/src/Pike-v7.6.24/build/linux-2.6.11-1.27_fc3-i686/bundles/include -I/usr/local/include -I/usr/X11R6/include
PREFLAGS=-I. -I$(SRCDIR) -I$(BUILD_BASE) -I$(PIKE_SRC_DIR) $(LINKAGE_CPPFLAGS) $(MODULE_CPPFLAGS) $(DEFINES)
CFLAGS=$(MODULE_CFLAGS) $(PREFLAGS) $(OTHERFLAGS) $(LINKAGE_CFLAGS)
NOOPT_CFLAGS=$(MODULE_CFLAGS) $(PREFLAGS) $(NOOPTFLAGS) $(LINKAGE_CFLAGS)
MAKE_FLAGS = "prefix=$(prefix)" "exec_prefix=$(exec_prefix)" "CC=$(CC) $(LINKAGE_CFLAGS)" "OTHERFLAGS=$(OTHERFLAGS)" "TMP_BINDIR=$(TMP_BINDIR)" "DEFINES=$(DEFINES)" "TMP_LIBDIR=$(TMP_LIBDIR)" "RUNPIKE=$(RUNPIKE)" "INSTALL=$(INSTALL)" "AR=$(AR)" "NOOPTFLAGS=$(NOOPTFLAGS)" $(MODULE_MAKE_FLAGS)
MODULE_BASE=$(BUILD_BASE)/modules
TMP_MODULE_BASE=$(TMP_LIBDIR)/modules
all: dummy
force:
@:;
dummy: Makefile $(DUMMY) linker_options modlist_headers modlist_segment $(MODULE_TARGET) module.pmod
@if [ x"$(PIKE_EXTERNAL_MODULE)" = x -a x"$(MODULE_PMOD_IN)" != x ]; then \
$(TMP_BINDIR)/install_module module.pmod $(TMP_MODULE_BASE)/$(MODDIR)$(MODNAME).pmod ; \
fi
$(MODULE_ARCHIVES) ThisIsAPhonyTargetBlaBlaBla: force
@a=`echo $@ | sed -e 's@/[^/]*$$@@'` ; \
m=`echo $@ | sed -e 's@.*/@@g'`; \
echo Making $(MODNAME)/$$a/$$m ; \
( rm $$a/remake >/dev/null 2>&1 ||: ; \
cd $$a && ( $(MAKE) $(MAKE_FLAGS) $$m || \
( test -f remake ; $(MAKE) $(MAKE_FLAGS) $$m ) ) \
) || exit $$?
.SUFFIXES:
.SUFFIXES: .c .o .cmod .protos
.cmod.c: $(BUILD_BASE)/precompile.sh-stamp $(TMP_BINDIR)/precompile.pike
$(BUILD_BASE)/precompile.sh --cache precompile.pike >"$@" "$<" || { rm "$@"; exit 1; }
# GCC dumps core on some files @ OSF1
# This kluge should work around that...
.c.o:
@echo "Compiling $<" ;\
rm -f $@.fail >/dev/null 2>&1; \
if $(CC) $(PREFLAGS) $(CFLAGS) -c $< -o $@ ; then : ; else \
status=$$?; \
if test x"yes" = xyes ; then \
echo "WARNING: Compiler failure! Trying without optimization!" >&2;\
echo "$(CC) $(PREFLAGS) $(CFLAGS) -c $< -o $@" >$@.fail ;\
if NO_ULIMIT=yes $(CC) $(PREFLAGS) $(NOOPTFLAGS) -c $< -o $@ ; then : ; else \
status=$$?; \
echo "Compilation command was:" >&2;\
echo "$(CC) $(PREFLAGS) $(NOOPTFLAGS) -c $< -o $@" >&2 ;\
exit $$status; \
fi; \
else \
echo "Compilation command was:" >&2;\
echo "$(CC) $(PREFLAGS) $(CFLAGS) -c $< -o $@" >&2 ;\
exit $$status; \
fi; \
fi
.c.protos: $(BUILD_BASE)/precompile.sh-stamp
./precompile.sh --cache fake_dynamic_load.pike >"$@" --cpp --protos \
$(CPP) $(PREFLAGS) -DPMOD_EXPORT=PMOD_EXPORT \
-DPMOD_PROTO=PMOD_PROTO -DPIKE_PRECOMPILER=1 "$<" || \
{ rm "$@"; exit 1; }
make_variables: $(make_variables_in) config.status
CONFIG_FILES="make_variables:$(make_variables_in)" CONFIG_HEADERS="" ./config.status
# $(CONFIG_HEADERS) should exist but they need not be more fresh than
# config.status since it only rewrites them if they actually change.
$(CONFIG_HEADERS) dummy_config_header: config.status
@if [ x"$(CONFIG_HEADERS)" != x ]; then \
for hdr in $(CONFIG_HEADERS); do \
if [ -f "$$hdr" ]; then :; else \
echo CONFIG_HEADERS="$(CONFIG_HEADERS)" ./config.status; \
CONFIG_HEADERS="$(CONFIG_HEADERS)" ./config.status; \
fi; \
done; \
fi
$(SRCDIR)/configure: $(SRCDIR)/configure.in $(PIKE_SRC_DIR)/aclocal.m4
cd $(SRCDIR) && $(PIKE_SRC_DIR)/run_autoconfig .
config.status: $(SRCDIR)/configure
AR="$(AR)" CFLAGS="$(REAL_CFLAGS)" LDFLAGS="$(REAL_LDFLAGS)" LDSHARED="$(REAL_LDSHARED)" CPPFLAGS="$(REAL_CPPFLAGS)" BUILDDIR="$(TMP_BUILDDIR)" BINDIR="$(TMP_BINDIR)" PIKE_SRC_DIR="$(PIKE_SRC_DIR)" BUILD_BASE="$(BUILD_BASE)" ./config.status --recheck
module.pmod: Makefile $(MODULE_PMOD_IN)
@if [ "x$(MODULE_PMOD_IN)" != "x" ]; then \
echo "Making module.pmod" ; \
if [ -f "$(MODULE_PMOD_IN)" ]; then \
sed -e "s/@module@/$(MODULE_PROGRAM)/" \
<"$(MODULE_PMOD_IN)" >module.pmod; \
else \
if [ -d "$(MODULE_PMOD_IN)" ]; then \
find "$(MODULE_PMOD_IN)" -type d -print | sed -e "s/$(MODULE_PMOD_IN)/module.pmod/" | xargs -n 1 mkdir -p ;\
for mi in `find "$(MODULE_PMOD_IN)" -type f -print | sed -e "s/$(MODULE_PMOD_IN)//"` ;\
do \
sed -e "s/@module@/$(MODULE_PROGRAM)/" \
<"$(MODULE_PMOD_IN)/$$mi" > "module.pmod/$$mi" ; \
done; \
else \
echo 'Missing source for module.pmod "$(MODULE_PMOD_IN)".' >&2; \
exit 1; \
fi ;\
fi; \
fi
clean_here:
-rm -f *.o *.fail *.obj *.a *.so stamp-h linker_options modlist_headers modlist_segment testsuite $(MODULE_CLEAN_EXTRA) doc
-rm -rf plib refdoc module.pmod doc
clean: clean_here
@for a in '' $(MODULE_SUBDIRS) ; do \
if test "x$$a" = "x"; then :; \
else ( cd $$a ; $(MAKE) $(MAKE_FLAGS) clean ) ; fi ; \
done
spotless: clean_here
-rm -f config.cache config.log config.status Makefile make_variables dependencies pike_*.feature
-rm -f core core.* .pure conftest.* $(MODULE_SPOTLESS_EXTRA)
@for a in '' $(MODULE_SUBDIRS) ; do \
if test "x$$a" = "x"; then :; \
else ( cd $$a ; $(MAKE) $(MAKE_FLAGS) spotless ) ; fi ; \
done
depend: $(SRC_TARGETS) $(PMOD_TARGETS) Makefile
-@echo Fixing dependencies for $(SRCDIR)/\*.c
@gcc -MM -MG $(PREFLAGS) $(SRCDIR)/*.c | $(TMP_BINDIR)/fixdepends.sh "$(SRCDIR)" "$(PIKE_SRC_DIR)" "$(BUILD_BASE)"
@CONFIG_FILES=Makefile CONFIG_HEADERS="" ./config.status
@for a in '' $(MODULE_SUBDIRS) ; do \
if test "x$$a" = "x"; then :; else \
echo making depend in $$a; \
( cd $$a && { \
rm -f remake; \
$(MAKE) $(MAKE_FLAGS) depend || \
if test -f remake; then $(MAKE) $(MAKE_FLAGS) depend; \
else exit $$?; fi; \
}); \
fi; \
done
pike_external_module: plib/modules
@$(MAKE) $(MAKE_FLAGS) LOCAL_MODULE_PATH="./plib/modules" local_install
refdoc:
@test -d refdoc || mkdir refdoc
refdoc/modref: refdoc
@test -d refdoc/modref || mkdir refdoc/modref
plib/doc_build/images: plib/doc_build
@test -d plib/doc_build/images || mkdir plib/doc_build/images
plib/doc_build: plib
@test -d plib/doc_build || mkdir plib/doc_build
plib/modules: plib
@test -d plib/modules || mkdir plib/modules
plib/refdoc: plib
@test -d plib/refdoc || mkdir plib/refdoc
plib:
@test -d plib || mkdir plib
#verify / debug
testsuite: $(SRCDIR)/testsuite.in $(REAL_TESTSUITE) $(TMP_BINDIR)/mktestsuite
@if test "x$(REAL_TESTSUITE)" != x ; then \
cp $(SRCDIR)/$(REAL_TESTSUITE) testsuite; \
else \
if test "$$PIKE_PATH_TRANSLATE" = ""; then \
$(TMP_BINDIR)/mktestsuite $(SRCDIR)/testsuite.in >testsuite \
-DSRCDIR=$(SRCDIR); \
else \
$(TMP_BINDIR)/mktestsuite $(SRCDIR)/testsuite.in >testsuite \
-DSRCDIR="`echo $(SRCDIR)|sed -e $$PIKE_PATH_TRANSLATE`"; \
fi; \
fi
extra_tests: $(MODULE_TESTS)
verify: testsuite $(MODULE_TESTS) $(PIKE_EXTERNAL_MODULE)
$(RUNPIKE) -Mplib/modules $(TMP_BINDIR)/test_pike.pike testsuite
verbose_verify: testsuite $(MODULE_TESTS) $(PIKE_EXTERNAL_MODULE)
@$(RUNPIKE) -Mplib/modules $(TMP_BINDIR)/test_pike.pike testsuite --verbose
gdb_verify: testsuite $(PIKE_EXTERNAL_MODULE)
@echo >.gdbinit handle SIGUSR1 nostop noprint pass
@echo >>.gdbinit run -DNOT_INSTALLED -m $(TMP_BUILDDIR)/master.pike $(PIKEOPTS) -Mplib/modules $(TMP_BINDIR)/test_pike.pike testsuite -v -v -f
gdb $(TMP_BUILDDIR)/pike
@rm .gdbinit
extract_autodoc: $(PIKE_EXTERNAL_MODULE) plib/refdoc plib/doc_build/images
$(RUNPIKE) -x extract_autodoc --builddir=plib/refdoc --srcdir=plib/modules
if test "X$(AUTODOC_SRC_IN)" != "X"; then \
$(RUNPIKE) -x extract_autodoc --builddir=plib/refdoc $(AUTODOC_SRC_IN); \
fi
join_autodoc: extract_autodoc
$(RUNPIKE) -x join_autodoc --quiet --post-process "plib/autodoc.xml" "$(CORE_AUTODOC_PATH)" "plib/refdoc"
modref: join_autodoc modref.xml
cd $(SYSTEM_DOC_PATH)/src && $(MAKE) $(MAKE_FLAGS) BUILDDIR="$(FULL_SRCDIR)/plib" DESTDIR="$(SYSTEM_DOC_PATH)" modref
module_join_autodoc: extract_autodoc refdoc/modref
$(RUNPIKE) -x join_autodoc --quiet --post-process "plib/autodoc.xml" "plib/refdoc"
module_modref: module_join_autodoc module_modref.xml
cd $(SYSTEM_DOC_PATH)/src && $(MAKE) $(MAKE_FLAGS) BUILDDIR="$(FULL_SRCDIR)/plib" DESTDIR="$(FULL_SRCDIR)/refdoc/" module_modref
modref.xml: plib/autodoc.xml $(SYSTEM_DOC_PATH)/src/structure/modref.xml
$(RUNPIKE) -x assemble_autodoc $(SYSTEM_DOC_PATH)/src/structure/modref.xml \
plib/autodoc.xml >plib/modref.xml
module_modref.xml: plib/autodoc.xml $(SYSTEM_DOC_PATH)/src/structure/module_modref.xml
$(RUNPIKE) -x assemble_autodoc $(SYSTEM_DOC_PATH)/src/structure/module_modref.xml \
plib/autodoc.xml >plib/module_modref.xml
examine_module: $(MODULE_TARGET)
-nm $(MODULE_TARGET)
linker_options: Makefile
@if test "x$(LINKER_OPTIONS)" != x ; then \
echo "LINKER_OPTIONS+=$(LINKER_OPTIONS)" ; \
else : ; fi ; \
echo "$(LINKER_OPTIONS)" >linker_options
modlist_headers: Makefile
@echo "" >modlist_headers
modlist_segment: Makefile
@echo "" >modlist_segment
# Can't depend on $(SRCDIR)/$(CONFIG_HEADERS).in since
# $(CONFIG_HEADERS) isn't always used.
Makefile: $(MODULE_BASE)/dynamic_module_makefile $(SRCDIR)/Makefile.in $(SRCDIR)/dependencies make_variables config.status
CONFIG_FILES=Makefile CONFIG_HEADERS="$(CONFIG_HEADERS)" ./config.status
touch remake
@echo "Run make again" >&2
@exit 1
$(MODULE_TARGET): module.so
@if test "x$(OBJS)" = "x" ; then \
exit 0; \
fi; \
if test "x$(PIKE_EXTERNAL_MODULE)" = "x" ; then \
$(TMP_BINDIR)/install_module module.so $(MODULE_TARGET) ; \
fi
module.so: $(MODULE_ARCHIVES) $(OBJS)
@if test "x$(OBJS)" = "x" ; then \
exit 0; \
fi; \
echo "Linking $(MODNAME)" ;\
if $(TMP_BINDIR)/smartlink "$(LDSHARED)" $(LDFLAGS) -o module.so \
$(OBJS) $(MODULE_ARCHIVES) $(MODULE_LDFLAGS) \
$(LIBGCC) $(LC_REQ) $(LIBGCC) ; then \
if test so != so ; then mv module.so module.so ; else :; fi ;\
else \
echo "Linking failed:" >&2; \
echo $(TMP_BINDIR)/smartlink "$(LDSHARED)" $(LDFLAGS) -o module.so $(OBJS) $(MODULE_ARCHIVES) $(MODULE_LDFLAGS) $(LIBGCC) $(LC_REQ) $(LIBGCC) >&2 ;\
exit 1; \
fi
$(OBJS) : $(MODULE_BASE)/dynamic_module_makefile
#
# install a standard module with optional c component in the system module path
#
install: $(MODULE_INSTALL)
@if test "x$(OBJS)" != "x" ; then \
$(TMP_BINDIR)/install_module module.so $(SYSTEM_MODULE_PATH)/$(MODDIR)$(MODULE_WRAPPER_PREFIX)$(MODNAME).so ;\
fi; \
if test "x$(MODULE_PMOD_IN)" != "x"; then \
$(TMP_BINDIR)/install_module module.pmod $(SYSTEM_MODULE_PATH)/$(MODDIR)$(MODNAME).pmod ;\
fi;
#
# install the module in LOCAL_MODULE_PATH, creating it if it doesn't already exist.
#
local_install: $(MODULE_INSTALL)
if test ! -d "$(LOCAL_MODULE_PATH)" ; then \
mkdir -p $(LOCAL_MODULE_PATH) ; \
fi; if test "x$(OBJS)" != "x" ; then \
$(TMP_BINDIR)/install_module module.so $(LOCAL_MODULE_PATH)/$(MODDIR)$(MODULE_WRAPPER_PREFIX)$(MODNAME).so ;\
fi; \
if test "x$(MODULE_PMOD_IN)" != "x"; then \
$(TMP_BINDIR)/install_module module.pmod $(LOCAL_MODULE_PATH)/$(MODDIR)$(MODNAME).pmod ;\
fi
dump_module: install
-rm -f dumpmodule.log
args=$${args:-"--log-file --update-only=dumpversion --report-failed"}; \
$(RUNPIKE) -x dump $$args \
--recursive "$(SYSTEM_MODULE_PATH)/$(MODDIR)$(MODNAME).pmod"
dump_local_module: install
-rm -f dumpmodule.log
args=$${args:-"--log-file --update-only=dumpversion --report-failed"}; \
$(RUNPIKE) -x dump $$args \
--recursive "$(LOCAL_MODULE_PATH)/$(MODDIR)$(MODNAME).pmod"
docs: doc1
doc0:
doc1:
$(RUNPIKE) $(SRCDIR)/new_build_pgtk.pike --source='$(SRCDIR)/source/'\
--destination="$(SRCDIR)/refdoc/" \
$(SRCDIR)/output/doc-pikeref.pike
doc2: doc1
compile0:
@echo "Pike-GTK disabled."
$(MAKE) all
compile1:
$(RUNPIKE) $(SRCDIR)/new_build_pgtk.pike --source='$(SRCDIR)/source/'\
$(SRCDIR)/output/few.pike
@if [ "x@VPATH_KLUDGE@" = "xyes" ]; then \
for f in `cat files_to_compile | sed -e 's/\.o/\.c/g'`; do \
test -f "$$f" || ln -s "$(srcdir)/$$f" "$$f"; \
done; \
else :; fi
@$(MAKE) OBJS="`cat files_to_compile`" \
CFLAGS="`echo $(CFLAGS) | sed -e 's/-g//g' -e 's/-W[^ ]*//g'`" \
all
compile2: compile1
options: config.status
./config.status
# Do not re-generate the 'dependencies' file in this directory.
depend:
@:
# Some hand-made dependencies:
#$(OBJS) : $(SRCDIR)/pgtk.h pgtk_config.h \
# $(SRCDIR)/../../global.h \
# $(SRCDIR)/../../svalue.h \
# $(SRCDIR)/../../program.h \
# $(SRCDIR)/../../pike_types.h \
# $(SRCDIR)/../../interpret.h \
# $(SRCDIR)/../../module_support.h \
# $(SRCDIR)/../../pike_error.h \
# $(SRCDIR)/../../array.h \
# $(SRCDIR)/../../backend.h \
# $(SRCDIR)/../../stralloc.h \
# $(SRCDIR)/../../mapping.h \
# $(SRCDIR)/../../object.h \
# $(SRCDIR)/../../threads.h \
# $(SRCDIR)/../../operators.h
|
|
|