shithub: scc

ref: fb8dbbcf81b73f635d9269048a6a1e09c029c1ed
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 $@