#
#	(C)1992, 1993, 1995 Institute for New Generation Computer Technology
#		ۤ¾COPYRIGHTե򻲾ȤƲ
#		(Read COPYRIGHT for detailed information.)
#
#
# Makefile  of Term
#

KLICSRCS = term.kl1
KLICMACROSRCS =
KLICCS = term.c
KLICEXTS = term.ext
KLICOBJS = term.o

CS = term_encode.c  newatom.c
HS = term.h termlist.h
COBJS = term_encode.o  newatom.o

GOBJCS = term_decode.c term_decode_funt.mkh
GOBJOBJS = term_decode.o

DMYSRCS = main.kl1 dummy_lib.kl1 gstring16.c gstring16_funt.mkh\
	test1.kl1 test2.kl1 test3.kl1 test_common.kl1 test_cinter.c

DMYOBJS = main.o dummy_lib.o gstring16.o \
	test1.o test2.o test3.o test_common.o test_cinter.o


DIRNAME =  rec/term
DIRNEST = ../..

include $(SRCROOTDIR)/include/Makefile.ini

#term_decode.o:term_decode_funt.mkh
term_decode.o: term.h termlist.h $(DIRNEST)/kgobj/newgobj.h \
	$(DIRNEST)/kgobj/g_string16.h $(DIRNEST)/lib/libstring.h \
	$(DIRNEST)/kgobj/GO_get_term.c
term_encode.o: term.h $(DIRNEST)/lib/libstring.h $(DIRNEST)/kgobj/GO_newstr.c

#KLIC = klic
#KLICFLAGS += -v  -g -t

test: $(KLICOBJS) $(KLICOBJS) $(COBJS) $(GOBJOBJS) $(DMYOBJS)
	$(KLIC) -o tmtest $(KLICFLAGS) $(KLICOBJS) $(COBJS) \
			$(GOBJOBJS) $(DMYOBJS)
