# Generated automatically from Makefile.in by configure.
#  Makefile for CodeWar X-Craft Gumby v1.0
# 
#  Copyright (C) 1996/7 Rhett D. Jacobs <rdj@cea.com.au>
# 
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 1, or (at your option)
#  any later version.
# 
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
# 
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
#  Last Modified: <rdj>
#
CC=		gcc
SHELL=		/bin/sh
SRCDIR=		/home/rhett/CodeWar/progs/gumby
VPATH=		/home/rhett/CodeWar/progs/gumby
CODE_LIB=	/home/rhett/CodeWar/lib
CODE_INC=	/home/rhett/CodeWar/include
CFLAGS=		-g -O -fPIC -pipe -Wall
LDLIB=		-lXpm -lX11 -lm -lncurses

# On Xenix and the IBM RS6000, double-dot gets screwed up.
dot = 		.
LIBDIR=		$(CODE_LIB)
LIBINC=		-L/usr/X11R6/lib -L$(LIBDIR)
INCLUDE=	-I/usr/X11R6/include \
		-I$(CODE_INC)
LIBOUT=		$(LIBDIR)/libCodeWar.so
DEPEND=		gccmakedep
OUTPUT=		gumby
SRC=		main.c	utils.c
OBJ=		$(SRC:.c=.o)

all:		$(OUTPUT)
$(OUTPUT):	$(OBJ)
		$(CC) -o $@ $(OBJ) $(LDLIB) $(LIBINC) $(LIBPATH)$(LIBOUT)
.c:
		$(CC) -o $@ $*.c $(INCLUDE) $(LDLIB) $(LIBINC) $(LIBOUT)

.SUFFIXES:	.c .h .o
.PHONY:		clean

.c.o:
		$(CC) $(CFLAGS) -c $*.c $(INCLUDE)
clean:
		-rm *.o *~ *.flc $(OBJ) $(OUTPUT)