
#	Copyright 1988 Massachusetts Institute of Technology.
#
#	For copying and distribution information, see the file
#	"mit-copyright.h".
#
# This makefile is automatically generated by imake... do not modify
# or you may lose your changes when imake generates makefiles again.
# Ignore this message if you are not using imake.
#
#	$Source: /mit/zephyr/src/config/RCS/Imake.template,v $
#	$Author: raeburn $
#	$Header: /mit/zephyr/src/config/RCS/Imake.template,v 1.6 91/03/29 03:49:59 raeburn Exp $
#

NEWTOP=../../.
BUILDTOP=../../.

#	Copyright 1988,1991 Massachusetts Institute of Technology.
#
#	For copying and distribution information, see the file
#	"mit-copyright.h".
#
#	$Source: /mit/zephyr/src/config/RCS/config.Imakefile,v $
#	$Author: raeburn $
#	$Zephyr: /mit/zephyr/src/config/RCS/config.Imakefile,v 1.31 91/03/29 03:56:07 raeburn Exp $
#

SRCTOP=/afs/athena.mit.edu/astaff/project/zephyr/src

IMAKE=$(BUILDTOP)/imake/imake -I$(BUILDTOP)/config

DESTDIR=

ATHINCDIR= /usr/include

ETCDIR= /etc
CLIENTDIR= /usr/athena
ETCATHDIR= /etc/athena
USRETCDIR= /usr/etc
LIBDIR= /usr/athena/lib

LINTLIBDIR= /usr/lib/lint
MANDIR=/usr/man
ACLDIR=/usr/athena/lib/zephyr

LINTLIBFLAG=-C

LDSTRIPFLAGS= -x -r

LDPROFSTRIPFLAGS= -X -r

GLOBAL_SYSLIBS=

X_CDEFS= -DX11

X11_LIB=-lX11
XAW_LIB=-lXaw
XT_LIB=-lXt
XMU_LIB=-lXmu

X11_LINTLIB=-lX11
XAW_LINTLIB=-lXaw
XT_LINTLIB=-lXt
XMU_LINTLIB=-lXmu

KRB_CDEFS=-DKERBEROS
KRB_LIB=-lkrb
KRB_LINTLIB=-lkrb
DES_LIB=-ldes
DES_LINTLIB=-ldes

HES_CDEFS=-DHESIOD
HES_LIB=-lhesiod
HES_LINTLIB=-lhesiod

GLOBAL_CDEFS = $(KRB_CDEFS) $(HES_CDEFS) $(X_CDEFS) $(X2_CDEFS) \
	-DNO_VPRINTF

SS_LIB=-lss
SS_LINTLIB=-lss
COMERR_LIB=-lcom_err
COMERR_LINTLIB=-lcom_err
COMPILE_ET=compile_et
MAKE_COMMANDS=mk_cmds

DEPEND=makedepend

ARCHIVE= ar cru

RANLIB= ranlib

INSTALLFILE= install -c -m 444

INSTALLLIB= install -c -m 444

INSTALLPROG= install -c -s -m 555

INSTALLSCRIPT= install -c -m 555

INSTALLRAW= install

INSTALLSUID= install -c -m 4555 -o root

LD=ld

AS=as

LINT=lint

CXX= g++ -Z -DFIXED_GXX
CXXLIB= -L/mit/gnu/lib -lg++
CXXFLAGS= $(CFLAGS)

CC=gcc -finline-functions

DBG=-O

HCC=$(CC)

CPP=$(CC) -E

LDFLAGS = -Z

HCFLAGS=$(CFLAGS)

TAGGER=etags

MAKE=make
RM=rm -f
MV=mv
CP=cp
LN=ln -s
LPR=lpr -p
CHMOD=chmod

INCLUDE= $(LINCLUDES) -I$(BUILDTOP)/include

CFLAGS=$(DBG) $(INCLUDE) $(DEFINES) $(GLOBAL_CDEFS)

