summaryrefslogtreecommitdiff
path: root/zwgc/Dictionary/Imakefile
blob: 2bae6c7fe95f4129464eee185438f823778be745 (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
/**/#	Copyright 1988, 1993 Massachusetts Institute of Technology.
/**/#
/**/#	For copying and distribution information, see the file
/**/#	"mit-copyright.h". 
/**/#
/**/#	$Id$

OBJS = string_dictionary_aux.o int_dictionary.o string_dictionary.o
SRCS = string_dictionary_aux.c int_dictionary.c string_dictionary.c

XDEFS = -I../String -I../Memory

all:: string_dictionary.h dictionary_spec $(OBJS)
depend:: $(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_instance . dictionary int

/**/# Generate a string dictionary instance:
string_dictionary.c string_dictionary.h: dictionary.c dictionary.h
	../generate_instance . dictionary 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