shithub: scc

ref: 76365130ccb3a770afab59bb45361a2cf21752f2
dir: /src/libc/Makefile/

View raw version
.POSIX:

PROJECTDIR = ../..
DIRS =\
	assert\
	ctype\
	locale\
	stdio\
	stdlib\
	string\
	time\
	wchar\
	arch\

include $(PROJECTDIR)/scripts/rules.mk
include rules.mk
include objs/$(ARCH)-$(SYS).mk

NODEP = 1
TARGET = $(LIBC) $(BINDIR)/gcc-scc

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

$(LIBC): $(OBJS)
	$(AR) $(PROJ_ARFLAGS) $(LIBC) $?
	$(RL) $(PROJ_RLFLAGS) $(LIBC)

$(BINDIR)/gcc-scc: gcc-scc.sh
	cp gcc-scc.sh $@