From a7cb540ae3bf0af8f53f59096ab18bf3e915bf28 Mon Sep 17 00:00:00 2001 From: ceriel Date: Tue, 30 Jun 1987 16:11:19 +0000 Subject: [PATCH] [ek]/C_failed.c removed. Now called failed.c --- modules/src/em_code/Makefile | 13 +++++++++---- modules/src/em_code/failed.c | 12 ++++++++++++ modules/src/em_code/make.fun | 6 +++--- 3 files changed, 24 insertions(+), 7 deletions(-) create mode 100644 modules/src/em_code/failed.c diff --git a/modules/src/em_code/Makefile b/modules/src/em_code/Makefile index 683a3c17e..ee2fa403f 100644 --- a/modules/src/em_code/Makefile +++ b/modules/src/em_code/Makefile @@ -3,7 +3,7 @@ INSTALL = $(EMHOME)/modules/install COMPARE = $(EMHOME)/modules/compare all: libeme.a libemk.a em_code.3 - rm -f *.c + rm -f C_*.c install: all $(INSTALL) lib/libeme.a @@ -19,11 +19,11 @@ em_code.3: em_code.3X -sh -c 'tbl < em_code.3X > em_code.3' -sh -c 'if test -s em_code.3 ; then : ; else cp em_code.3X em_code.3 ; fi ' -libeme.a: make.sh e/em_private.h e/em.c e/C_failed.c +libeme.a: make.sh e/em_private.h e/em.c failed.c EMHOME=$(EMHOME); export EMHOME; sh make.sh e -sh -c 'ranlib libeme.a' -libemk.a: make.sh k/em_private.h k/em.c k/C_failed.c +libemk.a: make.sh k/em_private.h k/em.c failed.c EMHOME=$(EMHOME); export EMHOME; sh make.sh k -sh -c 'ranlib libemk.a' @@ -43,5 +43,10 @@ opr: # becomes too long for some systems clean: rm -f *.o - rm -f *.c + rm -f C_*.c rm -f *.a em_code.3 em.gen make.sh + +lintlib: make.sh + lint -I../../h -I../../../h -Ie -Ceme *.c e/*.c + lint -I../../h -I../../../h -Ik -Cemk *.c k/*.c + mv llib-leme.ln llib-lemk.ln $(EMHOME)/modules/lib diff --git a/modules/src/em_code/failed.c b/modules/src/em_code/failed.c new file mode 100644 index 000000000..9b3cd21f0 --- /dev/null +++ b/modules/src/em_code/failed.c @@ -0,0 +1,12 @@ +/* $Header$ */ +/* + * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands. + * See the copyright notice in the ACK home directory, in the file "Copyright". + */ +#include + +C_failed() +{ + sys_write(STDERR,"write failed\n",13); + sys_stop(S_EXIT); +} diff --git a/modules/src/em_code/make.fun b/modules/src/em_code/make.fun index abc92ff9c..e68993aa8 100755 --- a/modules/src/em_code/make.fun +++ b/modules/src/em_code/make.fun @@ -42,10 +42,10 @@ rm -f *.o $a rm -f libem$1.a ar rc libem$1.a *.o -cc -c -O -I$1 -I$EMHOME/modules/h -I$EMHOME/h $1/em.c -cc -c -O -I$1 -I$EMHOME/modules/h -I$EMHOME/h $1/C_failed.c +cc -c -O -I$1 -I. -I$EMHOME/modules/h -I$EMHOME/h $1/em.c +cc -c -O -I$EMHOME/modules/h -I$EMHOME/h failed.c mv em.o em$1.o -ar r libem$1.a em$1.o C_failed.o +ar r libem$1.a em$1.o failed.o rm -f *.o --EOF-- .