z88dk-utilities
Paul F. Johnson
paul at all-the-johnsons.co.uk
Thu Sep 15 12:33:41 UTC 2005
Hi,
I've broken off the binary utilities from z88dk into it's own package
cunningly called z88dk-utils. I've got the spec file happy, but am
having problems with the make file.
The file is this
prefix = /usr
DIRTARGETS:src/abc80 src/Ace src/aquarius src/ar src/bin2var \
src/c128 src/cpc src/font src/generic \
src/hex src/msx src/mz src/nascom src/oz src/rex src/sam \
src/sprites src/svi src/z88 src/zx src/zx81
all: $(DIRTARGETS:%=%/all)
.PHONY: $(DIRTARGETS:%=%/all)
%/all:
$(MAKE) -C src/$*
$(MAKE) -C src/$* PREFIX=`pwd` install
install:
mkdir -p -m 755 $(prefix)/bin
cd src/$*; $(MAKE) PREFIX=$(prefix) install
clean: clean-bins
clean-bins:
cd src/$*; $(MAKE) clean
All the source directories are in /src as the makefile suggests and an
example makefile from one of these is a simple affair
OBJS = bin2bas.o
CC = gcc
all: bin2bas
bin2bas:$(OBJS)
${CC} -o bin2bas ${CFLAGS} ${CCOPT} ${OBJS}
install:
install bin2bas $(PREFIX)/bin/
clean:
$(RM) bin2bas bin2bas.o core
#Dependencies
bin2bas.o: bin2bas.c
If I compile from the src/abc80 directory, the makefile works fine. If I
compile from the z88dk-utils root directory, all I get is nothing to do
for `all'.
The makefile was a hacked together one from the original z88dk package
with the individual makefiles ones I've done.
Can anyone point me in the right direction for fixing this recursion
problem?
TTFN
Paul
(z88dk, Fuse and the fuse associated libs are all still waiting on
approval - hint, hint, hint...)
--
"Logic, my dear Zoe, is merely the ability to be wrong with authority" -
Dr Who
More information about the fedora-extras-list
mailing list