shithub: scc

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