shithub: scc

ref: 4f0bf48999137e2429bab02829f1d34373d3f67a
dir: /src/libc/Makefile/

View raw version
.POSIX:
PROJECTDIR =../..
include $(PROJECTDIR)/scripts/rules.mk
include rules.mk

DIRS =\
	arch\
	assert\
	ctype\
	locale\
	stdio\
	stdlib\
	string\
	time\

all: $(LIBC)

$(LIBC): $(DIRS)
	mklib -o $@ `cat $(LIBCLST)`;\

$(DIRS): rm-lst
	+@cd $@ && $(MAKE)

rm-lst: FORCE
	rm -f $(LIBCLST)

dep:
	$(FORALL)

clean: rm-lst
	$(FORALL)