# This file is part of the CJK package Version 4.2.0 (13-Dec-1998)

# UNIX Makefile for thaiconv

CC=cc
CFLAGS=-O -s
bindir=/usr/local/bin

all: extconv

thaiconv:
	$(CC) $(CFLAGS) -o thaiconv thaiconv.c

extconv:
	$(CC) $(CFLAGS) -o extconv extconv.c

# this builds a .dvi-file using the c2cweb package
documentation: thaiconv.c
	c2cweb -b "The thaiconv program" -l -v thaiconv.c
	$(CWEAVE) +ai thaiconv.cw
	$(TEX) thaiconv

clean:
	-rm extconv

realclean: clean

install: extconv
	-cp extconv $(bindir)
