# Generated automatically from Makefile.in by configure.
#
# $Id: Makefile.in,v 1.13 1999/11/14 12:10:39 nordstrom Exp $
#

.SUFFIXES:
.SUFFIXES: .c .o

PACKAGE		=Strip
VERSION		=0.05i

APP		=Strip
ICONTEXT 	="Strip"
APPID 		=SJLO

PRC 		=$(APP).prc
RCP		=$(APP).rcp
SRC		=$(APP).c
GRC		=$(APP).grc
BIN		=$(APP).bin

CFLAGS		=-O2 $(DEFINES) $(INC)
#CFLAGS		=-g $(DEFINES) $(INC)
INCLUDES	=@INCLUDES@
LANG		=@LANG@

#INC		=-I/usr/local/m68k-palmos-coff/include/PalmOS

CC		=/usr/local/bin/m68k-palmos-coff-gcc
PILRC		=/usr/local/bin/pilrc
OBJRES		=/usr/local/bin/m68k-palmos-coff-obj-res
BUILDPRC	=/usr/local/bin/build-prc
TXT2BITM	=/usr/local/bin/txt2bitm
OTHERFILES	=md5PalmDriver.c idea.c ideaDriver.c

PILOT_XFER	=/usr/bin/pilot-xfer
CTAGS		=/usr/bin/ctags
AUTOCONF	=/usr/bin/autoconf

all:		$(PRC)
                     
$(PRC):		grc.stamp bin.stamp;
		$(BUILDPRC) $(PRC) $(ICONTEXT) $(APPID) *.grc *.bin $(LINKFILES)
		ls -l *.prc
		rm -rf *.o *.bin *.grc *.stamp *~ *.BAK
		tar cf ../Strip05iLatest.tar ./*

grc.stamp:    	$(APP);
		$(OBJRES) $(APP)
		touch $@

$(APP): 	$(SRC:.c=.o) ;
		$(CC) $(CFLAGS) $^ $(OTHERFILES)  -o $@

bin.stamp:	$(RCP) ;
		$(PILRC) $^ $(BINDIR)
		touch $@

%.o:  %.c ;
		$(CC) $(CFLAGS) -c $< -o $@
		touch $<
	        # enable this line if you want to compile EVERY time.

depend dep: ;
		$(CC) -M $(SRC) > .dependencies


clean:
		rm -rf *.o $(APP) *.bin *.grc *.prc *.stamp *~ *.BAK

distclean: 	clean
		rm -f Makefile config.* .depend configure
