# Generated automatically from Makefile.in by configure. # Top-level makefile for Unix- and Cygwin-hosted interfaces to Xconq. # Copyright (C) 1991-1995, 1998-2000 Stanley T. Shebs. # Xconq 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. prefix = /usr/local exec_prefix = $(prefix) bindir = $(exec_prefix)/bin libdir = $(exec_prefix)/lib datadir = $(prefix)/share/xconq mandir = $(prefix)/man man6dir = $(mandir)/man6 infodir = $(prefix)/info docdir = $(datadir)/doc appdefaultsdir = /usr/lib/X11/app-defaults gamelibdir = $(datadir)/lib imagesdir = $(datadir)/images scoresdir = /var/games/xconq srcdir = . GAMEUID = root GAMEGRP = games GAMEPERM = 02755 DIRPERM = 0775 FILEPERM = 0664 SHELL = /bin/sh INSTALL = install -c INSTALL_PROGRAM = $(INSTALL) INSTALL_DATA = $(INSTALL) -m 644 SELFILE = SelFile SUBDIRS = kernel $(SELFILE) x11 curses tcl tk tcltk lib images doc test misc CC = cc RANLIB = ranlib AR = ar AR_FLAGS = rcu ALLTARGET = all-xconq INSTALLTARGET = install-xconq # Host and target-dependent makefile fragments come in here. #### # End of host and target-dependent makefile fragments FLAGS_TO_PASS = \ "prefix=$(prefix)" \ "exec_prefix=$(exec_prefix)" \ "bindir=$(bindir)" \ "appdefaultsdir=$(appdefaultsdir)" \ "scoresdir=$(scoresdir)" \ "AR=$(AR)" \ "AR_FLAGS=$(AR_FLAGS)" \ "CC=$(CC)" \ "CFLAGS=$(CFLAGS)" \ "REQD_CFLAGS=$(REQD_CFLAGS)" \ "CXX=$(CXX)" \ "CXXFLAGS=$(CXXFLAGS)" \ "RANLIB=$(RANLIB)" \ "MAKEINFO=$(MAKEINFO)" \ "INSTALL=$(INSTALL)" \ "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ "INSTALL_DATA=$(INSTALL_DATA)" all: $(ALLTARGET) all-xconq all-wconq all-tcltk all-SelFile all-kernel all-cconq: # Target for building Unix X11 Xconq. all-xconq: all-kernel all-tcltk all-tcl all-tk @dir=x11; \ if [ -f ./$${dir}/Makefile ] ; then \ r=`pwd`; export r; \ srcroot=`cd $(srcdir); pwd`; export srcroot; \ (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \ else \ true; \ fi all-ximfapp: all-kernel all-tcltk all-tcl all-tk @dir=x11; \ if [ -f ./$${dir}/Makefile ] ; then \ r=`pwd`; export r; \ srcroot=`cd $(srcdir); pwd`; export srcroot; \ (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) ximfapp); \ else \ true; \ fi # Target for building Windows Xconq. all-wconq: all-kernel all-tcltk all-tcl all-tk @dir=win; \ if [ -f ./$${dir}/Makefile ] ; then \ r=`pwd`; export r; \ srcroot=`cd $(srcdir); pwd`; export srcroot; \ (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \ else \ true; \ fi all-tcltk: @dir=`echo $@ | sed -e 's/all-//'`; \ if [ -f ./$${dir}/Makefile ] ; then \ r=`pwd`; export r; \ srcroot=`cd $(srcdir); pwd`; export srcroot; \ (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \ else \ true; \ fi all-kernel: @dir=`echo $@ | sed -e 's/all-//'`; \ if [ -f ./$${dir}/Makefile ] ; then \ r=`pwd`; export r; \ srcroot=`cd $(srcdir); pwd`; export srcroot; \ (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \ else \ true; \ fi all-SelFile: @dir=`echo $@ | sed -e 's/all-//'`; \ if [ -f ./$${dir}/Makefile ] ; then \ r=`pwd`; export r; \ srcroot=`cd $(srcdir); pwd`; export srcroot; \ (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \ else \ true; \ fi all-tcl: @dir=`echo $@ | sed -e 's/all-//'`; \ if [ -f ./$${dir}/Makefile ] ; then \ r=`pwd`; export r; \ srcroot=`cd $(srcdir); pwd`; export srcroot; \ (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \ else \ true; \ fi all-tk: @dir=`echo $@ | sed -e 's/all-//'`; \ if [ -f ./$${dir}/Makefile ] ; then \ r=`pwd`; export r; \ srcroot=`cd $(srcdir); pwd`; export srcroot; \ (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \ else \ true; \ fi all-cconq: all-kernel @dir=curses; \ if [ -f ./$${dir}/Makefile ] ; then \ r=`pwd`; export r; \ srcroot=`cd $(srcdir); pwd`; export srcroot; \ (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \ else \ true; \ fi installcheck: check: force @if [ -f test/Makefile ]; then \ rootme=`pwd`; export rootme; \ cd test; \ $(MAKE) $(TARGET_FLAGS_TO_PASS) check; \ else true; fi info dvi install-info clean-info: force @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do # Note that "make install" does not need to work for Windows, because # we use a different procedure to make a binary package. install: all install-only install-only: install-dirs @$(MAKE) $(FLAGS_TO_PASS) DO=install-only "DODIRS=$(SUBDIRS)" subdir_do install-xconq: all-xconq install-lib install-images install-dirs @dir=x11; \ if [ -f ./$${dir}/Makefile ] ; then \ r=`pwd`; export r; \ srcroot=`cd $(srcdir); pwd`; export srcroot; \ (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install-only); \ else \ true; \ fi install-cconq: all-cconq install-lib install-dirs @dir=curses; \ if [ -f ./$${dir}/Makefile ] ; then \ r=`pwd`; export r; \ srcroot=`cd $(srcdir); pwd`; export srcroot; \ (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install-cconq); \ else \ true; \ fi install-lib: install-dirs @dir=lib; \ if [ -f ./$${dir}/Makefile ] ; then \ r=`pwd`; export r; \ srcroot=`cd $(srcdir); pwd`; export srcroot; \ (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install-only); \ else \ true; \ fi install-images: install-dirs @dir=images; \ if [ -f ./$${dir}/Makefile ] ; then \ r=`pwd`; export r; \ srcroot=`cd $(srcdir); pwd`; export srcroot; \ (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install-only); \ else \ true; \ fi MAKEDIRS= \ $(prefix) \ $(exec_prefix) \ $(bindir) \ $(datadir) \ $(gamelibdir) \ $(imagesdir) \ $(scoresdir) \ $(mandir) \ $(man6dir) \ $(infodir) .PHONY: install-dirs install-dirs: @for i in $(MAKEDIRS) ; do \ echo Making $$i... ; \ if [ ! -d $$i ] ; then \ if mkdir -p $$i ; then \ true ; \ else \ exit 1 ; \ fi ; \ else \ true ; \ fi ; \ done chown $(GAMEUID) $(scoresdir) chgrp $(GAMEGRP) $(scoresdir) chmod $(DIRPERM) $(scoresdir) clean: @$(MAKE) $(FLAGS_TO_PASS) DO=clean "DODIRS=$(SUBDIRS)" subdir_do distclean: clean @$(MAKE) $(FLAGS_TO_PASS) DO=distclean "DODIRS=$(SUBDIRS)" subdir_do rm -f Makefile config.status extraclean: distclean rm -f *~* .*~* #* %* rm -f */*~* */.*~* */#* */%* rm -f Makefile config.status realclean: distclean @$(MAKE) $(FLAGS_TO_PASS) DO=realclean "DODIRS=$(SUBDIRS)" subdir_do rm -f Makefile subdir_do: force @srcroot=`cd $(srcdir); pwd`; export srcroot; \ for i in $(DODIRS); do \ if [ -f ./$$i/Makefile ] ; then \ if (cd ./$$i; \ $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \ else exit 1 ; fi ; \ else true ; fi ; \ done Makefile: Makefile.in $(host_makefile_frag) $(target_makefile_frag) $(SHELL) ./config.status force: