DEST = .
#CFLAGS = -O -DSysV
CFLAGS = -O
LDFLAGS = -s

SRCS = crc.c decode.c encode.c ish.c jis7.c jis8.c sjis.c njis.c
OBJS = crc.o decode.o encode.o ish.o jis7.o jis8.o sjis.o njis.o

ISH = ish

$(ISH): $(OBJS)
	@echo -n "Loading $(ISH) ... "
	@$(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $(ISH)
	@echo "done"

clean:
	@rm -f $(OBJS) $(ISH)

install: $(ISH)
	@echo Installing $(ISH) in $(DEST)
	@install -s $(ISH) $(DEST)

$(OBJS) : $(HDRS)

decode.o: ish.h
encode.o: ish.h
ish.o: ish.h
jis7.o: ish.h
jis8.o: ish.h
sjis.o: ish.h
njis.o: ish.h
