shithub: scc

ref: c79199da3e3565e28c2220a8474712a9fabc76e4
dir: /src/libc/Makefile/

View raw version
.POSIX:

PROJECTDIR = ../..
DIRS =\
	assert\
	ctype\
	locale\
	stdio\
	stdlib\
	string\
	time\
	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 $@