head	1.67;
access;
symbols
	V1_6_7:1.65
	V1_6_6:1.64
	V1_6_5:1.61
	V1_6_4:1.61
	V1_6_3:1.57
	V1_6_2:1.52
	V1_6_1:1.52
	V1_6:1.52
	V1_5_2:1.50
	V1_4_1:1.42
	V1_4:1.42
	V1_3_3:1.39
	V1_3_1:1.32
	V1_3:1.32
	V1_2:1.21
	V1_1:1.21
	V1_0:1.17;
locks; strict;
comment	@# @;


1.67
date	2002.01.21.08.49.44;	author vandys;	state Exp;
branches;
next	1.66;

1.66
date	2001.09.27.16.39.10;	author vandys;	state Exp;
branches;
next	1.65;

1.65
date	2001.05.28.22.18.01;	author vandys;	state Exp;
branches;
next	1.64;

1.64
date	2001.01.06.21.26.48;	author vandys;	state Exp;
branches;
next	1.63;

1.63
date	2001.01.04.15.37.21;	author vandys;	state Exp;
branches;
next	1.62;

1.62
date	2000.11.30.16.47.51;	author vandys;	state Exp;
branches;
next	1.61;

1.61
date	2000.08.10.21.03.59;	author vandys;	state Exp;
branches;
next	1.60;

1.60
date	2000.08.03.22.23.55;	author vandys;	state Exp;
branches;
next	1.59;

1.59
date	2000.07.27.09.35.46;	author vandys;	state Exp;
branches;
next	1.58;

1.58
date	2000.07.25.14.59.09;	author vandys;	state Exp;
branches;
next	1.57;

1.57
date	2000.05.18.22.03.16;	author vandys;	state Exp;
branches;
next	1.56;

1.56
date	2000.03.24.14.20.36;	author vandys;	state Exp;
branches;
next	1.55;

1.55
date	2000.03.19.21.42.46;	author vandys;	state Exp;
branches;
next	1.54;

1.54
date	2000.03.09.14.17.00;	author vandys;	state Exp;
branches;
next	1.53;

1.53
date	2000.03.08.16.55.40;	author vandys;	state Exp;
branches;
next	1.52;

1.52
date	97.08.27.17.45.22;	author vandys;	state Exp;
branches;
next	1.51;

1.51
date	97.08.27.11.12.51;	author vandys;	state Exp;
branches;
next	1.50;

1.50
date	96.12.27.23.45.20;	author vandys;	state Exp;
branches;
next	1.49;

1.49
date	96.11.02.11.50.48;	author vandys;	state Exp;
branches;
next	1.48;

1.48
date	96.09.27.19.49.57;	author vandys;	state Exp;
branches;
next	1.47;

1.47
date	96.09.27.19.34.37;	author vandys;	state Exp;
branches;
next	1.46;

1.46
date	96.04.20.20.58.00;	author vandys;	state Exp;
branches;
next	1.45;

1.45
date	96.04.15.21.38.08;	author vandys;	state Exp;
branches;
next	1.44;

1.44
date	96.04.14.22.39.32;	author vandys;	state Exp;
branches;
next	1.43;

1.43
date	96.04.02.21.52.53;	author vandys;	state Exp;
branches;
next	1.42;

1.42
date	95.04.23.20.44.18;	author vandys;	state Exp;
branches;
next	1.41;

1.41
date	95.03.24.05.51.29;	author vandys;	state Exp;
branches;
next	1.40;

1.40
date	95.03.04.23.40.31;	author vandys;	state Exp;
branches;
next	1.39;

1.39
date	95.01.10.05.22.08;	author vandys;	state Exp;
branches;
next	1.38;

1.38
date	94.10.12.04.00.29;	author vandys;	state Exp;
branches;
next	1.37;

1.37
date	94.10.01.03.31.49;	author vandys;	state Exp;
branches;
next	1.36;

1.36
date	94.09.30.22.54.22;	author vandys;	state Exp;
branches;
next	1.35;

1.35
date	94.09.23.20.38.16;	author vandys;	state Exp;
branches;
next	1.34;

