#
# tzx V1.00 - a simplier and hopefully more robust transparent executable
# compression.
#
# Oleg Kibirev * April 1995 * oleg@gd.cs.CSUFresno.EDU
#
# This code is covered by General Public License, version 2 or any later
# version of your choice. You should recieve file "COPYING" which contains
# text of the license with any distribution of this program; if you don't 
# have it, a copy is available from ftp.gnu.ai.mit.edu.
#

CC=gcc
CFLAGS=-N -O2 -fomit-frame-pointer -m486 -s
MANDIR=/usr/local/man
MANEXT=1

all: untzx

install:
	cp tzx untzx detzx /usr/local/bin
	gzip -9 < tzx.1 > $(MANDIR)/man$(MANEXT)/tzx.$(MANEXT).gz
	ln -s tzx.$(MANEXT).gz $(MANDIR)/man$(MANEXT)/untzx.$(MANEXT).gz || true
	ln -s tzx.$(MANEXT).gz $(MANDIR)/man$(MANEXT)/detzx.$(MANEXT).gz || true
	[ -f /usr/local/bin/tcx ] || ln tzx /usr/local/bin/tcx
	chown daemon.root /usr/local/bin/untzx
	chmod 4755 /usr/local/bin/untzx

clean:
	rm -f *.o untzx 2>/dev/null
