shithub: scc

ref: 9332f34cf7bae72b9ccaa290cae5a1eec3f34f3d
dir: /src/libc/Makefile.libc/

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

LIBC   = $(LIBCDIR)/libc.a
CRT    = $(LIBCDIR)/crt.o
TARGET = $(LIBC) $(CRT)

all: $(TARGET)

$(LIBC): $(OBJS)
	mklib -o $@ $?

$(CRT): arch/$(ARCH)/$(SYS)/crt.o
	cp arch/$(ARCH)/$(SYS)/crt.o $@