# this Makefile is for UNIX

CC=gcc
CFLAGS=-I../include -I../lib/conio -I../lib/lsm -I/home/jhall/src/unzip
LDFLAGS=-L../lib/conio -L/home/jhall/src/unzip
LDLIBS=../lib/dat.o ../lib/lsm/lsm_desc.o -lunzip -lconio -lncurses
LINT=lint

RM=rm -f

SOURCES=install.c cat.c getch_yn.c inst.c isfile.c repaint.c unz.c
OBJS=$(SOURCES:.c=.o)

# targets:

all: install.exe

install.exe: libs
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS)

libs: $(OBJS)

lint:
	$(LINT) $(CFLAGS) $(SOURCES)


# clean up:

clean:
	$(RM) *~

realclean: clean
	$(RM) $(OBJS)

distclean: realclean
	$(RM) install.exe
