# Makefile of RJIS ( Recover JIS code from degenerate file )
# $Header: Makefile,v 0.1 92/09/24 takahasi Exp $
# Copyright (C) 1992
# Hironobu Takahashi (takahasi@tiny.or.jp)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versions 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with KAKASI, see the file COPYING.  If not, write to the Free
# Software Foundation Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

BINDIR=/usr/local/bin
LIBDIR=/usr/local/lib/recjis
CC?=cc
CFLAGS?= -O -pipe
CFLAGS+= -DLIBDIR=\"$(LIBDIR)\"

prog: rjis rujis rsjis dejis

rjis: rjis.o
	$(CC) $(CFLAGS) -o $@ rjis.o

rujis: rujis.o
	$(CC) $(CFLAGS) -o $@ rujis.o

rsjis: rsjis.o
	$(CC) $(CFLAGS) -o $@ rsjis.o

dejis: dejis.o
	$(CC) $(CFLAGS) -o $@ dejis.o

install: prog ujis_tbl sjis_tbl
	install -cs rjis rujis rsjis dejis $(BINDIR)/
	install -c  -m 0777 ujis_tbl sjis_tbl $(LIBDIR)/


syntax highlighted by Code2HTML, v. 0.9.1