shithub: scc

ref: 878d46d965b83832a939cc46707aa6f3b7e5d30e
dir: /src/libc/arch/ppc/linux/Makefile/

View raw version
.POSIX:

PROJECTDIR = ../../../../..
RULES = user

include $(PROJECTDIR)/scripts/rules.mk
include ../../../rules.mk

GENOBJS =\
	_access.$O\
	_close.$O\
	_creat.$O\
	_execve.$O\
	_exit.$O\
	_fork.$O\
	_getpid.$O\
	_kill.$O\
	_link.$O\
	_open.$O\
	_read.$O\
	_sys_brk.$O\
	_unlink.$O\
	_write.$O\
	_wait4.$O\

OBJS =\
	$(GENOBJS)\
	_cerrno.o\
	_sys_errlist.o\

GENSRC = $(GENOBJS:.o=.s)

all: $(CRT) $(OBJS)

$(CRT): ../crt-posix.s

$(GENSRC): syscall.lst
	./gensys.sh $(@:.s=)

clean:
	rm -f $(GENSRC) _sys_errlist.c

include deps.mk