shithub: scc

ref: f62d7c3902ca10bd47531605d41948c88ade377b
dir: /src/libc/arch/i386/linux/Makefile/

View raw version
.POSIX:
PROJECTDIR =../../../../..
include $(PROJECTDIR)/scripts/rules.mk
include ../../../rules.mk

GENOBJS =\
	_Exit.$O\
	_close.$O\
	_open.$O\
	_read.$O\
	_write.$O\
	_lseek.$O\
	_brk.$O\
	_sigaction.$O\
	_getpid.$O\
	_kill.$O\

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

OBJS =\
	$(GENOBJS)\
	signal.$O\
	raise.$O\
	_getheap.$O\
	_cerrno.$O\
	signal.$O

all: $(LIBC) $(CRT)

$(LIBCLST): $(OBJS)
	$(MKLST)

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

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

dep: inc-dep

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

include deps.mk