From: ceriel Date: Thu, 2 Feb 1989 11:45:50 +0000 (+0000) Subject: made arg_error dependant on a DEBUG constant, improved Makefile X-Git-Tag: release-5-5~2645 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=542eb9a7d847a1ac0cf601c53729c736274516d5;p=ack.git made arg_error dependant on a DEBUG constant, improved Makefile --- diff --git a/mach/vax4/ce/Makefile b/mach/vax4/ce/Makefile index 831217e01..a74d18ef1 100644 --- a/mach/vax4/ce/Makefile +++ b/mach/vax4/ce/Makefile @@ -1,19 +1,37 @@ EMHOME=../../.. BACK=$(EMHOME)/lib/ceg/ce_back +CEG = $(EMHOME)/lib/ceg/util -all : back.a - make -f ce_makefile +all: back.a + make -f $(CEG)/make_own -install: all - make -f ce_makefile install +install: back.a + make -f $(CEG)/make_own install +cmp: back.a + -make -f $(CEG)/make_own cmp + +pr: + @pr Makefile EM_table mach.h mach.c as_table as.h as.c \ + Make.back do_close.c do_open.c end_back.c misc.c output.c relocation.c + +opr: + make pr | opr + +# total cleanup clean: - rm -rf back.a back + make -f $(CEG)/make_own clean + rm -rf back back.a + +# only remove ce, ceg, and back directories +dclean: + make -f $(CEG)/make_own dclean + rm -rf back back.a : -mkdir back cp $(BACK)/obj_back/*h back cp Make.back back/Makefile - ( cd back; make) + cd back; make ; cd .. ar r back.a back/*o; - -ranlib back.a + -sh -c 'ranlib back.a' diff --git a/mach/vax4/ce/mach.c b/mach/vax4/ce/mach.c index 2f5d874bb..82c77f2aa 100644 --- a/mach/vax4/ce/mach.c +++ b/mach/vax4/ce/mach.c @@ -1,15 +1,17 @@ +#define CODE_EXPANDER #include -#include #include #include "mach.h" #include "back.h" +#ifdef DEBUG arg_error( s, arg) char *s; int arg; { fprint( STDERR, "arg_error %s %d\n", s, arg); } +#endif #define OWNFLOAT /* compile on VAX, generate code for VAX FP ... */ diff --git a/mach/vax4/ce/mach.h b/mach/vax4/ce/mach.h index eff4e298a..a46abc85e 100644 --- a/mach/vax4/ce/mach.h +++ b/mach/vax4/ce/mach.h @@ -39,3 +39,6 @@ #define fit_byte(val) ((unsigned long)((val)+128) < 256) #define fit_word(val) ((unsigned long)((val)+32768L) < 65536L) +#ifndef DEBUG +#define arg_error(s, i) +#endif