# Makefile for lib/os/minix/posix.

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

LIBRARY	= /usr/lib/$(CC)/$(ARCH)/libc.a
MAN	= /usr/man

all:	$(LIBRARY) man

OBJECTS	= \
	$(LIBRARY)(_cfgetispeed.o) \
	$(LIBRARY)(_cfgetospeed.o) \
	$(LIBRARY)(_cfsetispeed.o) \
	$(LIBRARY)(_cfsetospeed.o) \
	$(LIBRARY)(_closedir.o) \
	$(LIBRARY)(_dup.o) \
	$(LIBRARY)(_dup2.o) \
	$(LIBRARY)(_execl.o) \
	$(LIBRARY)(_execle.o) \
	$(LIBRARY)(_execlp.o) \
	$(LIBRARY)(_execv.o) \
	$(LIBRARY)(_execvp.o) \
	$(LIBRARY)(_fpathconf.o) \
	$(LIBRARY)(_getcwd.o) \
	$(LIBRARY)(_getgrent.o) \
	$(LIBRARY)(_getpwent.o) \
	$(LIBRARY)(_isatty.o) \
	$(LIBRARY)(_opendir.o) \
	$(LIBRARY)(_pathconf.o) \
	$(LIBRARY)(_pconf.o) \
	$(LIBRARY)(_readdir.o) \
	$(LIBRARY)(_rewinddir.o) \
	$(LIBRARY)(_sigset.o) \
	$(LIBRARY)(_sleep.o) \
	$(LIBRARY)(_system.o) \
	$(LIBRARY)(_tcdrain.o) \
	$(LIBRARY)(_tcflow.o) \
	$(LIBRARY)(_tcflush.o) \
	$(LIBRARY)(_tcgetattr.o) \
	$(LIBRARY)(_tcgetpgrp.o) \
	$(LIBRARY)(_tcsendbreak.o) \
	$(LIBRARY)(_tcsetattr.o) \
	$(LIBRARY)(_tcsetpgrp.o) \
	$(LIBRARY)(_uname.o) \
	$(LIBRARY)(ctermid.o) \
	$(LIBRARY)(cuserid.o) \
	$(LIBRARY)(getlogin.o) \
	$(LIBRARY)(sysconf.o) \
	$(LIBRARY)(ttyname.o) \
	$(LIBRARY)(vectab.o) \

$(LIBRARY):	$(OBJECTS)
	$(CC) -c.a -o $@ *.o
	rm *.o

$(LIBRARY)(_cfgetispeed.o):	_cfgetispeed.c
	$(CC1) _cfgetispeed.c

$(LIBRARY)(_cfgetospeed.o):	_cfgetospeed.c
	$(CC1) _cfgetospeed.c

$(LIBRARY)(_cfsetispeed.o):	_cfsetispeed.c
	$(CC1) _cfsetispeed.c

$(LIBRARY)(_cfsetospeed.o):	_cfsetospeed.c
	$(CC1) _cfsetospeed.c

$(LIBRARY)(_closedir.o):	_closedir.c
	$(CC1) _closedir.c

$(LIBRARY)(_dup.o):	_dup.c
	$(CC1) _dup.c

$(LIBRARY)(_dup2.o):	_dup2.c
	$(CC1) _dup2.c

$(LIBRARY)(_execl.o):	_execl.c
	$(CC1) _execl.c

$(LIBRARY)(_execle.o):	_execle.c
	$(CC1) _execle.c

$(LIBRARY)(_execlp.o):	_execlp.c
	$(CC1) _execlp.c

$(LIBRARY)(_execv.o):	_execv.c
	$(CC1) _execv.c

$(LIBRARY)(_execvp.o):	_execvp.c
	$(CC1) _execvp.c

$(LIBRARY)(_fpathconf.o):	_fpathconf.c
	$(CC1) _fpathconf.c

$(LIBRARY)(_getcwd.o):	_getcwd.c
	$(CC1) _getcwd.c

$(LIBRARY)(_getgrent.o):	_getgrent.c
	$(CC1) _getgrent.c

$(LIBRARY)(_getpwent.o):	_getpwent.c
	$(CC1) _getpwent.c

