#### DO NOT EDIT THIS FILE. #### This src/Makefile was automatically generated by configure. The correct #### installation precedure is to run ./configure in the top directory. You #### should not edit this file; all configuration changes should be made #### via arguments to configure. # $Id: vars.mak.in,v 35004.13 2007/01/13 23:12:39 kkeys Exp $ ######################################################################## # TinyFugue - programmable mud client # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2002, 2003, 2004, 2005, 2006-2007 Ken Keys # # TinyFugue (aka "tf") is protected under the terms of the GNU # General Public License. See the file "COPYING" for details. # # DO NOT EDIT THIS FILE. # Any configuration changes should be made via arguments to configure. ######################################################################## # unix/vars.mak. Generated from vars.mak.in by configure. prefix = /home/splork exec_prefix= ${prefix} bindir = ${exec_prefix}/bin datadir = ${prefix}/share mandir = ${prefix}/share/man TFVERSION = TinyFugue version 5.0 beta 8 X = O = o PREFIX = ${prefix} TF = ${bindir}/tf${X} # TF_LIBDIR is intentionally spelled differently than TFLIBDIR, which might # already exist in the environment. TF_LIBDIR = ${datadir}/tf-lib SYMLINK = default # MANPAGE = ${mandir}/man1/tf.1 # MANTYPE = @MANTYPE@ MODE = 755 CC = gcc CFLAGS = -g -O2 -DDATADIR=${datadir} LDFLAGS = -Lpcre-2.08 STD_C = @STD_C@ STRIP = RANLIB = ranlib LIBS = -lz -lm -lssl -lcrypto OTHER_OBJS = PCRE = pcre # $Id: vars.mak,v 1.58 2007/01/13 23:12:39 kkeys Exp $ ######################################################################## # TinyFugue - programmable mud client # Copyright (C) 1998, 1999, 2002, 2003, 2004, 2005, 2006-2007 Ken Keys # # TinyFugue (aka "tf") is protected under the terms of the GNU # General Public License. See the file "COPYING" for details. # # DO NOT EDIT THIS FILE. # For instructions on changing configuration, see the README file in the # directory for your operating system. ######################################################################## # Makefile variables common to all systems. # This file should be included or concatenated into a system Makefile. # Predefined variables: # O - object file suffix (e.g., "o" or "obj") TFVER=50b8 SOURCE = attr.c command.c dstring.c expand.c expr.c help.c history.c \ keyboard.c macro.c main.c malloc.c msdp.c msdp-tok.c output.c pattern.c \ process.c search.c signals.c socket.c tfio.c tty.c util.c variable.c world.c OBJS = $(subst .c,.$O,$(SOURCE)) $(OTHER_OBJS) # $Id: unix.mak,v 35004.50 2007/01/13 23:12:39 kkeys Exp $ ######################################################################## # TinyFugue - programmable mud client # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2002, 2003, 2004, 2005, 2006-2007 Ken Keys # # TinyFugue (aka "tf") is protected under the terms of the GNU # General Public License. See the file "COPYING" for details. # # DO NOT EDIT THIS FILE. # To make configuration changes, see "unix/README". ######################################################################## # # unix section of src/Makefile. # SHELL = /bin/sh BUILDERS = Makefile default: all install: _all PREFIXDIRS $(TF) LIBRARY $(MANPAGE) $(SYMLINK) @echo @echo '#####################################################' @echo '## TinyFugue installation successful.' @echo '## tf binary: $(TF)' @echo '## library: $(TF_LIBDIR)' # @echo '## manpage: $(MANPAGE)' @DIR=`echo $(TF) | sed 's;/[^/]*$$;;'`; \ echo ":$(PATH):" | egrep ":$${DIR}:" >/dev/null 2>&1 || { \ echo "##"; \ echo "## Note: $$DIR is not in your PATH."; \ echo "## To run tf, you will need to type its full path name"; \ echo "## or add $$DIR to your PATH."; \ } @if test $(TF_LIBDIR) != `cat TF_LIBDIR.build`; then \ echo "##"; \ echo "## Note: installed and compiled-in libraries disagree."; \ echo "## To run tf, you will need TFLIBDIR=\"$(TF_LIBDIR)\""; \ echo "## in your environment or the -L\"$(TF_LIBDIR)\" option."; \ fi all files: _all @echo '$(TF_LIBDIR)' > TF_LIBDIR.build @echo @echo '#####################################################' @echo '## TinyFugue build successful.' @echo '## Use "$(MAKE) install" to install:' @echo '## tf binary: $(TF)' @echo '## library: $(TF_LIBDIR)' # @echo '## manpage: $(MANPAGE)' _all: tf$(X) ../tf-lib/tf-help.idx _failmsg: # @echo '#####################################################' # @echo '## TinyFugue installation FAILED.' # @echo '## See README for help.' # @if [ "$(STD_C)" != "1" ]; then \ # echo '## '; \ # echo '## TF requires a standard (ANSI/ISO 9889-1990) C compiler.'; \ # echo '## The standard has existed since 1989, and gcc is freely'; \ # echo '## available for many platforms, so there is really no'; \ # echo '## excuse for not having a standard compiler at this time.'; \ # echo '## If your system does not have one, you should complain'; \ # echo '## strongly to the vendor or administrator. Do not bother'; \ # echo '## contacting the author of TF.'; \ # elif [ "$(CC)" = "gcc" ]; then \ # echo '## '; \ # echo '## Perhaps $(CC) is not configured correctly. Before'; \ # echo '## contacting the TF author, try setting the environment'; \ # echo '## variable CC to "cc", and run ./configure again.'; \ # fi pcre: # ranlib is required by MacOS X, maybe others cd pcre-2.08 && \ $(MAKE) CC='$(CC)' CFLAGS='-O' O=o libpcre.a && \ $(RANLIB) libpcre.a TF tf$(X): $(OBJS) $(BUILDERS) $(PCRE) $(CC) $(LDFLAGS) -o tf$(X) $(OBJS) $(LIBS) -lpcre # @# Some stupid linkers return ok status even if they fail. @test -f "tf$(X)" # @# ULTRIX's sh errors here if strip isn't found, despite "true". -test -z "$(STRIP)" || $(STRIP) tf$(X) || true PREFIXDIRS: test -d "$(DESTDIR)$(bindir)" || mkdir $(DESTDIR)$(bindir) test -d "$(DESTDIR)$(datadir)" || mkdir $(DESTDIR)$(datadir) install_TF $(TF): tf$(X) $(BUILDERS) -@rm -f $(DESTDIR)$(TF) cp tf$(X) $(DESTDIR)$(TF) chmod $(MODE) $(DESTDIR)$(TF) SYMLINK $(SYMLINK): $(DESTDIR)$(TF) test -z "$(SYMLINK)" || { rm -f $(SYMLINK) && ln -s $(TF) $(SYMLINK); } LIBRARY $(TF_LIBDIR): ../tf-lib/tf-help ../tf-lib/tf-help.idx @echo '## Creating library directory...' # @# Overly simplified shell commands, to avoid problems on ultrix -@test -n "$(TF_LIBDIR)" || echo "TF_LIBDIR is undefined." test -n "$(TF_LIBDIR)" test -d "$(DESTDIR)$(TF_LIBDIR)" || mkdir $(DESTDIR)$(TF_LIBDIR) -@test -d "$(DESTDIR)$(TF_LIBDIR)" || echo "Can't make $(TF_LIBDIR) directory. See if there is already a file with that name." test -d "$(DESTDIR)$(TF_LIBDIR)" # # @#rm -f $(TF_LIBDIR)/*; # wrong: this would remove local.tf, etc. @echo '## Copying library files...' cd ../tf-lib; \ for f in *; do test -f $$f && files="$$files $$f"; done; \ ( cd $(DESTDIR)$(TF_LIBDIR); rm -f $$files tf.help tf.help.index; ); \ cp $$files $(DESTDIR)$(TF_LIBDIR); \ cd $(DESTDIR)$(TF_LIBDIR); \ chmod $(MODE) $$files; chmod ugo-wx $$files -rm -f $(DESTDIR)$(TF_LIBDIR)/CHANGES cp ../CHANGES $(DESTDIR)$(TF_LIBDIR) chmod $(MODE) $(DESTDIR)$(TF_LIBDIR)/CHANGES; chmod ugo-wx $(DESTDIR)$(TF_LIBDIR)/CHANGES chmod $(MODE) $(DESTDIR)$(TF_LIBDIR) -@cd $(DESTDIR)$(TF_LIBDIR); old=`ls replace.tf 2>/dev/null`; \ if [ -n "$$old" ]; then \ echo "## WARNING: Obsolete files found in $(TF_LIBDIR): $$old"; \ fi @echo '## Creating links so old library names still work...' # @# note: ln -sf isn't portable. @cd $(DESTDIR)$(TF_LIBDIR); \ rm -f bind-bash.tf; ln -s kb-bash.tf bind-bash.tf; \ rm -f bind-emacs.tf; ln -s kb-emacs.tf bind-emacs.tf; \ rm -f completion.tf; ln -s complete.tf completion.tf; \ rm -f factorial.tf; ln -s factoral.tf factorial.tf; \ rm -f file-xfer.tf; ln -s filexfer.tf file-xfer.tf; \ rm -f local.tf.sample; ln -s local-eg.tf local.tf.sample; \ rm -f pref-shell.tf; ln -s psh.tf pref-shell.tf; \ rm -f space_page.tf; ln -s spc-page.tf space_page.tf; \ rm -f speedwalk.tf; ln -s spedwalk.tf speedwalk.tf; \ rm -f stack_queue.tf; ln -s stack-q.tf stack_queue.tf; \ rm -f worldqueue.tf; ln -s world-q.tf worldqueue.tf; makehelp: makehelp.c $(CC) $(CFLAGS) -o makehelp makehelp.c __always__: ../tf-lib/tf-help: __always__ if test -d ../help; then cd ../help; $(MAKE) tf-help; fi if test -d ../help; then cp ../help/tf-help ../tf-lib; fi ../tf-lib/tf-help.idx: ../tf-lib/tf-help makehelp $(MAKE) -f ../unix/unix.mak CC='$(CC)' CFLAGS='$(CFLAGS)' makehelp ./makehelp < ../tf-lib/tf-help > ../tf-lib/tf-help.idx MANPAGE $(MANPAGE): $(BUILDERS) tf.1.$(MANTYPE)man cp tf.1.$(MANTYPE)man $(MANPAGE) chmod $(MODE) $(MANPAGE) chmod ugo-x $(MANPAGE) Makefile: ../unix/vars.mak ../unix/unix.mak ../configure ../configure.in @echo @echo "## WARNING: configuration should be rerun." @echo uninstall: @echo "Remove $(TF_LIBDIR) $(TF) $(MANPAGE)" @echo "Is this okay? (y/n)" @read response; test "$$response" = "y" rm -f $(TF) $(MANPAGE) rm -rf $(TF_LIBDIR) clean distclean cleanest: cd ..; make -f unix/Makefile $@ # development stuff, not necessarily portable. tags: *.[ch] ctags --excmd=pattern port.h tf.h *.[ch] 2>/dev/null dep: *.c gcc -E -MM *.c \ | sed 's;pcre[^ ]*/pcre.h ;;' \ | sed '/[^\\]$$/s/$$/ $$(BUILDERS)/' \ > dep tf.pixie: tf$(X) pixie -o tf.pixie tf$(X) lint: lint -woff 128 $(CFLAGS) -DHAVE_PROTOTYPES $(SOURCE) $(LIBRARIES) # The next line is a hack to get around a bug in BSD/386 make. make: # $Id: rules.mak,v 1.21 2007/01/13 23:12:39 kkeys Exp $ ######################################################################## # TinyFugue - programmable mud client # Copyright (C) 1998, 1999, 2002, 2006-2007 Ken Keys # # TinyFugue (aka "tf") is protected under the terms of the GNU # General Public License. See the file "COPYING" for details. # # DO NOT EDIT THIS FILE. # For instructions on changing configuration, see the README file in the # directory for your operating system. ######################################################################## ### rules.mak - Makefile rules common to all systems. # This file should be portable to all systems, so it can be included in or # concatenated with all system-specific makefiles. # Predefined variables: # SYS - required system type (unix, os2) # O - required object suffix (e.g., "o" or "obj") # BUILDERS - optional list of system-specific dependancies attr.$(O): attr.c tfconfig.h tfdefs.h port.h tf.h malloc.h dstring.h \ globals.h varlist.h enumlist.h hooklist.h util.h pattern.h \ search.h tfio.h output.h attr.h variable.h parse.h \ opcodes.h $(BUILDERS) command.$(O): command.c tfconfig.h tfdefs.h port.h tf.h malloc.h dstring.h \ globals.h varlist.h enumlist.h hooklist.h util.h pattern.h \ search.h tfio.h cmdlist.h command.h world.h socket.h \ output.h attr.h macro.h keyboard.h expand.h signals.h variable.h $(BUILDERS) dmalloc.$(O): dmalloc.c $(BUILDERS) dstring.$(O): dstring.c tfconfig.h tfdefs.h port.h malloc.h tf.h dstring.h \ globals.h varlist.h enumlist.h hooklist.h signals.h $(BUILDERS) expand.$(O): expand.c tfconfig.h tfdefs.h port.h tf.h malloc.h dstring.h \ globals.h varlist.h enumlist.h hooklist.h util.h pattern.h \ search.h tfio.h macro.h signals.h socket.h keyboard.h \ parse.h opcodes.h expand.h expr.h cmdlist.h command.h variable.h $(BUILDERS) expr.$(O): expr.c tfconfig.h tfdefs.h port.h tf.h malloc.h dstring.h \ globals.h varlist.h enumlist.h hooklist.h util.h pattern.h \ search.h tfio.h macro.h signals.h socket.h output.h \ attr.h keyboard.h parse.h opcodes.h expand.h expr.h cmdlist.h command.h \ variable.h tty.h history.h world.h funclist.h $(BUILDERS) help.$(O): help.c tfconfig.h tfdefs.h port.h tf.h malloc.h dstring.h \ globals.h varlist.h enumlist.h hooklist.h search.h pattern.h \ tfio.h cmdlist.h variable.h $(BUILDERS) history.$(O): history.c tfconfig.h tfdefs.h port.h tf.h malloc.h dstring.h \ globals.h varlist.h enumlist.h hooklist.h util.h pattern.h \ search.h tfio.h history.h socket.h world.h output.h \ attr.h macro.h cmdlist.h keyboard.h variable.h signals.h $(BUILDERS) keyboard.$(O): keyboard.c tfconfig.h tfdefs.h port.h tf.h malloc.h dstring.h \ globals.h varlist.h enumlist.h hooklist.h util.h pattern.h \ search.h tfio.h macro.h keyboard.h output.h history.h \ expand.h cmdlist.h variable.h keylist.h $(BUILDERS) macro.$(O): macro.c tfconfig.h tfdefs.h port.h tf.h malloc.h dstring.h \ globals.h varlist.h enumlist.h hooklist.h util.h pattern.h \ search.h tfio.h world.h macro.h keyboard.h expand.h \ socket.h output.h attr.h cmdlist.h command.h parse.h opcodes.h \ variable.h $(BUILDERS) main.$(O): main.c tfconfig.h tfdefs.h port.h tf.h malloc.h dstring.h \ globals.h varlist.h enumlist.h hooklist.h util.h pattern.h \ search.h tfio.h history.h world.h socket.h macro.h \ output.h attr.h signals.h command.h keyboard.h variable.h tty.h \ expand.h expr.h process.h $(BUILDERS) makehelp.$(O): makehelp.c $(BUILDERS) malloc.$(O): malloc.c tfconfig.h tfdefs.h port.h signals.h malloc.h $(BUILDERS) myechod.$(O): myechod.c $(BUILDERS) output.$(O): output.c tfconfig.h tfdefs.h port.h tf.h malloc.h dstring.h \ globals.h varlist.h enumlist.h hooklist.h util.h pattern.h \ search.h tfio.h socket.h output.h attr.h macro.h tty.h \ variable.h expand.h parse.h opcodes.h keyboard.h cmdlist.h $(BUILDERS) pattern.$(O): pattern.c tfconfig.h tfdefs.h port.h tf.h malloc.h dstring.h \ globals.h varlist.h enumlist.h hooklist.h util.h pattern.h \ search.h tfio.h $(BUILDERS) process.$(O): process.c tfconfig.h tfdefs.h port.h tf.h malloc.h dstring.h \ globals.h varlist.h enumlist.h hooklist.h util.h pattern.h \ search.h tfio.h history.h world.h process.h socket.h \ expand.h cmdlist.h output.h signals.h $(BUILDERS) search.$(O): search.c tfconfig.h tfdefs.h port.h malloc.h search.h $(BUILDERS) signals.$(O): signals.c tfconfig.h tfdefs.h port.h tf.h malloc.h dstring.h \ globals.h varlist.h enumlist.h hooklist.h util.h pattern.h \ search.h tfio.h world.h process.h tty.h output.h \ signals.h variable.h expand.h $(BUILDERS) socket.$(O): socket.c tfconfig.h tfdefs.h port.h tf.h malloc.h dstring.h \ globals.h varlist.h enumlist.h hooklist.h util.h pattern.h \ search.h tfio.h tfselect.h history.h world.h socket.h \ output.h attr.h process.h macro.h keyboard.h cmdlist.h command.h \ signals.h variable.h $(BUILDERS) tfio.$(O): tfio.c tfconfig.h tfdefs.h port.h tf.h malloc.h dstring.h \ globals.h varlist.h enumlist.h hooklist.h util.h pattern.h \ search.h tfio.h tfselect.h output.h attr.h macro.h \ history.h signals.h variable.h keyboard.h expand.h cmdlist.h $(BUILDERS) timers.$(O): timers.c tfconfig.h tfdefs.h port.h malloc.h search.h $(BUILDERS) tty.$(O): tty.c tfconfig.h tfdefs.h port.h tf.h malloc.h dstring.h globals.h \ varlist.h enumlist.h hooklist.h util.h search.h tty.h output.h macro.h \ variable.h $(BUILDERS) util.$(O): util.c tfconfig.h tfdefs.h port.h tf.h malloc.h dstring.h \ globals.h varlist.h enumlist.h hooklist.h util.h pattern.h \ search.h tfio.h output.h tty.h signals.h variable.h \ parse.h opcodes.h $(BUILDERS) variable.$(O): variable.c tfconfig.h tfdefs.h port.h tf.h malloc.h dstring.h \ globals.h varlist.h enumlist.h hooklist.h util.h pattern.h \ search.h tfio.h output.h attr.h socket.h cmdlist.h \ process.h expand.h parse.h opcodes.h variable.h $(BUILDERS) world.$(O): world.c tfconfig.h tfdefs.h port.h tf.h malloc.h dstring.h \ globals.h varlist.h enumlist.h hooklist.h util.h pattern.h \ search.h tfio.h history.h world.h process.h macro.h \ cmdlist.h socket.h output.h $(BUILDERS) msdp-tok.c: msdp-tok.l msdp-tok.h flex -P msdp -o $@ msdp-tok.l