#------------------------------------------------------------------------
#  NIXTERM
#  Copyright (c) 1998-1999  Andrew Apted  <ajapted@netspace.net.au>
#------------------------------------------------------------------------
#
#  MAKEFILE 
#
#------------------------------------------------------------------------
#
#  Targets
#
#    all: make & install the executables.
#
#    source: make the executables.
#
#    clean: remove the executables and the .o files.
#
#    install: install previously made executables.
#
#------------------------------------------------------------------------

TOPDIR=.

include $(TOPDIR)/Makerules


PROGRAMS=nixterm

CFLAGS  += $(INCLUDE) $(OPTFLAGS)
LDFLAGS += $(LIBS)


all: source

source: $(PROGRAMS)

clean:
	rm -f *.o $(OBJECTS) $(PROGRAMS) core

install: source
	@echo
	@echo Installing Nixterm...
	@echo
	tic nixterm.terminfo
	install -m 755 nixterm $(BINDIR)/nixterm


nixterm.o: nixterm.c


.PHONY: all source clean install
