shithub: drawcpu

ref: 6ca7a7fcb03e0ef651368e5a782b29c392e16149
dir: /kern/Makefile/

View raw version
ROOT=..
include ../Make.config
LIB=libkern.a

OFILES=\
	alloc.$O\
	allocb.$O\
	arm.$O\
	chan.$O\
	data.$O\
	dev.$O\
	devcap.$O\
	devcmd.$O\
	devcons.$O\
	devdup.$O\
	devenv.$O\
	devfs-$(OS).$O\
	devlfd-$(OS).$O\
	devip-$(OS).$O\
	devip.$O\
	devmnt.$O\
	devpipe.$O\
	devproc.$O\
	devroot.$O\
	devsrv.$O\
	devssl.$O\
	devtab.$O\
	devtls.$O\
	dirread.$O\
	error.$O\
	fpa.$O\
	getwd.$O\
	memchr.$O\
	parse.$O\
	pgrp.$O\
	postnote.$O\
	procinit.$O\
	rwlock.$O\
	seg.$O\
	sema.$O\
	sleep.$O\
	stub.$O\
	syscall.$O\
	sysfile.$O\
	sysproc.$O\
	time.$O\
	qio.$O\
	qlock.$O\
	wait.$O\
	waserror.$O\
	vfp.$O\
	$(OS).$O

default: $(LIB)
$(LIB): $(OFILES)
	$(AR) r $(LIB) $(OFILES)
	$(RANLIB) $(LIB)

%.$O: %.c
	$(CC) $(CFLAGS) -I../$(OS)-$(ARCH) $*.c