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 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276
|
# Makefile.in gnuserv
# Copyright (C) 1994, 1995, 1997, 1999, 2000, 2001 Noah S. Friedman, Martin Schwenke
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330; Boston, MA 02111-1307, USA.
# $Id: Makefile.in,v 1.18 2007/10/22 00:46:52 martins Exp $
PACKAGENAME = gnuserv
VERSION = 3.12.8
DISTNAME = $(PACKAGENAME)-$(VERSION)
#### Start of system configuration section. ####
srcdir = @srcdir@
VPATH = @srcdir@
CC = @CC@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_DATA = @INSTALL_DATA@
DEFS = @DEFS@
LIBS = @LIBS@
LIBXAUTH = @LIBXAUTH@
CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
prefix = @prefix@
exec_prefix = @exec_prefix@
# The directory for installing executable programs that users can run.
bindir = $(exec_prefix)/bin
# Prefix/suffix for each installed program name, normally empty.
binprefix =
binsuffix =
# The directory for installing read-only architecture independent
# data files.
# As a special exception, see `infodir' and `includedir' below.
datadir = $(prefix)/share
elispdir = $(datadir)/emacs/site-lisp
# Where to install the manual pages.
man1dir = $(prefix)/man/man1
# Prefix/suffix for each installed man page, normally empty or `g'.
man1prefix = $(binprefix)
man1suffix = $(binsuffix)
# Extension (not including `.') for the installed manual page filenames.
man1ext = 1
AUTOCONF = autoconf
AUTOHEADER = autoheader
EMACS = emacs
ETAGS = etags
GZIP = gzip
LN = ln -s
MAKEINFO = makeinfo
MAKEINFOFLAGS = --no-split -I. -I$(srcdir)
MV = mv
RM = rm -f
TAR = tar
TOUCH = touch
TEXI2DVI = texi2dvi
TEXI2DVIFLAGS = #-I. -I$(srcdir)
#### End of system configuration section. ####
SHELL = /bin/sh
LOADLIBES = $(LIBS) $(LIBXAUTH)
DIST_TXTS = INSTALL COPYING README README.orig ChangeLog
DIST_MISC =
DIST_CONF = Makefile.in acconfig.h aclocal.m4 config.h.in config.h.bot \
configure configure.in install-sh mkinstalldirs
DIST_SCPS = gnuattach gnudoit
DIST_SRCS = getopt.c gnuclient.c gnuserv.c gnuslib.c
DIST_HDRS = getopt.h gnuserv.h sysfile.h syssignal.h compiler.h
DIST_DOCS = gnuserv.1
DIST_LISP = gnuserv.el gnuserv-compat.el devices.el
DISTFILES = $(DIST_TXTS) $(DIST_MISC) $(DIST_CONF) $(DIST_SCPS) \
$(DIST_SRCS) $(DIST_HDRS) $(DIST_DOCS) $(DIST_LISP)
COMPILE_FLAGS = -I. -I$(srcdir) $(DEFS) $(CPPFLAGS) $(CFLAGS)
.c.o:
$(CC) -c $(COMPILE_FLAGS) $<
.SUFFIXES: .texi .info
.texi.info:
$(MAKEINFO) $(MAKEINFOFLAGS) $<
.SUFFIXES: .texi .dvi
.texi.dvi:
$(TEXI2DVI) $(TEXI2DVIFLAGS) $<
.SUFFIXES: .el .elc
.el.elc:
$(EMACS) -batch -f batch-byte-compile $<
all: all-gnuserv
all-info: info
### targets required by GNU Coding standards ###
Makefile: Makefile.in config.status
$(SHELL) ./config.status
config.status: configure
$(SHELL) ./config.status --recheck
configure: configure.in
cd $(srcdir) && $(AUTOCONF)
config.h.in: configure.in
cd $(srcdir) && $(AUTOHEADER)
config.h: config.h.in
$(SHELL) ./config.status
TAGS:
cd $(srcdir) && $(ETAGS)
.PHONY: clean mostlyclean distclean
clean:
$(RM) $(PROGS) *.o *.elc core a.out
mostlyclean: clean
distclean: clean
$(RM) Makefile config.status config.log config.cache config.h
.PHONY: maintainer-clean maintclean-warning
maintainer-clean: maintclean-warning distclean
$(RM) configure config.h.in getdate.c y.tab.c
# Used by maintainer-clean to print a warning before any rm commands are run.
maintclean-warning:
@echo "This command is intended for maintainers to use;"
@echo "it deletes files that may require special tools to rebuild."
realclean: distclean
$(RM) TAGS
.PHONY: dist
dist: $(DISTFILES)
$(TOUCH) config.h.in
$(RM) -r $(DISTNAME)
mkdir $(DISTNAME)
@dst=$(DISTNAME); for f in $(DISTFILES); do \
{ cmd=ln; $$cmd $(srcdir)/$$f $$dst/$$f ; } \
|| { cmd='cp -p'; cp -p $(srcdir)/$$f $$dst/$$f ; }; \
echo $$cmd $(srcdir)/$$f $$dst/$$f; \
done
$(TAR) cf - $(DISTNAME) | $(GZIP) > $(DISTNAME).tar.gz
$(RM) -r $(DISTNAME)
.PHONY: installdirs uninstall
install: all installdirs install-programs install-man
installdirs: force
-$(SHELL) $(srcdir)/mkinstalldirs $(bindir) $(datadir) $(libdir) $(infodir) $(man1dir)
install-programs: all-gnuserv
@for prog in gnuserv gnuclient ; do \
new=$(bindir)/$(binprefix)$$prog$(binsuffix); \
echo $(INSTALL_PROGRAM) $$prog $$new; \
$(INSTALL_PROGRAM) $$prog $$new;\
done
@for prog in gnuattach gnudoit ; do \
new=$(bindir)/$(binprefix)$$prog$(binsuffix); \
echo $(INSTALL_SCRIPT) $$prog $$new; \
$(INSTALL_SCRIPT) $$prog $$new;\
done
install-man: force
@new=$(man1prefix)gnuserv$(man1suffix).$(man1ext); \
echo $(INSTALL_DATA) $(srcdir)/gnuserv.1 $(man1dir)/$$new; \
$(INSTALL_DATA) $(srcdir)/gnuserv.1 $(man1dir)/$$new; \
cd $(man1dir) || exit 1; \
for l in gnuclient gnuattach gnudoit ; do \
l=$(man1dir)/$(man1prefix)$$l$(man1suffix).$(man1ext); \
echo $(LN) $(man1dir)/$$new $$l; \
$(RM) $$l; $(LN) $$new $$l; \
done
install-elisp: gnuserv.el gnuserv.elc
$(INSTALL_DATA) $(srcdir)/gnuserv.el $(elispdir)/gnuserv.el
$(INSTALL_DATA) gnuserv.elc $(elispdir)/gnuserv.elc
uninstall: force
-cd $(bindir) && $(RM) $(PROGS)
-@cd $(man1dir);\
for l in $(PROGS); do \
f=$(man1dir)/$(man1prefix)$$l$(man1suffix).$(man1ext); \
echo $(RM) $$f && $(RM) $$f ; \
done
.PHONY: check installcheck force
check:
@echo 'Nothing to be done for "check"'
installcheck:
@echo 'Nothing to be done for "installcheck"'
force:
### program-specific building targets ###
PROGS = gnuserv gnuclient
ELC = gnuserv-compat.elc gnuserv.elc devices.elc
all-gnuserv: $(PROGS)
gnuserv: gnuserv.o gnuslib.o
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ gnuserv.o gnuslib.o $(LOADLIBES)
gnuclient: gnuclient.o gnuslib.o getopt.o
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ gnuclient.o gnuslib.o getopt.o $(LOADLIBES)
gnuserv.o: gnuserv.c gnuserv.h config.h compiler.h syssignal.h
gnuclient.o: gnuclient.c gnuserv.h getopt.h config.h \
compiler.h sysfile.h syssignal.h
gnuslib.o: gnuslib.c gnuserv.h getopt.o config.h syssignal.h
getopt.o: getopt.c getopt.h config.h
gnuserv-compat.elc: gnuserv-compat.el
$(EMACS) --no-site-file -batch \
--eval "(add-to-list 'load-path \".\")" \
-f batch-byte-compile $<
gnuserv.elc: gnuserv.el
$(EMACS) --no-site-file -batch \
--eval "(add-to-list 'load-path \".\")" \
-l gnuserv-compat -f batch-byte-compile $<
devices.elc: devices.el
info: gnuserv.info
gnuserv.info: gnuserv.texi
dvi: gnuserv.dvi
gnuserv.dvi: gnuserv.texi
.PHONY: ChangeLog
ChangeLog:
rcs2log -R \
-u "martins Martin Schwenke martin@meltin.net" \
-u "martin Martin Schwenke martin@meltin.net" \
> $@
# Prevent GNU make v3 from overflowing arg limit on SysV.
.NOEXPORT:
# local variables:
# mode: makefile
# end:
# Makefile.in ends here
|