#
# hatch - a tool for hatching files into Fidonet file areas
#
# Makefile
#
# Copyright (c) 1995 by Martin Schulze
#
# You may distribute it under the terms of the GNU General Public
# License as specified in the file COPYING that comes with this
# distribution.
#
# Martin Schulze
# mgs@infodrom.north.de
#
# general Makefile
#

# User under which all fido stuff runs
#
USER=fido
GROUP=uucp

# Destination dir for executable
#
DESTBIN =/usr/local/bin
DESTMAN =/usr/local/man

CC= gcc
CFLAGS =-O4
obj = hatch.o crc.o
INSTALL=install
.c.o:	
	$(CC) -c $(CFLAGS) $< 

hatch:	$(obj) 
	gcc -o hatch $(obj)

clean:
	rm -f *~ *.o hatch

install: hatch
	${INSTALL} -g ${GROUP} -o ${USER} -m 6711 hatch ${DESTBIN}
	${INSTALL} -m 644 hatch.1 ${DESTMAN}/man1

what:	
	@echo "make           builds hatch"
	@echo "make install   installs hatch"
