#
# Makefile to produce DEM utils
#   
# -c means compile, don't link.  -g means add debugging code

CC = gcc
SRCFLAGS= -ansi -pedantic -O2 -Wall ${F_DEFINES}
OBJFLAGS=
LIBS	=
INCS    = 
UTILS	= d1topgm demtod1
BINDIR	= /home/beale/bin

all:    ${UTILS}

d1topgm:	d1topgm.c
	$(CC) -o d1topgm d1topgm.c ${SRCFLAGS}

demtod1:	demtod1.c
	$(CC) -o demtod1 demtod1.c ${SRCFLAGS}
.c.o:	
	$(CC) -c $*.c ${SRCFLAGS} ${INCS}

install:	${UTILS}
	strip ${UTILS}
	mv ${UTILS} ${BINDIR}

lint: 
	$(CC) -ansi -pedantic -Wall -fsyntax-only ${UTILS}

clean:
	rm -f *.o *~ ${UTILS}

