mostly minor makefile cleanup, but of note: added archlinks concept

This commit is contained in:
lindes 2005-07-30 22:26:11 +00:00
parent d9bf7098ca
commit cfe7ba5339
2 changed files with 15 additions and 6 deletions

View File

@ -34,11 +34,20 @@ PROGRAMS = archbuild
default: $(PROGRAMS)
test: archbuild
test: $(PROGRAMS)
./ttyload -i 1
archbuild:
make ttyload archtest ARCH=`uname -s`
# which architechtures are just symlinks?
ARCHLINKS = \
arch/Darwin \
${NULL}
# Some architechtures mimic eachother:
archlinks:
ln -fs FreeBSD arch/Darwin
archbuild: archlinks
make archtest ttyload ARCH=`uname -s`
ttyload.c: ttyload.h Version
touch ttyload.c
@ -54,10 +63,10 @@ clean:
rm -f *.o $(OBJS) core a.out
clobber: clean
rm -f loader ttyload archtest
rm -f loader ttyload archtest $(ARCHLINKS)
# install, gently. not much to it:
install: archbuild
install: $(PROGRAMS)
/bin/cp ttyload ${INSTALLDIR}/ttyload
# because different systems' make have different behaviors on how they

View File

@ -1 +1 @@
0.5-pre1
0.5-pre2