summaryrefslogtreecommitdiff
path: root/zwgc/Dictionary/Imakefile
diff options
context:
space:
mode:
authorGravatar John Kohl <jtkohl@mit.edu>1989-11-08 09:17:34 +0000
committerGravatar John Kohl <jtkohl@mit.edu>1989-11-08 09:17:34 +0000
commit350c2bd7ea806c53fe6b3cb94b5deea6948b40c8 (patch)
tree081685bc12ffe58c65f01ff21f748c84cb23ee72 /zwgc/Dictionary/Imakefile
parentd9d180c3985d9626d79bf1b2f84406a9f105b33b (diff)
Initial revision
Diffstat (limited to 'zwgc/Dictionary/Imakefile')
-rw-r--r--zwgc/Dictionary/Imakefile53
1 files changed, 53 insertions, 0 deletions
diff --git a/zwgc/Dictionary/Imakefile b/zwgc/Dictionary/Imakefile
new file mode 100644
index 0000000..7142280
--- /dev/null
+++ b/zwgc/Dictionary/Imakefile
@@ -0,0 +1,53 @@
+/**/# Copyright 1988 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)
+
+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
+
+GENERATORS= generate_dictionary_instance
+
+SRCDIR= ${SRCTOP}/zwgc/zwgc.dev/Dictionary
+CODE= ${GENERATORS} ${REALSRCS} ${REALHDRS} Imakefile
+
+normal_obj_rule()
+
+all:: dictionary_spec $(OBJS)
+
+depend:: ${GENERATORS} ${SRCS}
+
+#
+# /* 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:
+#
+int_dictionary.c int_dictionary.h: dictionary.c dictionary.h
+ ./generate_dictionary_instance int
+#
+# Generate a string dictionary instance:
+#
+string_dictionary.c string_dictionary.h: dictionary.c dictionary.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