shithub: scc

ref: 8f0953979283c0b604bc4ed5e90ed20c870618fe
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)