# options

CFLAGS += -g
CPPFLAGS += -I$(OPENWINHOME)/include
LDFLAGS += -L$(OPENWINHOME)/lib 
LDLIBS += -lxview -lolgx -ltt -lX

all-acc := CC = acc
all-acc := CFLAGS += -Xt

.KEEP_STATE:

# make all (default) makes with "Classic C", make all-acc makes with 
# ANSI C.

all:	ttsample1 ttmon Sun_EditDemo

all-acc: all

ttmon:	ttmon.o ttmon_ui.o
	$(LINK.c) -o ttmon ttmon.o ttmon_ui.o $(LDLIBS)

Sun_EditDemo: cntl edit edit.types

# We refuse to overwrite existing ~/.cetables.  Remove ~/.cetables
# if you want the Sun_EditDemo types installed, replacing any existing
# types.
edit.types: edit.types.model
	tt_type_comp -DTOOLTALK_DEMO_DIR=`pwd` edit.types.model
	@echo ToolTalk types installed for Sun_EditDemo.

clean:
	rm -f	cntl edit ttsample1 ttmon ttmon.o ttmon_ui.o core \
		edit.types edit.types.ce

FRC:
