blob: 71422808c23a201d68fc17fb2b6b9ec41d4eb92e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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
|