# Makefile for lib/os/minix/syslib.

CC	= false
ARCH	= eniac
CFLAGS	= -O9 -D_MINIX
CC1	= $(CC) -m$(ARCH) $(CFLAGS) -c

LIBSYS	= /usr/lib/$(CC)/$(ARCH)/libsys.a

SYSOBJ	= \
	$(LIBSYS)(_taskcall.o) \
	$(LIBSYS)(sys_abort.o) \
	$(LIBSYS)(sys_adj_data.o) \
	$(LIBSYS)(sys_adj_stack.o) \
	$(LIBSYS)(sys_copy.o) \
	$(LIBSYS)(sys_core.o) \
	$(LIBSYS)(sys_delmap.o) \
	$(LIBSYS)(sys_dupseg.o) \
	$(LIBSYS)(sys_exec.o) \
	$(LIBSYS)(sys_findproc.o) \
	$(LIBSYS)(sys_fork.o) \
	$(LIBSYS)(sys_getmap.o) \
	$(LIBSYS)(sys_getsig.o) \
	$(LIBSYS)(sys_getsp.o) \
	$(LIBSYS)(sys_kill.o) \
	$(LIBSYS)(sys_newmap.o) \
	$(LIBSYS)(sys_nice.o) \
	$(LIBSYS)(sys_oldsig.o) \
	$(LIBSYS)(sys_puts.o) \
	$(LIBSYS)(sys_sendsig.o) \
	$(LIBSYS)(sys_sigreturn.o) \
	$(LIBSYS)(sys_swapoff.o) \
	$(LIBSYS)(sys_sysctl.o) \
	$(LIBSYS)(sys_sysenv.o) \
	$(LIBSYS)(sys_times.o) \
	$(LIBSYS)(sys_trace.o) \
	$(LIBSYS)(sys_umap.o) \
	$(LIBSYS)(sys_vm_lock.o) \
	$(LIBSYS)(sys_vm_unlock.o) \
	$(LIBSYS)(sys_xit.o) \

$(LIBSYS):	$(SYSOBJ)
	$(CC) -c.a -o $@ *.o
	rm *.o

$(LIBSYS)(_taskcall.o):	_taskcall.c
	$(CC1) _taskcall.c

$(LIBSYS)(sys_abort.o):	sys_abort.c
	$(CC1) sys_abort.c

$(LIBSYS)(sys_adj_data.o):	sys_adj_data.c
	$(CC1) sys_adj_data.c

$(LIBSYS)(sys_adj_stack.o):	sys_adj_stack.c
	$(CC1) sys_adj_stack.c

$(LIBSYS)(sys_copy.o):	sys_copy.c
	$(CC1) sys_copy.c

$(LIBSYS)(sys_core.o):	sys_core.c
	$(CC1) sys_core.c

$(LIBSYS)(sys_delmap.o):	sys_delmap.c
	$(CC1) sys_delmap.c

$(LIBSYS)(sys_dupseg.o):	sys_dupseg.c
	$(CC1) sys_dupseg.c

$(LIBSYS)(sys_exec.o):	sys_exec.c
	$(CC1) sys_exec.c

$(LIBSYS)(sys_findproc.o):	sys_findproc.c
	$(CC1) sys_findproc.c

$(LIBSYS)(sys_fork.o):	sys_fork.c
	$(CC1) sys_fork.c

$(LIBSYS)(sys_getmap.o):	sys_getmap.c
	$(CC1) sys_getmap.c

$(LIBSYS)(sys_getsig.o):	sys_getsig.c
	$(CC1) sys_getsig.c

$(LIBSYS)(sys_getsp.o):	sys_getsp.c
	$(CC1) sys_getsp.c

$(LIBSYS)(sys_kill.o):	sys_kill.c
	$(CC1) sys_kill.c

$(LIBSYS)(sys_newmap.o):	sys_newmap.c
	$(CC1) sys_newmap.c

$(LIBSYS)(sys_nice.o):	sys_nice.c
	$(CC1) sys_nice.c

$(LIBSYS)(sys_oldsig.o):	sys_oldsig.c
	$(CC1) sys_oldsig.c

$(LIBSYS)(sys_puts.o):	sys_puts.c
	$(CC1) sys_puts.c

$(LIBSYS)(sys_sendsig.o):	sys_sendsig.c
	$(CC1) sys_sendsig.c

$(LIBSYS)(sys_sigreturn.o):	sys_sigreturn.c
	$(CC1) sys_sigreturn.c

$(LIBSYS)(sys_swapoff.o):	sys_swapoff.c
	$(CC1) sys_swapoff.c

$(LIBSYS)(sys_sysctl.o):	sys_sysctl.c
	$(CC1) sys_sysctl.c

$(LIBSYS)(sys_sysenv.o):	sys_sysenv.c
	$(CC1) sys_sysenv.c

$(LIBSYS)(sys_times.o):	sys_times.c
	$(CC1) sys_times.c

$(LIBSYS)(sys_trace.o):	sys_trace.c
	$(CC1) sys_trace.c

$(LIBSYS)(sys_umap.o):	sys_umap.c
	$(CC1) sys_umap.c

$(LIBSYS)(sys_vm_lock.o):	sys_vm_lock.c
	$(CC1) sys_vm_lock.c

$(LIBSYS)(sys_vm_unlock.o):	sys_vm_unlock.c
	$(CC1) sys_vm_unlock.c

$(LIBSYS)(sys_xit.o):	sys_xit.c
	$(CC1) sys_xit.c
