###############################################
#
#  WMake Makefile for the Paint application
#
# (C) Copyright 1992 by GO Corporation, All Rights Reserved.
#
# You may use this Sample Code any way you please provided you
# do not resell the code and that this notice (including the above
# copyright notice) is reproduced on all copies.  THIS SAMPLE CODE
# IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, AND GO CORPORATION
# EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES, INCLUDING BUT NOT
# LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
# PARTICULAR PURPOSE. IN NO EVENT WILL GO CORPORATION BE LIABLE TO YOU
# FOR ANY CONSEQUENTIAL,INCIDENTAL,OR INDIRECT DAMAGES ARISING OUT OF
# THE USE OR INABILITY TO USE THIS SAMPLE CODE.
#
# $Revision:   1.6  $
#   $Author:   kcatlin  $
#     $Date:   31 Jan 1992 08:34:40  $
#
###############################################

!ifdef %PENPOINT_PATH
PENPOINT_PATH = $(%PENPOINT_PATH)
!else
PENPOINT_PATH = \penpoint
!endif

#  The DOS name of your project directory.
PROJ = paint  

#  Standard defines for sample code (needs the PROJ) definition
!INCLUDE $(PENPOINT_PATH)\sdk\sample\sdefines.mif

#  The PenPoint name of your application
EXE_NAME	= Paint Demo App

#  The linker name for your executable : company-name-V<major>(<minor>)
EXE_LNAME	= GO-PAINT_DEMO_APP-V1(0)

#  Object files needed to build your app
EXE_OBJS = methods.obj papp.obj pwin.obj pixwin.obj pixelmap.obj cutil.obj

#  Libs needed to build your app
EXE_LIBS = penpoint app win input

RES_FILES = bitmap.res

# Targets

all: $(APP_DIR)\$(PROJ).exe $(APP_DIR)\app.res .SYMBOLIC

#  The clean rule must be :: because it is also defined in srules
clean :: .SYMBOLIC
 -del methods.h
 -del methods.tc
 -del app.res

#  Dependencies

methods.obj: methods.tbl pwin.h pixwin.h

papp.obj: papp.c     methods.h pwin.h

pwin.obj: pwin.c     methods.h

pixwin.obj: pixwin.c methods.h pixwin.h cutil.h pixelmap.h

pixelmap.obj: pixelmap.c pixelmap.h

cutil.obj: cutil.c cutil.h

#  Standard rules for sample code
!INCLUDE $(PENPOINT_PATH)\sdk\sample\srules.mif