1.34
date	94.09.07.19.17.54;	author vandys;	state Exp;
branches;
next	1.33;

1.33
date	94.07.10.19.16.56;	author vandys;	state Exp;
branches;
next	1.32;

1.32
date	94.04.10.23.41.05;	author vandys;	state Exp;
branches;
next	1.31;

1.31
date	94.04.09.04.35.05;	author vandys;	state Exp;
branches;
next	1.30;

1.30
date	94.04.06.22.18.12;	author vandys;	state Exp;
branches;
next	1.29;

1.29
date	94.04.06.21.55.21;	author vandys;	state Exp;
branches;
next	1.28;

1.28
date	94.04.02.01.53.30;	author vandys;	state Exp;
branches;
next	1.27;

1.27
date	94.03.28.23.19.17;	author vandys;	state Exp;
branches;
next	1.26;

1.26
date	94.03.15.22.05.58;	author vandys;	state Exp;
branches;
next	1.25;

1.25
date	94.02.28.20.02.37;	author vandys;	state Exp;
branches;
next	1.24;

1.24
date	94.02.28.19.14.19;	author vandys;	state Exp;
branches;
next	1.23;

1.23
date	94.02.27.02.29.58;	author vandys;	state Exp;
branches;
next	1.22;

1.22
date	94.02.02.19.41.08;	author vandys;	state Exp;
branches;
next	1.21;

1.21
date	93.11.16.02.50.35;	author vandys;	state Exp;
branches;
next	1.20;

1.20
date	93.10.17.19.25.57;	author vandys;	state Exp;
branches;
next	1.19;

1.19
date	93.09.28.19.35.45;	author vandys;	state Exp;
branches;
next	1.18;

1.18
date	93.08.19.04.14.18;	author vandys;	state Exp;
branches;
next	1.17;

1.17
date	93.07.09.18.36.43;	author vandys;	state Exp;
branches;
next	1.16;

1.16
date	93.04.23.19.48.40;	author vandys;	state Exp;
branches;
next	1.15;

1.15
date	93.04.14.01.11.12;	author vandys;	state Exp;
branches;
next	1.14;

1.14
date	93.04.12.20.56.14;	author vandys;	state Exp;
branches;
next	1.13;

1.13
date	93.04.09.17.12.52;	author vandys;	state Exp;
branches;
next	1.12;

1.12
date	93.03.25.21.29.21;	author vandys;	state Exp;
branches;
next	1.11;

1.11
date	93.03.20.00.22.38;	author vandys;	state Exp;
branches;
next	1.10;

1.10
date	93.03.17.18.16.07;	author vandys;	state Exp;
branches;
next	1.9;

1.9
date	93.03.16.22.22.57;	author vandys;	state Exp;
branches;
next	1.8;

1.8
date	93.03.16.19.06.35;	author vandys;	state Exp;
branches;
next	1.7;

1.7
date	93.03.13.01.31.09;	author vandys;	state Exp;
branches;
next	1.6;

1.6
date	93.03.11.19.17.34;	author vandys;	state Exp;
branches;
next	1.5;

1.5
date	93.03.08.23.04.01;	author vandys;	state Exp;
branches;
next	1.4;

1.4
date	93.02.26.18.43.41;	author vandys;	state Exp;
branches;
next	1.3;

1.3
date	93.02.23.18.19.07;	author vandys;	state Exp;
branches;
next	1.2;

1.2
date	93.02.10.19.09.48;	author vandys;	state Exp;
branches;
next	1.1;

1.1
date	93.01.29.15.59.32;	author vandys;	state Exp;
branches;
next	;


desc
@Makefile
@


1.67
log
@Add symbol tabler
@
text
@CC=gcc
AS=as
LD=ld
CPP=cpp
INCS=-nostdinc -I../include
CFLAGS=$(INCS) -O -DDEBUG
CRT=start.o
ROOT=/vsta
target: all

include mach/makefile.inc
include libm/makefile.inc

