Initial revision

This commit is contained in:
ceriel 1987-01-06 14:04:26 +00:00
parent ec678ff800
commit 56c9ada9e0
6 changed files with 229 additions and 0 deletions

View file

@ -0,0 +1,44 @@
EMHOME=../../..
HDIR = $(EMHOME)/modules/h
INSTALL=$(EMHOME)/modules/install
COMPARE=$(EMHOME)/modules/compare
CFLAGS = -O -I. -I$(HDIR)
SOURCES = alloc.h\
Malloc.c\
botch.c\
clear.c\
st_alloc.c\
std_alloc.c
OBJECTS = botch.o clear.o st_alloc.o Malloc.o std_alloc.o
all: liballoc.a
liballoc.a: all
ar cr liballoc.a $(OBJECTS)
-sh -c 'ranlib liballoc.a'
install: all
$(INSTALL) lib/liballoc.a
$(INSTALL) man/alloc.3
$(INSTALL) h/alloc.h
cmp: liballoc.a
$(COMPARE) lib/liballoc.a
$(COMPARE) man/alloc.3
$(COMPARE) h/alloc.h
pr:
@pr Makefile $(SOURCES)
opr:
make pr | opr
clean:
rm -f *.[oa]
st_alloc.o: alloc.h
std_alloc.o: alloc.h
Malloc.o: alloc.h

View file

@ -0,0 +1,31 @@
EMHOME=../../..
MODULES=$(EMHOME)/modules
HDIR = $(MODULES)/h
CFLAGS = -I$(HDIR) -O
INSTALL = $(MODULES)/install
COMPARE = $(MODULES)/compare
all: libassert.a
libassert.a: BadAssertion.o
ar r libassert.a BadAssertion.o
-sh -c 'ranlib libassert.a'
install: all
$(INSTALL) lib/libassert.a
$(INSTALL) man/assert.3
$(INSTALL) h/assert.h
cmp: all
$(COMPARE) lib/libassert.a
$(COMPARE) man/assert.3
$(COMPARE) h/assert.h
pr:
@pr Makefile assert.h BadAssertion.c
opr:
make pr | opr
clean:
rm -f *.[oa]

View file

@ -0,0 +1,33 @@
EMHOME = ../../..
HDIR = $(EMHOME)/modules/h
INSTALL = $(EMHOME)/modules/install
COMPARE = $(EMHOME)/modules/compare
SRC = C_ms_err.c C_ms_opt.c C_ms_emx.c C_ms_reg.c C_ms_src.c\
C_ms_flt.c C_ms_com.c C_ms_par.c C_ms_ego.c C_ms_gto.c
OBJ = C_ms_err.o C_ms_opt.o C_ms_emx.o C_ms_reg.o C_ms_src.o\
C_ms_flt.o C_ms_com.o C_ms_par.o C_ms_ego.o C_ms_gto.o
CFLAGS=-I$(EMHOME)/h -I$(HDIR) -O
all: libem_mes.a
libem_mes.a: $(OBJ)
rm -f libem_mes.a
ar cr libem_mes.a $(OBJ)
-sh -c 'ranlib libem_mes.a'
install: all
$(INSTALL) lib/libem_mes.a
$(INSTALL) man/em_mes.3
cmp: all
$(COMPARE) lib/libem_mes.a
$(COMPARE) man/em_mes.3
pr:
@pr Makefile $(SRC)
opr:
make pr | opr
clean:
rm -f *.[oa]

View file

@ -0,0 +1,35 @@
EMHOME = ../../..
MODULES = $(EMHOME)/modules
INSTALL = $(MODULES)/install
COMPARE = $(MODULES)/compare
CFLAGS = -O
OBJECTS = AtEoIF.o\
AtEoIT.o
all: libinput.a
libinput.a: $(OBJECTS)
ar cr libinput.a $(OBJECTS)
-sh -c 'ranlib libinput.a'
install: all
$(INSTALL) lib/libinput.a
$(INSTALL) man/input.3
$(INSTALL) pkg/inp_pkg.body
$(INSTALL) pkg/inp_pkg.spec
cmp: all
$(COMPARE) lib/libinput.a
$(COMPARE) man/input.3
$(COMPARE) pkg/inp_pkg.body
$(COMPARE) pkg/inp_pkg.spec
pr:
@pr Makefile inp_pkg.spec inp_pkg.body AtEoIF.c AtEoIT.c
opr:
make pr | opr
clean:
rm -f *.[oa]

View file

@ -0,0 +1,37 @@
EMHOME = ../../..
LIBPRINT = libprint.a
MODDIR=$(EMHOME)/modules
INSTALL = $(MODDIR)/install
COMPARE = $(MODDIR)/compare
CFLAGS = -c -O -I$(MODDIR)/h
SRC = doprnt.c fprint.c print.c sprint.c format.c
OBJ = doprnt.o fprint.o print.o sprint.o format.o
all: $(LIBPRINT)
$(LIBPRINT): $(OBJ)
rm -f $(LIBPRINT)
ar r $(LIBPRINT) $(OBJ)
-sh -c 'ranlib $(LIBPRINT)'
install: all
$(INSTALL) lib/$(LIBPRINT)
$(INSTALL) man/print.3
cmp: all
$(COMPARE) lib/$(LIBPRINT)
$(COMPARE) man/print.3
pr:
@pr Makefile $(SRC)
opr:
make pr | opr
clean:
rm -f *.o $(LIBPRINT)
doprnt.o: param.h
fprint.o: param.h
print.o: param.h
sprint.o: param.h

View file

@ -0,0 +1,49 @@
EMHOME = ../../..
MODULES = $(EMHOME)/modules
INSTALL = $(MODULES)/install
COMPARE = $(MODULES)/compare
LIBSYS = libsystem.a
CFLAGS = -I. -O
OBJ = access.o break.o chmode.o close.o create.o exit.o filesize.o \
modtime.o lock.o open.o read.o remove.o stop.o \
system.o time.o unlock.o write.o
CSRC = access.c break.c chmode.c close.c create.c exit.c filesize.c \
modtime.c lock.c open.c read.c remove.c stop.c \
system.c time.c unlock.c write.c
SRC = Makefile system.h $(CSRC)
all: $(LIBSYS)
$(LIBSYS): $(OBJ)
rm -f $(LIBSYS)
ar r $(LIBSYS) $(OBJ)
-sh -c 'ranlib $(LIBSYS)'
install: all
$(INSTALL) lib/$(LIBSYS)
$(INSTALL) man/system.3
$(INSTALL) h/system.h
cmp: all
$(COMPARE) lib/$(LIBSYS)
$(COMPARE) man/system.3
$(COMPARE) h/system.h
clean:
rm -f *.[oa]
pr:
@pr $(SRC)
opr:
make pr | opr
access.o: system.h
break.o: system.h
close.o: system.h
create.o: system.h
open.o: system.h
read.o: system.h
stop.o: system.h
system.o: system.h
write.o: system.h