shithub: scc

ref: 02c2ed32fab95df4ce2ea9be16f8d40370bde268
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