OBJS= syscall.o malloc.o \
	string.o doprnt.o stdio.o printf.o tty.o ctype.o scanf.o seg.o \
	mount.o open.o stat.o fdl.o hash.o time.o getopt.o \
	shell.o qsort.o float.o signal.o env.o fdmem.o \
	perm.o random.o namer.o dir.o wait.o mktemp.o grp.o pwd.o \
	pipe.o fdnull.o errno.o port.o syslog.o rename.o fnmatch.o \
	bsearch.o strtol.o utime.o getline.o strftime.o mstring.o \
	fdcall.o obsolete.o getpass.o rlimit.o pgrp.o select.o \
	event.o err.o gethostname.o \
	$(MACHOBJS)

SRVOBJS= syscall.o malloc.o srvstr.o srvprnt.o srvopen.o srvfdl.o \
	llist.o hash.o syslog.o printf.o ctype.o srvmisc.o assert.o \
	srvstat.o srvstdio.o mount.o port.o statsup.o srvperm.o \
	permsup.o startsrv.o seg.o files.o namer.o abc.o lock.o \
	srvtime.o getopt.o \
	$(MACHOBJS)

# Libraries to be build
LIBS=libc.a libc_s.a ld.a libusr.a libtermcap.a libregexp.a \
	libm.a libsrv.a libregex.a \
	$(MACHTARGS)

# Databases for shared libraries
DBS=ld.db libc.db libm/libm.db regexp/libregexp.db term/libtermcap.db
SHLIBIN=ld.tmp libc.tmp libm.tmp libregexp.tmp libtermcap.tmp
SHLIBS=ld.shl libc.shl libm.shl libregexp.shl libtermcap.shl

all: $(LIBS) crt0.o crt0srv.o mklibs

# Statically linkable version of libc
libc_s.a: $(OBJS) $(CRT)
	rm -f libc_s.a
	ar rs libc_s.a $(OBJS) $(CRT)


# All shared libraries must be processed at once, as mkshlib assigns
# addresses as it processes each.
mklibs: mkshlib $(SHLIBIN)
	./mkshlib -l $(DBS)
	rm -f mklibs
	touch mklibs

# Utility for creating shared libraries
mkshlib: crt0.o mkshlib.o libc_s.a shlib.o shcalls.o
	rm -f mkshlib
	$(LD) -o mkshlib crt0.o mkshlib.o libc_s.a

# All shared libraries are created in both .a (stub) and .shl (loadable
# shared library) formats.  The stubs are needed before .shl, because
# one shared library's .a may be needed to generate another's .shl.
libc.a: mkshlib libc.tmp libc.db
	./mkshlib -s libc.db
ld.a: mkshlib ld.tmp ld.db
	./mkshlib -s ld.db

# These are the versions of our shared libraries which are used as
# input to mkshlib.  ld.tmp, which must operate as a dynamically
# mapped standalone program, includes a minimal set of system calls
libc.tmp: start.o $(OBJS)
	rm -f libc.tmp
	$(LD) -r -o libc.tmp start.o $(OBJS)

ld.tmp: ld.o shcalls.o
	$(LD) -r -o ld.tmp ld.o shcalls.o

# Special version for boot servers
startsrv.o: start.c
	$(CC) $(CFLAGS) -DSRV -o startsrv.o -c start.c

USROBJS= llist.o hash.o permsup.o permpr.o statsup.o \
	files.o rmap.o passwd.o ids.o assert.o mem.o \
	sema.o lock.o abc.o startsrv.o selfs.o complete.o \
	mcount.o symbol.o

libusr.a: $(USROBJS)
	rm -f libusr.a
	ar rs libusr.a $(USROBJS)

TERMOBJS=termcap.o tgoto.o tputs.o
libtermcap.a: mkshlib libtermcap.tmp term/libtermcap.db
	./mkshlib -s term/libtermcap.db
libtermcap.tmp: $(TERMOBJS) libc.a
	$(LD) -r -o libtermcap.tmp $(TERMOBJS) libc.a
libtermcap_s.a: $(TERMOBJS)
	ar -crs libtermcap_s.a $(TERMOBJS)

