shithub: scc

ref: 4eaac6bfb11cc84259e8b418d4babffdf1c637eb
dir: /lib/c/Makefile/

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

TARGET = $(PROJECTDIR)/lib/libc.a
DIRS = arch\
       assert\
       ctype\
       locale\
       stdio\
       stdlib\
       string\
       time\

all: $(DIRS)
	+@$(MAKE) $(TARGET)

$(DIRS): FORCE
	+@cd $@ && $(MAKE)

objlst: FORCE
	./mklst $(TARGET)

$(TARGET): objlst
	xargs $(AR) $(ARFLAGS) $@ < objlst

clean:
	$(FORALL)
	rm -f objlst