dslinux/user/bitchx/dll Makefile

stsp stsp at user.in-berlin.de
Sun Jul 2 15:41:24 CEST 2006


Update of /cvsroot/dslinux/dslinux/user/bitchx/dll
In directory antilope:/tmp/cvs-serv16112/dll

Added Files:
	Makefile 
Log Message:
Make bitchX build.


--- NEW FILE: Makefile ---
# dll/Makefile.in
#
# This Makefile is used to create dll/dynamic link libs for BitchX

SHELL = /bin/sh

srcdir = .

top_srcdir = ..
topdir = $(ROOTDIR)/user/bitchx
prefix = /usr/local
exec_prefix = ${prefix}

bindir = ${exec_prefix}/bin
sbindir = ${exec_prefix}/sbin
libexecdir = ${exec_prefix}/libexec
datadir = ${prefix}/share
sysconfdir = ${prefix}/etc
sharedstatedir = ${prefix}/com
localstatedir = ${prefix}/var
libdir = ${exec_prefix}/lib
infodir = ${prefix}/info
mandir = ${prefix}/man
includedir = ${prefix}/include
oldincludedir = /usr/include

local_dir = $(HOME)

# Where the BitchX binary will be installed.
# "make install" will compile and install the program.
INSTALL_IRC = ${bindir}/$(_VERSION_)$(EXEEXT)

# Where the BitchX library will be. Generally this is the place that
# you put the scripts, help pages and translation tables. It is
# very important that you set this correctly.
IRCLIB = ${libdir}/bx

CC = gcc
DEFS = -I. -I$(topdir)/include -I$(top_srcdir)/include -I$(srcdir) -I$(srcdir)/include
LIBS =  -lncurses -lm -lcrypt -lresolv

# Tcl library.
TCL_LIBS = 

# These are for Tcl support.
TCL_OBJS = 
# You don't have the following, so you'll want to leave this blank.
TCL_SRCS = 

# Set this to -g if you want to be able to debug the client, otherwise
# use -O to have the compiler do some optimization instead.
CFLAGS =  -g -O2 -Wall

# Set this to -s if you want the binary to be stripped.
LDFLAGS = 

# These are for the cd device player.
CD_SRCS = 
CD_OBJS = 

# This is the executable suffix for the target operating system.
EXEEXT = 

# Extra files.
DEFAULT_CTOOLZ_DIR = ~/.BitchX
DEFAULT_MSGLOGFILE = BitchX.away
DEFAULT_BITCHX_HELP_FILE = BitchX.help
DEFAULT_SCRIPT_HELP_FILE = BitchX.help
DEFAULT_BITCHX_KICK_FILE = BitchX.kick
DEFAULT_BITCHX_QUIT_FILE = BitchX.quit
DEFAULT_BITCHX_IRCNAME_FILE = BitchX.ircnames

# Full path of the directory for BitchX help files.
HELPDIR = $(IRCLIB)/help

# Full path of the directory for the BitchX scripts.
INSTALL_SCRIPT = $(IRCLIB)/script

# Default setting for IRCPATH where BitchX will look for
# its script files if the environment variable is undefined.
# Usually, this should contain the same path as used for INSTALL_SCRIPT in
# the Makefile, but it can contain multiple path elements
# separated by colons. The path MUST lead to an existing directory,
# because the 'global' script is expected to be found there.
IRCPATH = $(DEFAULT_CTOOLZ_DIR):$(DEFAULT_CTOOLZ_DIR)/plugins:.:$(PLUGINDIR):$(INSTALL_SCRIPT):$(IRCLIB)

# Path for TRANSLATION variable.
TRANSLATION_PATH = $(IRCLIB)/translation

