shithub: scc

ref: 7620707229d954e89c6462ee631b93e68a7ac7c1
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): $(LIBCLST)
	mklib -o $@ `cat $(LIBCLST)`

$(LIBCLST): $(DIRS)

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

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

dep:
	$(FORALL)

clean: rm-lst
	$(FORALL)