shithub: scc

ref: 0c28f70ffebef1de8db8339c56487f8dfe6a9e58
dir: /lib/c/target/script/common.mk/

View raw version
SYSASM = $(SYSCALL:.o=.s)
TARGET = $(LIBDIR)/$(SYSNAME)/libc.a

all: $(TARGET)

$(TARGET): $(LIBOBJ) $(SYSOBJ) $(SYSCALL)
	$(AR) $(ARFLAGS) $@ $?
	ranlib $@

clean:
	rm -f *.o *.a
	rm -f $(SYSASM)
	rm -f $(TARGET)

$(SYSASM): syscall.lst
	../script/amd64-sysv.sh

dep:
	../script/syscall.sh