shithub: scc

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