shithub: scc

ref: 73b180769110ca05065017952173233ad8bb1c34
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)

clean: rm-lst
	$(FORALL)