termcap.o: term/termcap.c
	$(CC) $(CFLAGS) -c term/termcap.c
tgoto.o: term/tgoto.c
	$(CC) $(CFLAGS) -c term/tgoto.c
tputs.o: term/tputs.c
	$(CC) $(CFLAGS) -c term/tputs.c

libregexp.a: mkshlib libregexp.tmp regexp/libregexp.db
	./mkshlib -s regexp/libregexp.db
libregexp.tmp: regexp.o regsub.o regerror.o libc.a
	$(LD) -r -o libregexp.tmp regexp.o regsub.o regerror.o libc.a

regexp.o: regexp/regexp.c
	$(CC) $(CFLAGS) -c regexp/regexp.c
regsub.o: regexp/regsub.c
	$(CC) $(CFLAGS) -c regexp/regsub.c
regerror.o: regexp/regerror.c
	$(CC) $(CFLAGS) -c regexp/regerror.c

REGEX=regcomp.o regerr.o regexec.o regfree.o
libregex.a: $(REGEX)
	rm -f libregex.a
	ar crs libregex.a $(REGEX)

regcomp.o: regex/regcomp.c
	$(CC) -Iregex $(CFLAGS) -c regex/regcomp.c
regerr.o: regex/regerr.c
	$(CC) -Iregex $(CFLAGS) -c regex/regerr.c
regexec.o: regex/regexec.c
	$(CC) -Iregex $(CFLAGS) -c regex/regexec.c
regfree.o: regex/regfree.c
	$(CC) -Iregex $(CFLAGS) -c regex/regfree.c

libsrv.a: $(SRVOBJS)
	rm -f libsrv.a
	ar rs libsrv.a $(SRVOBJS)

srvstr.o: srv/srvstr.c
	$(CC) $(CFLAGS) -c srv/srvstr.c
srvprnt.o: srv/srvprnt.c
	$(CC) $(CFLAGS) -c srv/srvprnt.c
srvopen.o: open.c
	$(CC) $(CFLAGS) -DSRV -o srvopen.o -c open.c
srvfdl.o: fdl.c
	$(CC) $(CFLAGS) -DSRV -o srvfdl.o -c fdl.c
srvstat.o: stat.c
	$(CC) $(CFLAGS) -DSRV -o srvstat.o -c stat.c
srvstdio.o: stdio.c
	$(CC) $(CFLAGS) -DSRV -o srvstdio.o -c stdio.c
srvperm.o: permpr.c
	$(CC) $(CFLAGS) -DSRV -o srvperm.o -c permpr.c
srvtime.o: time.c
	$(CC) $(CFLAGS) -DSRV -o srvtime.o -c time.c
srvmisc.o: srv/srvmisc.c
	$(CC) $(CFLAGS) -o srvmisc.o -c srv/srvmisc.c

clean:
	rm -f *.o *.tmp *.st

clobber: clean
	rm -f mklibs mkshlib *.a *.shl

install: all mklibs
	cp $(LIBS) crt0.o crt0srv.o $(ROOT)/lib
	cp $(SHLIBS) $(ROOT)/lib
@


1.66
log
@Use a ROOT construct for installation.
@
text
@d87 1
a87 1
	mcount.o
@


1.65
log
@Add CPU profiling
@
text
@d8 1
d164 2
a165 2
	cp $(LIBS) crt0.o crt0srv.o ../../lib
	cp $(SHLIBS) ../../lib
@


1.64
log
@Add gethostname.c
@
text
@d85 2
a86 1
	sema.o lock.o abc.o startsrv.o selfs.o complete.o
@


1.63
log
@Make room for POSIX API... add it in
@
text
@d21 1
a21 1
	event.o err.o \
@


1.62
log
@Add filename completion to libusr
@
text
@d32 2
a33 2
LIBS=libc.a libc_s.a ld.a libusr.a libtermcap.a libregex.a \
	libm.a libsrv.a \