# This command will be used to install the BitchX help files. If you don't
# want to install them, replace with the following:
# INSTALL_HELP_CMD = @echo The help files have not been installed.
INSTALL_HELP_CMD = cp -pfr bitchx-docs/* $(HELPDIR)

# This is where the optional plugins will be copied to.
PLUGINDIR = $(IRCLIB)/plugins

# Plugin flags.
SHLIB_LD = gcc -shared
SHLIB_CFLAGS = 
SHLIB_SUFFIX = .so

# This command will be used to install the BitchX files on Win32/OS2EMX
# systems.
WINNT_INSTALL = 

# This program allows you to use screen/xterm's to put new BitchX windows
# on new screen/xterm windows.
INSTALL_WSERV = $(IRCLIB)/wserv$(EXEEXT)

# This program allows you to screen BitchX and reattach to it later.
INSTALL_SCRBX = ${bindir}/scr-bx$(EXEEXT)

# Set gzip and bzip2 options.
GZIP_ENV = --best
BZIP2 = -9 --repetitive-best

# Standard programs.
RM = rm -f
LN = ln -s
CP = cp -f
MV = mv -f

INSTALL = /usr/bin/install -c
INSTALL_DATA = ${INSTALL} -m 644

VERSION = BitchX-1.1-final
_VERSION_ = BitchX

MAKE_BIN = make
MAKE = $(MAKE_BIN) $(MFLAGS)
MFLAGS = \
	'local_dir=$(HOME)'			\
	'INSTALL_IRC=$(INSTALL_IRC)'		\
	'IRCLIB=$(IRCLIB)'			\
	'CC=$(CC)'				\
	'CFLAGS=$(CFLAGS)'			\
	'HELPDIR=$(HELPDIR)'			\
        'INSTALL_WSERV=$(INSTALL_WSERV)'	\
	'IRCPATH=$(IRCPATH)'			\
	'TRANSLATION_PATH=$(TRANSLATION_PATH)'	\
	'LDFLAGS=$(LDFLAGS)'			\
	'LIBS=$(LIBS)'				\
	'LN=$(LN)'				\
	'RM=$(RM)'				\
	'TCL_SRCS=$(TCL_SRCS)'			\
	'TCL_OBJS=$(TCL_OBJS)'			\
	'CD_PLAY=$(CD_PLAY)'			\
	'CD_SRCS=$(CD_SRCS)'			\
	'CD_OBJS=$(CD_OBJS)'			\
	'TCL_LIBS=$(TCL_LIBS)'			\
	'PLUGINDIR=$(PLUGINDIR)'		\
	'_VERSION_=$(_VERSION_)'		\
	'VERSION=$(VERSION)'			\
	'INSTALL_DATA=$(INSTALL_DATA)'		\
	'INSTALL_SCRIPT=$(INSTALL_SCRIPT)'	\
	'EXEEXT=$(EXEEXT)'			\
	'SHLIB_CFLAGS=$(SHLIB_CFLAGS)'		\
	'SHLIB_SUFFIX=$(SHLIB_SUFFIX)'

## Makefile starts here.

ALL_PLUGINS = abot acro aim amp arcfour autocycle blowfish cavlink cdrom encrypt europa fserv hint identd nap nicklist pkga possum qbx qmail scan wavplay xmms

#PLUGINS = abot acro aim arcfour autocycle blowfish cavlink encrypt europa fserv hint identd nap pkga possum qbx qmail scan wavplay
PLUGINS = 

.c.o:
	$(CC) $(DEFS) $(CFLAGS) -c $<

$(SHLIB_SUFFIX).o:
	$(SHLIB_LD) $(SHLIB_CFLAGS) $< -o $@$(SHLIB_SUFFIX)

all: Makefile dllinit.o
	@( \
		makeflags=$$2; \
		target="$@"; \
		list="$(PLUGINS)"; \
		for subdir in $$list; do \
			(cd $$subdir && $(MAKE) $$target) \
			|| case "$$makeflags" in *=*) exit 1;; *k*) ;; *) exit 1;; esac; \
		done; \
	)

Makefile: $(srcdir)/Makefile.in
	cd $(topdir) \
	  && $(SHELL) ./config.status

dummy:

dllinit.o:
	@( \
		if test x"$(PLUGINS)" != x""; then \
			$(CC) $(DEFS) $(CFLAGS) -c $(srcdir)/dllinit.c; \
		fi; \
	)

install: all
	$(INSTALL) -d $(PLUGINDIR)
	@( \
		makeflags=$$2; \
		target="$@"; \
		list="$(PLUGINS)"; \
		for subdir in $$list; do \
			(cd $$subdir && $(MAKE) $$target) \
			|| case "$$makeflags" in *=*) exit 1;; *k*) ;; *) exit 1;; esac; \
		done; \
	)
	@( \
		if test x"$(PLUGINS)" != x""; then \
			strip --strip-unneeded $(PLUGINDIR)/*$(SHLIB_SUFFIX) || :; \
			echo Your plugins [$(PLUGINS)] are now located in $(PLUGINDIR);\
		fi; \
	)

install_local: all
	$(INSTALL) -d $(local_dir)/.BitchX/plugins
	@( \
		makeflags=$$2; \
		target="$@"; \
		list="$(PLUGINS)"; \
		for subdir in $$list; do \
			(cd $$subdir && $(MAKE) 'PLUGINDIR=$(local_dir)/.BitchX' $$target) \
			|| case "$$makeflags" in *=*) exit 1;; *k*) ;; *) exit 1;; esac; \
		done; \
	)
	@( \
		if test x"$(PLUGINS)" != x""; then \
			echo Your plugins [$(PLUGINS)] are now located in $(PLUGINDIR) ;\
		fi; \
	)

clean: dummy
	@( \
		makeflags=$$2; \
		target="$@"; \
		list="$(PLUGINS)"; \
		for subdir in $$list; do \
			(cd $$subdir && $(MAKE) $$target) \
			|| case "$$makeflags" in *=*) exit 1;; *k*) ;; *) exit 1;; esac; \
		done; \
	)
	-$(RM) *~ *.o *$(SHLIB_SUFFIX)

distclean: clean
	@( \
		makeflags=$$2; \
		target="$@"; \
		list="$(ALL_PLUGINS)"; \
		for subdir in $$list; do \
			(cd $$subdir && $(MAKE) $$target) \
			|| case "$$makeflags" in *=*) exit 1;; *k*) ;; *) exit 1;; esac; \
		done; \
	)
	-$(RM) Makefile




More information about the dslinux-commit mailing list