1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236
|
# Generated automatically from Makefile.in by configure.
# IRC II - written by Michael Sandrof
# Copyright (c) 1991 - All Rights Reserved
# Modified by Matthew Green, 1993.
#
# @(#)$Id: Makefile.in,v 1.27 1995/01/05 06:40:23 mrg stable $
# targets recognised by this makefile:
# all, everything - compiles ircii, ircserv, ircflush and wserv
# ircserv - compiles ircserv
# ircflush - compiles ircflush
# wserv - compiles wserv
# install - installs ircii, ircserv, ircflush and wserv the scripts
# and the translation tables.
# installirc - installs ircii
# installserv - installs ircserv
# installwserv - installs wserv
# installflush - installs ircflush
# installscript - installs the scripts
# installtranslation - installs the translation tables
# installeverything - all of the above
# clean - remove all .o files, core, and binaries
# disclean - remove all files geneated by compilation/installation.
# Default paths (system-wide installs)
prefix = /usr
exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin
# Where the ircII binary will be installed.
# 'make install' will compile and install the program
INSTALL_IRC = $(bindir)/epic
# Where the ircII library will be. This is the place where 'make install'
# will put the scripts, help pages, and translation tables. It is very
# important that this is set correctly.
IRCLIB = ${prefix}/lib/epic
# Alternate paths for me (home directory installs)
#prefix = $(HOME)/epic/client
#exec_prefix = $(prefix)
#bindir = $(prefix)
#IRCLIB = $(bindir)/irclib
CC = gcc
DEFS = -DHAVE_CONFIG_H
LIBS = -ltermcap -lnsl -lresolv -lcrypt
# 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 -O
# set this to whatever flag your compiler takes to turn on ansi mode.
# gcc is ansi by default, but you can specify -ansi anyhow. Digital's
# 'cc' requires this, as may other non-gcc compilers.
# Typically, its "-ansi" or "-std1" or some such thing.
ANSIFLAGS =
# Set this to -s if you want the binary to be striped.
LDFLAGS =
####### You probably don't need to change anything below this line ##########
#
# Full path of the directory for ircII help files.
# The help files are not within the source distribution, if you don't have
# them and want them, check out your nearest ircII archive.
# You may comment HELP_DIR, then the ircIIhelp service will be used.
# If you don't comment it out and want to use the IRCIIHelp service anyway,
# you must make sure that the directory doesn't exist.
HELP_DIR = $(IRCLIB)/help
# Full path of the directory in which to copy the
# IRCII scripts supplied with the code. These scripts
# may be loaded by using the LOAD command in IRCII.
INSTALL_SCRIPT = $(IRCLIB)/script
# Default setting for IRC_PATH where irc 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.
IRC_PATH = ~/.irc:$(INSTALL_SCRIPT):.
# Path for TRANSLATION variable.
TRANS_PATH = $(IRCLIB)/translation
# Set the next line to the full path for installation of the ircserv program
# if you wish to use it.
INSTALL_IRCSERV = $(IRCLIB)/ircserv
# This little program is necessary to have an interactive shell
# in a window of ircII. The 'shell' script uses it, so also update
# the path in there, if you want to enable this.
INSTALL_IRCFLUSH = $(IRCLIB)/ircflush
# This program allows you to use screen/xterm's to put new irc windows
# on new screen/xterm windows.
INSTALL_WSERV = $(IRCLIB)/wserv
############ You shouldn't change anything below this line ###################
srcdir = .
RM = rm -f
LN = ln -s
CP = cp
MV = mv
INSTALL = ./bsdinstall -c -m 755
INSTALL_DATA = ../bsdinstall -c -m 644
VERSION = 2.8.2-EPIC3.004
SHELL = /bin/sh
MAKE = make $(MFLAGS)
MFLAGS ='CC=$(CC)' \
'ANSIFLAGS=$(ANSIFLAGS)' \
'CFLAGS=$(CFLAGS)' \
'DEFS=$(DEFS)' \
'HELP_DIR=$(HELP_DIR)' \
'INSTALL_IRC=$(INSTALL_IRC)' \
'INSTALL_IRCSERV=$(INSTALL_IRCSERV)' \
'INSTALL_WSERV=$(INSTALL_WSERV)' \
'IRCLIB=$(IRCLIB)' \
'IRCPATH=$(IRC_PATH)' \
'LDFLAGS=$(LDFLAGS)' \
'LIBS=$(LIBS)' \
'LN=$(LN)' \
'PP_DEFS=$(PP_DEFS)' \
'PP_OBJS=$(PP_OBJS)' \
'PPS_DEFS=$(PPS_DEFS)' \
'RM=$(RM)' \
'TRANS_DIR=$(TRANS_PATH)'
all: irc ircserv ircflush wserv
everything: all
install installeverything: all installbin installscript installtranslation installhelp
installbin: installirc installserv installflush installwserv
irc: source/Makefile Makefile
@cd source; $(MAKE) all
installirc: irc installdirs test
if ./my_test \( ! -f $(INSTALL_IRC)-$(VERSION) \) -o source/irc -nt $(INSTALL_IRC)-$(VERSION); then \
$(INSTALL) source/irc $(INSTALL_IRC)-$(VERSION); \
if ./my_test -f $(INSTALL_IRC).old; then $(RM) $(INSTALL_IRC).old; fi; \
if ./my_test -f $(INSTALL_IRC); then $(MV) $(INSTALL_IRC) $(INSTALL_IRC).old; fi; \
$(RM) $(INSTALL_IRC); \
mv $(INSTALL_IRC)-$(VERSION) $(INSTALL_IRC); \
fi
ircserv: source/Makefile
@cd source; $(MAKE) ircserv
installserv: ircserv installdirs test
if ./my_test \( \! -f $(INSTALL_IRCSERV) \) -o source/ircserv -nt $(INSTALL_IRCSERV); then \
$(INSTALL) source/ircserv $(INSTALL_IRCSERV); \
fi
ircflush: source/ircflush.c source/Makefile
@cd source; $(MAKE) ircflush
installflush: ircflush installdirs test
if ./my_test \( \! -f $(INSTALL_IRCFLUSH) \) -o source/ircflush -nt $(INSTALL_IRCFLUSH); then \
$(INSTALL) source/ircflush $(INSTALL_IRCFLUSH); \
fi
wserv: source/wserv.c source/term.c source/Makefile
@cd source; $(MAKE) wserv
installwserv: wserv installdirs test
if ./my_test \( \! -f $(INSTALL_WSERV) \) -o source/wserv -nt $(INSTALL_WSERV); then \
$(INSTALL) source/wserv $(INSTALL_WSERV); \
fi
installscript: installdirs test
-chmod -x script/*
-@( \
if ./my_test -f $(INSTALL_SCRIPT)/local; then \
if ./my_test -f script/local; then \
$(MV) script/local script/local.orig; \
fi; \
fi \
)
cd script; \
for i in *; \
do \
if ../my_test \( \! -f $(INSTALL_SCRIPT)/$$i \) -o $$i -nt $(INSTALL_SCRIPT)/$$i; then \
$(INSTALL_DATA) $$i $(INSTALL_SCRIPT); \
fi; \
done
installtranslation: installdirs test
-chmod -x translation/*
cd translation; \
for i in *; \
do \
if ../my_test \( \! -f $(TRANS_PATH)/$$i \) -o $$i -nt $(TRANS_PATH)/$ii; then \
$(INSTALL_DATA) $$i $(TRANS_PATH); \
fi; \
done
installhelp: installdirs
(cd help; tar cf - .) | (cd $(HELP_DIR); tar xf -)
installdirs:
umask 022; ./mkinstalldirs $(IRCLIB) $(bindir) $(TRANS_PATH) $(INSTALL_SCRIPT) $(HELP_DIR)
test.o: test.c
$(CC) -c test.c
test: test.o
$(CC) test.o -o my_test
clean:
@-if test -f source/Makefile; then cd source; $(MAKE) clean; fi
distclean cleandir realclean: clean
$(RM) Jamfile Jamrules source/Jamfile Makefile source/Makefile source/sig.inc config.status config.cache config.log easyinst.status include/defs.h test.o my_test
depend:
(cd source;make depend)
|