shithub: scc

ref: dd4c403f9a3e673c0d233ba39c20960f11b104df
dir: /libc/src/sys/qbe-linux/Makefile/

View raw version
# See LICENSE file for copyright and license details.
.POSIX:

include ../../../../config.mk

OBJ_GEN = _read.o _write.o _open.o _close.o _lseek.o _brk.o\
          _rt_sigaction.o _getpid.o _Exit.o _kill.o

ASM_GEN = $(OBJ_GEN:.o=.s)
OBJ = $(OBJ_GEN)

all: $(OBJ) system.mk

system.mk: Makefile
	echo '$$(SYSOBJ)' = $(OBJ) > system.mk

$(ASM_GEN): syscall.lst
	awk -f syscall.awk < syscall.lst

clean:
	rm -f *.o
	rm -f $(ASM_GEN)