###############################################
#
#  WMake Makefile for Calc
#
# (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.9  $
#   $Author:   kcatlin  $
#     $Date:   24 Feb 1992 17:48:32  $
#
###############################################

# Set PENPOINT_PATH to your environment variable, if it exists.
# Otherwise, set it to \penpoint
!ifdef %PENPOINT_PATH
PENPOINT_PATH = $(%PENPOINT_PATH)
!else
PENPOINT_PATH = \penpoint
!endif


#  The DOS name of your project directory
PROJ = calc

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

#  The PenPoint name of your application
EXE_NAME = Calculator

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

#  Object files needed to build your app
EXE_OBJS	= cappmeth.obj calcapp.obj s_calc.obj

#  Libs needed to build your app
EXE_LIBS = penpoint app

# The dlc file for the app
EXE_DLC 		= 	calc.dlc

#  The linker name for the optional DLL : company-name-V<major>(<minor>)
DLL_LNAME	= GO-CALC_ENG-V1(0)

#  Files for the optional DLL
DLL_OBJS 	= cengmeth.obj calceng.obj

#  Libs needed to build the optional DLL
DLL_LIBS = penpoint

# Targets

all: $(APP_DIR)\$(PROJ).exe $(APP_DIR)\$(PROJ).dll .SYMBOLIC

#  The clean rule must be :: because it is also defined in srules
clean :: .SYMBOLIC
 -del cengmeth.h
 -del cappmeth.h

#  Dependencies

cengmeth.obj: cengmeth.tbl calceng.h
calceng.obj: calceng.c calceng.h 
cappmeth.obj: calcapp.h cappmeth.tbl 
calcapp.obj: calcapp.c calcapp.h calceng.h 

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