d37 3
a39 3
DBS=ld.db libc.db libm/libm.db regexp/libregex.db term/libtermcap.db
SHLIBIN=ld.tmp libc.tmp libm.tmp libregex.tmp libtermcap.tmp
SHLIBS=ld.shl libc.shl libm.shl libregex.shl libtermcap.shl
d106 4
a109 4
libregex.a: mkshlib libregex.tmp regexp/libregex.db
	./mkshlib -s regexp/libregex.db
libregex.tmp: regexp.o regsub.o regerror.o libc.a
	$(LD) -r -o libregex.tmp regexp.o regsub.o regerror.o libc.a
d117 14
@


1.61
log
@Move .db's into their source dir
@
text
@d85 1
a85 1
	sema.o lock.o abc.o startsrv.o selfs.o
@


1.60
log
@Make ar(1) less noisy here.
Fix dependency so support .o's are available before mkshlib needs them.
Make a static link version of termcap available.
@
text
@d37 1
a37 1
DBS=ld.db libc.db libm/libm.db libregex.db libtermcap.db
d92 2
a93 2
libtermcap.a: mkshlib libtermcap.tmp libtermcap.db
	./mkshlib -s libtermcap.db
d106 2
a107 2
libregex.a: mkshlib libregex.tmp libregex.db
	./mkshlib -s libregex.db
@


1.59
log
@Make regexp, termcap, as well as libm all shared libraries
@
text
@d46 1
a46 1
	ar rsv libc_s.a $(OBJS) $(CRT)
d51 1
a51 1
mklibs: mkshlib $(SHLIBIN) shlib.o
d57 1
a57 1
mkshlib: crt0.o mkshlib.o libc_s.a
d89 1
a89 1
	ar rsv libusr.a $(USROBJS)
d91 1
d94 4
a97 2
libtermcap.tmp: termcap.o tgoto.o tputs.o libc.a
	$(LD) -r -o libtermcap.tmp termcap.o tgoto.o tputs.o libc.a
d120 1
a120 1
	ar rsv libsrv.a $(SRVOBJS)
@


1.58
log
@Let libraries link against the stubs of other libraries.
Convert libm to a shared library.
@
text
@d32 1
a32 1
LIBS=libc.a libc_s.a ld.a libusr.a libtermc.a libregex.a \
d37 3
a39 3
DBS=ld.db libc.db libm/libm.db
SHLIBIN=ld.tmp libc.tmp libm.tmp
SHLIBS=ld.shl libc.shl libm.shl
d91 5
a95 3
libtermc.a: termcap.o tgoto.o tputs.o
	rm -f libtermc.a
	ar rsv libtermc.a termcap.o tgoto.o tputs.o
d103 4
a106 3
libregex.a: regexp.o regsub.o regerror.o
	rm -f libregex.a
	ar rsv libregex.a regexp.o regsub.o regerror.o
@


1.57
log
@BSD err/warn API's
@
text
@d32 2
a33 1
LIBS=libc.a libc_s.a ld.a libusr.a libtermc.a libregex.a libm.a libsrv.a \
d37 3
a39 3
DBS=ld.db libc.db
SHLIBIN=ld.tmp libc.tmp
SHLIBS=ld.shl libc.shl
d41 1
a41 1
all: $(LIBS) crt0.o crt0srv.o
d52 1
a52 1
	./mkshlib $(DBS)
d58 1
d62 6
a67 3
# shared library) formats in the same step, "mklibs".
libc.a: mklibs
ld.a: mklibs
@


1.56
log
@Convert to vsta/src-private include subdir for development
@
text
@d21 1
a21 1
	event.o \
@


1.55
log
@Add <event.h> and handle_event()
@
text
@d4 3
a6 3
CPP= cpp
INCS= -I../../include
CFLAGS= $(INCS) -O -DDEBUG
a29 3

.c.o:
	$(CC) $(CFLAGS) -c $*.c
@


1.54
log
@New file selfs.c
@
text
@d21 1
@


1.53
log
@Add select() emulation
@
text
@d82 1
a82 1
	sema.o lock.o abc.o startsrv.o
@


1.52
log
@Add resource limit and getpgrp stuff
@
text
@d20 1
a20 1
	fdcall.o obsolete.o getpass.o rlimit.o pgrp.o \
@


1.51
log
@Fiddle with how startup code gets linked
@
text
@d20 1
a20 1
	fdcall.o obsolete.o getpass.o \
@


1.50
log
@Add getpass()
@
text
@d82 1
a82 1
	sema.o lock.o abc.o
@


1.49
log
@Add getopt to server library (for vstafs)
@
text
@d20 1
a20 1
	fdcall.o obsolete.o \
d34 1
a34 1
LIBS=libc.a libc_s.a ld.a libusr.a libtermc.a libregex.a libm.a \
@


1.48
log
@*** empty log message ***
@
text
@d27 1
a27 1
	srvtime.o \
@


1.47
log
@Add minimal flavors of key routines to keep our boot servers from
bloating beyond all belief.
@
text
@d20 1
a20 1
	fdcall.o \
@


1.46
log
@Cleanup one other support prog
@
text
@d7 1
a7 1
CRT=start.o startsrv.o
d23 7
d108 23
@


1.45
log
@Add -libm
@
text
@d106 1
a106 1
	rm -f mklibs *.a *.shl
@


1.44
log
@Add floating point, popen/pclose, funopen
@
text
@d6 1
a6 1
CFLAGS= $(INCS) -O -DDEBUG -DFLOAT_SUPPORT
d10 2
a11 1
include mach/Makefile.inc
d27 1
a27 1
LIBS=libc.a libc_s.a ld.a libusr.a libtermc.a libregex.a \
@


1.43
log
@Delete unused -lpio
Add ABC, sema, and spinlock user-level support
@
text
@d6 1
a6 1
CFLAGS= $(INCS) -O -DDEBUG
d19 1
@


1.42
log
@Src file reorg, a little cleanup
@
text
@d26 1
a26 1
	libpio.a $(MACHTARGS)
d72 2
a73 1
	files.o rmap.o passwd.o ids.o assert.o mem.o
a98 4

libpio.a: pio.o
	rm -f libpio.a
	ar rsv libpio.a pio.o
@


1.41
log
@Move machine-dependent parts to mach/ subdir include
@
text
@d17 2
a18 2
	pipe.o fdnull.o errno.o port.o syslog.o rename.o strsep.o \
	bsearch.o strtol.o strtoul.o swab.o utime.o getline.o \
d62 1
a62 1
	ld -r -o libc.tmp start.o $(OBJS)
d65 1
a65 1
	ld -r -o ld.tmp ld.o shcalls.o
d104 1
a104 1
	rm -f *.o *.tmp
@


1.40
log
@The great src/ renaming
@
text
@d8 5
a12 2
OBJS= syscalls.o syscall.o \
	mem.o misc.o io.o setjmp.o malloc.o \
d14 2
a15 2
	mount.o open.o stat.o fdl.o hash.o time.o exec.o getopt.o \
	shell.o gnufuncs.o qsort.o float.o signal.o env.o fdmem.o \
d18 2
a19 1
	bsearch.o strtol.o strtoul.o swab.o utime.o getline.o
d25 2
a26 1
LIBS=libc.a libc_s.a ld.a libusr.a libtermc.a libregex.a libpio.a libdpart.a
a70 35
# Stuff from machine-dependent directory
io.o: mach/io.s
	$(AS) -o io.o mach/io.s
mem.o: mach/mem.s
	$(AS) -o mem.o mach/mem.s
misc.o: mach/misc.s
	$(AS) -o misc.o mach/misc.s
setjmp.o: mach/setjmp.s
	$(AS) -o setjmp.o mach/setjmp.s
# crt0, standard version and one with boot server support
crt0.o: mach/crt0.s
	$(CPP) mach/crt0.s tmp.s
	$(AS) -o crt0.o tmp.s
	rm -f tmp.s
crt0srv.o: mach/crt0.s
	$(CPP) -DSRV mach/crt0.s tmp.s
	$(AS) -o crt0srv.o tmp.s
	rm -f tmp.s
gnufuncs.o: mach/gnufuncs.s
	$(AS) -o gnufuncs.o mach/gnufuncs.s
