SRCS =  \
	Quarks.c     button.c     data.c       main.c       scrollbar.c \
	StrToGrav.c  charproc.c   hangul.c     menu.c       tabs.c \
	VTPrsTbl.c   chat.c       hanja.c      misc.c       util.c \
	automata.c   cursor.c     input.c      screen.c

OBJS = $(SRCS:.c=.o)
TERMCAPLIB = -ltermcap

CFLAGS = -O2 -DUSE_SYSV_UTMP -DUSE_TTY_GROUP -DUTMP \
	-D_BSD_TTY_FLAVOR -D__using_BSD -D__using_DGUX

hanterm: $(OBJS)
	$(CC) -o hanterm $(OBJS) -lXaw -lXmu -lXt -lXext -lX11 $(TERMCAPLIB)

clean: $(OBJS) hanterm
	-/bin/rm -f *.o hanterm
