shithub: scc

ref: 60e5ff036844491e3ad78a4254171c218dec98c9
dir: /src/Makefile/

View raw version
.POSIX:

PROJECTDIR = ..
include $(PROJECTDIR)/scripts/rules.mk

TOOLS = cc1 cc2 ld as nm objdump
LIBS  = libscc libcoff32
DIRS  = $(TOOLS) $(LIBS) libc libcrt

all: $(TOOLS) crt

crt: libcrt libc $(TOOLS)

$(TOOLS): $(LIBS)

$(DIRS): FORCE
	+@cd $@ && $(MAKE)

dep clean:
	$(FORALL)