$(LIBRARY)(_isatty.o):	_isatty.c
	$(CC1) _isatty.c

$(LIBRARY)(_opendir.o):	_opendir.c
	$(CC1) _opendir.c

$(LIBRARY)(_pathconf.o):	_pathconf.c
	$(CC1) _pathconf.c

$(LIBRARY)(_pconf.o):	_pconf.c
	$(CC1) _pconf.c

$(LIBRARY)(_readdir.o):	_readdir.c
	$(CC1) _readdir.c

$(LIBRARY)(_rewinddir.o):	_rewinddir.c
	$(CC1) _rewinddir.c

$(LIBRARY)(_sigset.o):	_sigset.c
	$(CC1) _sigset.c

$(LIBRARY)(_sleep.o):	_sleep.c
	$(CC1) _sleep.c

$(LIBRARY)(_system.o):	_system.c
	$(CC1) _system.c

$(LIBRARY)(_tcdrain.o):	_tcdrain.c
	$(CC1) _tcdrain.c

$(LIBRARY)(_tcflow.o):	_tcflow.c
	$(CC1) _tcflow.c

$(LIBRARY)(_tcflush.o):	_tcflush.c
	$(CC1) _tcflush.c

$(LIBRARY)(_tcgetattr.o):	_tcgetattr.c
	$(CC1) _tcgetattr.c

$(LIBRARY)(_tcgetpgrp.o):	_tcgetpgrp.c
	$(CC1) _tcgetpgrp.c

$(LIBRARY)(_tcsendbreak.o):	_tcsendbreak.c
	$(CC1) _tcsendbreak.c

$(LIBRARY)(_tcsetattr.o):	_tcsetattr.c
	$(CC1) _tcsetattr.c

$(LIBRARY)(_tcsetpgrp.o):	_tcsetpgrp.c
	$(CC1) _tcsetpgrp.c

$(LIBRARY)(_uname.o):	_uname.c
	$(CC1) _uname.c

$(LIBRARY)(ctermid.o):	ctermid.c
	$(CC1) ctermid.c

$(LIBRARY)(cuserid.o):	cuserid.c
	$(CC1) cuserid.c

$(LIBRARY)(getlogin.o):	getlogin.c
	$(CC1) getlogin.c

$(LIBRARY)(sysconf.o):	sysconf.c
	$(CC1) sysconf.c

$(LIBRARY)(ttyname.o):	ttyname.c
	$(CC1) ttyname.c

$(LIBRARY)(vectab.o):	vectab.c
	$(CC1) vectab.c

man:	\
	$(MAN)/man2/dup.2 \
	$(MAN)/man3/directory.3 \
	$(MAN)/man3/execl.3 \
	$(MAN)/man3/getcwd.3 \
	$(MAN)/man3/getgrent.3 \
	$(MAN)/man3/getlogin.3 \
	$(MAN)/man3/getpwent.3 \
	$(MAN)/man3/sigset.3 \
	$(MAN)/man3/sleep.3 \
	$(MAN)/man3/system.3 \
	$(MAN)/man3/termios.3 \
	$(MAN)/man3/ttyname.3 \

$(MAN)/man2/dup.2:	dup.2
	install -lc $? $@

$(MAN)/man3/directory.3:	directory.3
	install -lc $? $@

$(MAN)/man3/execl.3:	execl.3
	install -lc $? $@

$(MAN)/man3/getcwd.3:	getcwd.3
	install -lc $? $@

$(MAN)/man3/getgrent.3:	getgrent.3
	install -lc $? $@

$(MAN)/man3/getlogin.3:	getlogin.3
	install -lc $? $@

$(MAN)/man3/getpwent.3:	getpwent.3
	install -lc $? $@

$(MAN)/man3/sigset.3:	sigset.3
	install -lc $? $@

$(MAN)/man3/sleep.3:	sleep.3
	install -lc $? $@

$(MAN)/man3/system.3:	system.3
	install -lc $? $@

$(MAN)/man3/termios.3:	termios.3
	install -lc $? $@

$(MAN)/man3/ttyname.3:	ttyname.3
	install -lc $? $@

#
# $PchId: Makefile,v 1.5 1995/11/27 20:14:58 philip Exp $
#
