#################################################################
#
# Makefile for SHE 
# Copyright (C) 1994 Nicola Brown.
# See GNU General Public License.
# 

BINDIR=/usr/local/bin
MANDIR=/usr/local/man

CC=gcc
 CFLAGS= -O2 -s -Wall -fomit-frame-pointer -Wstrict-prototypes
#CFLAGS= -g

OBJ= hexedit.o edit.o hexdec.o movement.o search.o

all: she 

she: $(OBJ)
	$(CC) $(CFLAGS) $(OBJ) -o she -lncurses

install: she she.1
	install -m 755 -o root -g root she $(BINDIR)	
	install -m 644 -o root -g root she.1 $(MANDIR)/man1

hexedit.o: hexedit.c hexedit.h
edit.o: hexedit.h edit.c
hexdec.o: hexdec.c
movement.o: movement.c hexedit.h
search.o: search.c

clean:
	rm -rf she $(OBJ) core *~