LINTFLAGS= -bhz $(LLINTFLAGS) $(INCLUDE) $(DEFINES) $(GLOBAL_CDEFS)

#	Copyright 1988,1991 Massachusetts Institute of Technology.
#
#	For copying and distribution information, see the file
#	"mit-copyright.h".
#
#	$Source: /afs/athena.mit.edu/astaff/project/zephyr/src/config/RCS/Imake.rules,v $
#	$Author: jfc $
#	$Zephyr: /mit/zephyr/src/config/RCS/Imake.rules,v 1.26 91/03/21 12:08:36 raeburn Exp $
#

.SUFFIXES: .o .s .c .C

ZEPHYR_LIB=$(BUILDTOP)/libs/libzephyr.a
ZEPHYR_LINTLIB=$(BUILDTOP)/libs/llib-lzephyr.ln
DYN_LIB=$(BUILDTOP)/libs/libdyn.a
DYN_LINTLIB=$(BUILDTOP)/libs/llib-ldyn.ln

#	Copyright 1988 Massachusetts Institute of Technology.
#
#	For copying and distribution information, see the file
#	"mit-copyright.h".
#
#	$Source: /afs/athena.mit.edu/astaff/project/zephyr/src/zwgc/Dictionary/RCS/Imakefile,v $
#	$Author: jtkohl $
#	$Header: /afs/athena.mit.edu/astaff/project/zephyr/src/zwgc/Dictionary/RCS/Imakefile,v 1.3 89/11/16 10:21:25 jtkohl Exp $
#

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/Dictionary
CODE= ${GENERATORS} ${REALSRCS} ${REALHDRS} Imakefile

.c.o:
	$(RM) $*.o
	$(CC) -c $(CFLAGS) $*.c
.C.o:
	$(RM) $*.o
	$(CXX) -c $(CXXFLAGS) $*.C
.C.s:
	$(RM) $*.s
	$(CXX) -S $(CXXFLAGS) $*.C

all:: dictionary_spec $(OBJS)

depend:: ${GENERATORS} ${SRCS}

#
#
#
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 ${SRCDIR} int
#
# Generate a string dictionary instance:
#
string_dictionary.c string_dictionary.h: dictionary.c dictionary.h
	./generate_dictionary_instance ${SRCDIR} string new_string.h

clean::
	$(RM) $(OBJS) dictionary_spec int_dictionary.c string_dictionary.c \
		int_dictionary.h string_dictionary.h

depend:: $(CODE)
	@echo "### Now computing dependencies"
	@$(DEPEND) -s "# DO NOT DELETE" -- $(CFLAGS) -- $(SRCS)

clean::
	$(RM) *~ \#* *.bak $(TAGSFILE)

tags::
	$(TAGGER) *.c *.h *.C *.hT *.CT

lint::
	$(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)

Makefile::
	$(IMAKE) -DNEW_TOP=$(NEWTOP) -s Makefile.new
	-$(RM) Makefile.bak; $(MV) Makefile Makefile.bak
	$(MV) Makefile.new Makefile

print:: $(CODE)
	$(LPR) $(CODE)

src:: ${CODE}
	touch src

${CODE}:
	 $(RM) $@
	-$(LN) ${SRCDIR}/$@ $@

install::

Makefiles::

# DO NOT DELETE THIS LINE

string_dictionary_aux.o: string_dictionary_aux.c ../Memory/new_memory.h
string_dictionary_aux.o: string_dictionary.h ../String/new_string.h
string_dictionary_aux.o: /usr/include/strings.h
int_dictionary.o: int_dictionary.c int_dictionary.h ../String/new_string.h
int_dictionary.o: /usr/include/strings.h ../Memory/new_memory.h
string_dictionary.o: string_dictionary.c string_dictionary.h
string_dictionary.o: ../String/new_string.h /usr/include/strings.h
string_dictionary.o: ../Memory/new_memory.h
