shithub: scc

ref: fd277d39d846ec05a4940fd7f7f95333900db1c9
dir: /src/libc/arch/ppc/linux/Makefile/

View raw version
.POSIX:

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

GENOBJS =\
	_Exit.$O\
	_read.$O\
	_write.$O\
	_open.$O\
	_close.$O\
	_waitpid.$O\
	_create.$O\
	_link.$O\
	_unlink.$O\
	_getpid.$O\
	_brk.$O\

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

OBJS  = \
	$(GENOBJS)\
	_cerrno.$O\

# Rules

all: $(OBJS) $(CRT)

crt.$O: ../crt-posix.s

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

clean:
	rm -f $(GENSRC)

include deps.mk