diff options
author | Richard Basch <probe@mit.edu> | 1993-11-19 10:48:24 +0000 |
---|---|---|
committer | Richard Basch <probe@mit.edu> | 1993-11-19 10:48:24 +0000 |
commit | fe427157e208b26b06132b5a1aa6ff06f28b451d (patch) | |
tree | dfca8ea1be9408f7579cce36397334a9bb094017 | |
parent | e1927b1a1929fabdc50269a91ff1fc56a13cfc68 (diff) |
New Athena imake rules
-rw-r--r-- | h/zephyr/Imakefile | 16 | ||||
-rw-r--r-- | zwgc/Dictionary/Imakefile | 44 | ||||
-rw-r--r-- | zwgc/Memory/Imakefile | 20 | ||||
-rw-r--r-- | zwgc/String/Imakefile | 23 |
4 files changed, 28 insertions, 75 deletions
diff --git a/h/zephyr/Imakefile b/h/zephyr/Imakefile index ecefcd3..a1b33ef 100644 --- a/h/zephyr/Imakefile +++ b/h/zephyr/Imakefile @@ -11,14 +11,14 @@ SRCDIR= ${SRCTOP}/include/zephyr HDRS= acl.h mit-copyright.h zephyr.h zephyr_conf.h zephyr_internal.h zsyslog.h CODE= ${HDRS} Imakefile -all:: zephyr_paths.h +all depend:: zephyr_paths.h -depend:: zephyr_paths.h +clean:: + $(RM) zephyr_paths.h #ifdef KERBEROS HaveKerberos=yes #endif - #ifdef HESIOD HaveHesiod=yes #endif @@ -26,10 +26,10 @@ HaveHesiod=yes #define export_as(var,name) name=$(var) ; export name #define export_var(var) export_as(var,var) -zephyr_paths.h: $(BUILDTOP)/config/config.Imakefile - @ export_var(ETCATHDIR) ; \ - export_as (ACLDIR,LIBDIR) ; \ - export_var(CLIENTDIR) ; \ +zephyr_paths.h: + @ export_as(ATHETCDIR,ETCATHDIR) ; \ + export_as(ZLIBDIR,LIBDIR) ; \ + export_as(ATHBINDIR,CLIENTDIR) ; \ export_var(HaveKerberos) ; \ export_var(HaveHesiod) ; \ - $(BUILDTOP)/tools/makepaths > zephyr_paths.h + $(PTOP)/tools/makepaths > zephyr_paths.h diff --git a/zwgc/Dictionary/Imakefile b/zwgc/Dictionary/Imakefile index c5bc4ad..c8b77b7 100644 --- a/zwgc/Dictionary/Imakefile +++ b/zwgc/Dictionary/Imakefile @@ -1,54 +1,34 @@ -/**/# Copyright 1988 Massachusetts Institute of Technology. +/**/# Copyright 1988, 1993 Massachusetts Institute of Technology. /**/# /**/# For copying and distribution information, see the file /**/# "mit-copyright.h". /**/# -/**/# $Source$ -/**/# $Author$ -/**/# $Header$ -/**/# - -LIBS= $(ZEPHYR_LIB) $(COMERR_LIB) $(KRB_LIB) $(DES_LIB) -LINTLIBS=$(ZEPHYR_LINTLIB) $(COMERR_LIB) $(KRB_LIB) $(DES_LIB) +/**/# $Id$ OBJS = string_dictionary_aux.o int_dictionary.o string_dictionary.o - -REALSRCS = dictionary.c string_dictionary_aux.c -REALHDRS = dictionary.h string_dictionary_aux.h SRCS = string_dictionary_aux.c int_dictionary.c string_dictionary.c -HDRS = string_dictionary_aux.h int_dictionary.h string_dictionary.h -LINCLUDES = -I../Memory -I../String +XDEFS = -I../String -I../Memory GENERATORS= generate_dictionary_instance -SRCDIR= ${SRCTOP}/zwgc/Dictionary -BUILDDIR= ${BUILDTOP}/zwgc/Dictionary -CODE= ${GENERATORS} ${REALSRCS} ${REALHDRS} Imakefile - -normal_obj_rule() - all:: string_dictionary.h dictionary_spec $(OBJS) +depend:: $(GENERATORS) $(SRCS) -depend:: ${GENERATORS} ${SRCS} - -# -# /* Automatically generate a spec file from the template include file: */ -# +/**/# Automatically generate a spec file from the template include file: dictionary_spec: dictionary.h cat dictionary.h | grep "^.\*" | grep -v "^ \*/" | sed 's/.\*//' > dictionary_spec -# -# Generate a int dictionary instance: -# +/**/# Generate a int dictionary instance: int_dictionary.c int_dictionary.h: dictionary.c dictionary.h - ./generate_dictionary_instance ${BUILDDIR} int -# -# Generate a string dictionary instance: -# + ./generate_dictionary_instance . int + +/**/# Generate a string dictionary instance: string_dictionary.c string_dictionary.h: dictionary.c dictionary.h - ./generate_dictionary_instance ${BUILDDIR} string new_string.h + ./generate_dictionary_instance . string new_string.h clean:: $(RM) $(OBJS) dictionary_spec int_dictionary.c string_dictionary.c \ int_dictionary.h string_dictionary.h + +string_dictionary_aux.o: string_dictionary.h diff --git a/zwgc/Memory/Imakefile b/zwgc/Memory/Imakefile index b8b9a74..5d01802 100644 --- a/zwgc/Memory/Imakefile +++ b/zwgc/Memory/Imakefile @@ -1,30 +1,16 @@ -/**/# Copyright 1988 Massachusetts Institute of Technology. +/**/# Copyright 1988, 1993 Massachusetts Institute of Technology. /**/# /**/# For copying and distribution information, see the file /**/# "mit-copyright.h". /**/# -/**/# $Source$ -/**/# $Author$ -/**/# $Header$ -/**/# - -LIBS= $(ZEPHYR_LIB) $(COMERR_LIB) $(KRB_LIB) $(DES_LIB) -LINTLIBS=$(ZEPHYR_LINTLIB) $(COMERR_LIB) $(KRB_LIB) $(DES_LIB) +/**/# $Id$ OBJS = new_memory.o SRCS = new_memory.c -HDRS = new_memory.h - -SRCDIR= ${SRCTOP}/zwgc/Memory -CODE= ${SRCS} ${HDRS} Imakefile - -normal_obj_rule() all:: memory_spec $(OBJS) -# -# /* Automatically generate a spec file from the template include file: */ -# +/**/# Automatically generate a spec file from the template include file: memory_spec: new_memory.h cat new_memory.h | grep "^.\*" | grep -v "^ \*/" | sed 's/.\*//' > memory_spec diff --git a/zwgc/String/Imakefile b/zwgc/String/Imakefile index f080d8e..e47f681 100644 --- a/zwgc/String/Imakefile +++ b/zwgc/String/Imakefile @@ -1,35 +1,22 @@ -/**/# Copyright 1988 Massachusetts Institute of Technology. +/**/# Copyright 1988, 1993 Massachusetts Institute of Technology. /**/# /**/# For copying and distribution information, see the file /**/# "mit-copyright.h". /**/# -/**/# $Source$ -/**/# $Author$ -/**/# $Header$ -/**/# +/**/# $Id$ -LIBS= $(ZEPHYR_LIB) $(COMERR_LIB) $(KRB_LIB) $(DES_LIB) -LINTLIBS=$(ZEPHYR_LINTLIB) $(COMERR_LIB) $(KRB_LIB) $(DES_LIB) OBJS = new_string.o SRCS = new_string.c -HDRS = new_string.h - -SRCDIR= ${SRCTOP}/zwgc/String -CODE= ${SRCS} ${HDRS} Imakefile - -LINCLUDES= -I../Memory -normal_obj_rule() +XDEFS= -I../Memory all:: string_spec $(OBJS) -# -# /* Automatically generate a spec file from the template include file: */ -# +/**/# Automatically generate a spec file from the template include file: string_spec: new_string.h cat new_string.h | grep "^.\*" | grep -v "^ \*/" | sed 's/.\*//' > string_spec clean:: - $(RM) $(OBJS) memory_spec + $(RM) $(OBJS) string_spec |