shithub: scc

ref: 8e212d00e17c23b79489215d6cc41da22381a550
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