exec.o: mach/exec.c
	$(CC) $(CFLAGS) -c mach/exec.c

# Our tricky syscall stub which needs to use CPP
syscalls.o: mach/syscalls.s
	$(CPP) -D__ASM__ $(INCS) mach/syscalls.s tmp.s
	as -o syscalls.o tmp.s
	rm -f tmp.s

# Minimal version for shlib loading
shcalls.o: mach/shcalls.s
	$(CPP) -D__ASM__ $(INCS) mach/shcalls.s tmp.s
	as -o shcalls.o tmp.s
	rm -f tmp.s

a101 6

libdpart.a: dpart.o
	rm -f libdpart.a
	ar rsv libdpart.a dpart.o
dpart.o: mach/dpart.c
	$(CC) $(CFLAGS) -c mach/dpart.c
@


1.39
log
@Don't assume "." is in path
@
text
@d5 1
a5 1
INCS= -I../include
d146 2
a147 2
	cp $(LIBS) crt0.o crt0srv.o ../lib
	cp $(SHLIBS) ../lib
@


1.38
log
@Add getline() for canonical input processing.
Fix "make install" to put the .shl's into place.
@
text
@d39 1
a39 1
	mkshlib $(DBS)
@


1.37
log
@Add dependency for crt0.o, make sure mklibs tag is touch'ed
with current date/time
@
text
@d15 1
a15 1
	bsearch.o strtol.o strtoul.o swab.o utime.o
d26 1
d145 1
a145 1
install: all
d147 1
@


1.36
log
@Add shared libraries
@
text
@d39 1
d43 1
a43 1
mkshlib: mkshlib.o libc_s.a
@


1.35
log
@Add creation of shlib C library
@
text
@d1 3
a3 2
CC= gcc
AS= as
d20 7
a26 1
LIBS=libc.a libusr.a libtermc.a libregex.a libpio.a libdpart.a
d29 30
a58 7
libc.a: $(OBJS) $(CRT)
	rm -f libc.a
	ar rsv libc.a $(OBJS) $(CRT)

libc.sh: $(OBJS)
	rm -f libc.sh
	ld -o libc.sh $(OBJS)
d93 6
d138 1
a138 1
	rm -f *.o
d141 1
a141 1
	rm -f *.a
@


1.34
log
@Update bzero()/bcopy() to faster kernel versions, set up so
same routines can be shared by kernel and libc.
@
text
@d6 2
a7 1
OBJS= start.o startsrv.o syscalls.o syscall.o \
d22 1
a22 1
libc.a: $(OBJS)
d24 5
a28 1
	ar rsv libc.a $(OBJS)
@


1.33
log
@Add utime.c
@
text
@d7 1
a7 1
	mem.o io.o setjmp.o malloc.o \
d34 2
d59 1
a59 1
	files.o rmap.o passwd.o ids.o assert.o
@


1.32
log
@Add swab.c
@
text
@d13 1
a13 1
	bsearch.o strtol.o strtoul.o swab.o
@


1.31
log
@Remove extraneous blank line
@
text
@d13 1
a13 1
	bsearch.o strtol.o strtoul.o
@


1.30
log
@Get rid of @@objs; native VSTa build
@
text
@a101 1

@


1.29
log
@Add clean, clobber, install targets
@
text
@d23 1
a23 1
	ar rsv libc.a @@objs
@


1.28
log
@Add strto[u]l.c
@
text
@d18 2
a19 1
all: libc.a crt0.o crt0srv.o
d22 1
a22 1
	del libc.a
d40 1
a40 1
	del tmp.s
d44 1
a44 1
	del tmp.s
d54 1
a54 1
	del tmp.s
d56 2
a57 3
# Share this with the kernel
hash.o: ../lib/hash.c
	$(CC) $(CFLAGS) -c ../lib/hash.c
d59 35
d95 8
a102 2
	del *.o
	del *.a
@


1.27
log
@Add files strsep.c and bsearch.c
@
text
@d13 1
a13 1
	bsearch.o
@


1.26
log
@Add rename.c
@
text
@d12 2
a13 1
	pipe.o fdnull.o errno.o port.o syslog.o rename.o
