shithub: scc

ref: fcee86a4008c4adbda7b9a6a1f9bc41c05bc092e
dir: /src/libc/Makefile/

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

TARGET = $(CRTDIR)/$(ARCH)-$(SYS)/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
	$(RL) $(RANLIBFLAGS) $@

clean:
	$(FORALL)
	rm -f objlst