Makefile patch contributed by Greg King:
I added the "MAKEOPTS=" to the top-level "gcc.mak" that he wants, and I changed the tool source tree's top-level make-file so that it supports parallel building. (I added a rule that builds the common library before building anything else.) git-svn-id: svn://svn.cc65.org/cc65/trunk@4497 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -1,21 +1,26 @@
|
||||
#
|
||||
# gcc Makefile for the program sources
|
||||
#
|
||||
|
||||
SUBDIRS = \
|
||||
common \
|
||||
ar65 \
|
||||
ca65 \
|
||||
cc65 \
|
||||
chrcvt \
|
||||
cl65 \
|
||||
co65 \
|
||||
da65 \
|
||||
grc \
|
||||
ld65 \
|
||||
PROGS = \
|
||||
ar65 \
|
||||
ca65 \
|
||||
cc65 \
|
||||
chrcvt \
|
||||
cl65 \
|
||||
co65 \
|
||||
da65 \
|
||||
grc \
|
||||
ld65 \
|
||||
od65
|
||||
|
||||
.PHONY: all dist clean zap
|
||||
all dist clean zap:
|
||||
for i in $(SUBDIRS); do $(MAKE) -C $$i -f make/gcc.mak $@ || exit $$?; done
|
||||
SUBDIRS = common $(PROGS)
|
||||
|
||||
.PHONY: all dist clean zap $(SUBDIRS)
|
||||
all dist clean zap: $(SUBDIRS)
|
||||
|
||||
# Finish building the common library before allowing parallel makes.
|
||||
$(PROGS): common
|
||||
|
||||
$(SUBDIRS):
|
||||
$(MAKE) -C $@ -f make/gcc.mak $(MAKECMDGOALS)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user