@


1.25
log
@Add syslog
@
text
@d12 1
a12 1
	pipe.o fdnull.o errno.o port.o syslog.o
@


1.24
log
@Add port.c
@
text
@d12 1
a12 1
	pipe.o fdnull.o errno.o port.o
@


1.23
log
@Add errno.c to libc
@
text
@d12 1
a12 1
	pipe.o fdnull.o errno.o
@


1.22
log
@Add __ASM__ for #include crockery
@
text
@d12 1
a12 1
	pipe.o fdnull.o
@


1.21
log
@Source reorg
@
text
@d50 1
a50 1
	$(CPP) $(INCS) mach/syscalls.s tmp.s
@


1.20
log
@Add fdnull
@
text
@d4 1
a4 1
INCS= -I../include -I..
@


1.19
log
@Use del, not rm
@
text
@d12 1
a12 1
	pipe.o
@


1.18
log
@Fix make clean
@
text
@d36 1
a36 1
	$(CPP) mach/crt0.s > tmp.s
d38 1
a38 1
	rm -f tmp.s
d40 1
a40 1
	$(CPP) -DSRV mach/crt0.s > tmp.s
d42 1
a42 1
	rm -f tmp.s
d50 1
a50 1
	$(CPP) $(INCS) mach/syscalls.s  > tmp.s
d59 2
a60 1
	rm -f *.o *.a
@


1.17
log
@New files for boot-server specific versions of .o's
@
text
@d57 3
@


1.16
log
@Add pipe.c
@
text
@d6 2
a7 1
OBJS= crt0.o start.o syscalls.o syscall.o mem.o io.o setjmp.o malloc.o \
d17 2
d23 4
d34 1
d36 7
a42 1
	$(AS) -o crt0.o mach/crt0.s
@


1.15
log
@Add grp.c and pwd.c
@
text
@d10 2
a11 1
	perm.o random.o namer.o dir.o wait.o mktemp.o grp.o pwd.o
@


1.14
log
@Add mktemp.c
@
text
@d10 1
a10 1
	perm.o random.o namer.o dir.o wait.o mktemp.o
@


1.13
log
@Add wait.c
@
text
@d10 1
a10 1
	perm.o random.o namer.o dir.o wait.o
@


1.12
log
@Add dir.c directory functions
@
text
@d10 1
a10 1
	perm.o random.o namer.o dir.o
@


1.11
log
@Add random # generator, and move namer stuff into libc
@
text
@d10 1
a10 1
	perm.o random.o namer.o
@


1.10
log
@Start using optimizer
@
text
@d10 1
a10 1
	perm.o
@


1.9
log
@Add permission handling (umask/chmod/etc)
@
text
@d5 1
a5 1
CFLAGS= $(INCS) -g -DDEBUG
@


1.8
log
@Add fdmem
@
text
@d9 2
a10 1
	shell.o gnufuncs.o qsort.o float.o signal.o env.o fdmem.o
@


1.7
log
@Add env.o
@
text
@d9 1
a9 1
	shell.o gnufuncs.o qsort.o float.o signal.o env.o
@


1.6
log
@Add new files to get gcc up
@
text
@d9 1
a9 1
	shell.o gnufuncs.o qsort.o float.o signal.o
@


1.5
log
@Add shell.o
@
text
@d8 2
a9 1
	mount.o open.o stat.o fdl.o hash.o time.o exec.o getopt.o shell.o
d27 2
@


1.4
log
@Add getopt()
@
text
@d8 1
a8 1
	mount.o open.o stat.o fdl.o hash.o time.o exec.o getopt.o
@


1.3
log
@Add exec.o
@
text
@d8 1
a8 1
	mount.o open.o stat.o fdl.o hash.o time.o exec.o
@


1.2
log
@Add time.c
@
text
@d8 1
a8 1
	mount.o open.o stat.o fdl.o hash.o time.o
d26 2
@


1.1
log
@Initial revision
@
text
@d8 1
a8 1
	mount.o open.o stat.o fdl.o hash.o
@
