shithub: scc

ref: 0a859705bf32bb1462671e03b2b8e932f3d287e4
dir: /src/libc/arch/amd64/linux/Makefile/

View raw version
.POSIX:

PROJECTDIR = ../../../../..

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

GENOBJS =\
	__sigaction.$O\
	_close.$O\
	_exit.$O\
	_getpid.$O\
	_getrusage.$O\
	_gettimeofday.$O\
	_kill.$O\
	_lseek.$O\
	_open.$O\
	_read.$O\
	_sigreturn.$O\
	_sys_brk.$O\
	_unlink.$O\
	_write.$O\

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

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

all: $(OBJS) $(CRT)

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

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

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

include deps.mk