shithub: scc

ref: 272bc8e3488ce5c7220ebf7cc731a04211b6dba4
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)