shithub: scc

ref: 4f0bf48999137e2429bab02829f1d34373d3f67a
dir: /src/libc/arch/amd64/linux/Makefile/

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

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

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

OBJS  = \
	$(GENOBJS)\
	getenv.$O\
	raise.$O\
	signal.$O\
	time.$O\
	clock.$O\
	_cerrno.$O\
	_getheap.$O\
	_tzone.$O\
	_sys_errlist.$O\

# Rules

all: $(LIBC) $(CRT)

$(LIBC): $(OBJS)
	$(MKLST)

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

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

dep: inc-dep

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

include deps.mk