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
|
# $Id: Makefile,v 1.1 2005-09-18 22:05:31 dhmunro Exp $
SHELL=/bin/sh
MAKE=make
include ../Make.cfg
SUBDIRS=hacks $(PLAY_DIRS) any
ALLDIRS=hacks win unix x11 any
all: libplay
# the library is actually built from subdirectories (in order)
libplay:
@for d in $(SUBDIRS); do ( cd $$d; $(MAKE); ); done
config:
@for d in $(PLAY_DIRS); do ( cd $$d; $(MAKE) TGT=$(TGT) config; ); done
numfmt: libplay
cd any; $(MAKE) numfmt
test2d: libplay
cd any; $(MAKE) test2d
clean:: cleantop
@for dir in $(ALLDIRS); do ( cd $$dir; $(MAKE) clean; ); done
distclean:: distcleantop
@for dir in $(ALLDIRS); do ( cd $$dir; $(MAKE) distclean; ); done
cleantop:
rm -f *~ '#'* *.o *.a core* *.core a.out hack*.h playwin.h
distcleantop: cleantop
|