#   File:          MAKEFILE
#
#   Description:   Make file for $partname$
#
#   Written by:    $author$
#
#   Copyright:     (c) $years$ by $company$
#                  - all rights reserved
#
#   Generated by:  $toolname$ $toolversion$

# If you wish to add to the existing compile and link flags, you can
# do it with these macros

ExtraSOMCompileOptions = -I$publicpath$

ExtraCompileOptions = -I$publicpath$ $ExtraCompileOptionsForAIX$

ExtraLinkOptions =

# ===================================================================
# Subdirectories you want nmake to visit
Subdirs = $lang_subdir$

# ===================================================================
# Targets

# IdlTargets = List all the idls
# HdrTargets = List all the C++ headers
# MsgTargets = List all the message catalogs
# LibTargets = List all export libraries to be built
# DllTargets = List all shared libraries to be built
#
# The Reg* and File*  macros are used to generate a table of contents
# and an install package


IdlTargets = $filename$.idl

HdrTargets = $filename$.h

MsgTargets =

LibTargets = $(ODSRC)/lib/$(LibPrefix)$filename$.$(LibSuffix)

#
# Note that the DLL is placed into the "runtime" directory
# specified on "settings" page of PartMeister.
#
# Alternatively this could be "$(ODSRC)/$(DllDir)/$filename$.dll"
# which would ignore the "runtime" setting.
#
DllTargets = $runtimepath$/$filename$.dll

RegMain=$filename$.dll
RegIDL=$filename$.idl
RegClassName=$partname$
RegKind=$kindnq$
FilesDlls=$filename$.dll $parentfilename$.dll iodutils.dll
FilesIncs=$(IdlTargets) $(IdlTargets:.idl=.xh) $(HdrTargets)
FilesLibs=$filename$.$(LibSuffix)
FilesCats=$filename$.cat
FilesHelps=$filename$.hlp
FilesStationery=


# ===================================================================
# Common Inference Rules

# Platform.mak contains all the platform specific code to build the
# sample. Check it to verify which compiler the sample is using.

include $(ODSRC)/src/Platform.mak


# ===================================================================
# Rules

$filename$ObjList = $filename$.$(Obj)

$filename$.$(Obj) : $filename$.cpp $filename$.xih $filename$.h

$filename$LibList = \
	X11 \
	Xt \
	Xm \
        somtk \
        odimagng \
        odui \
        odlayout \
        odcore \
        odstorag \
        iodutils \
        $parentfilename$


$(DllTargets) :  $(ODSRC)/lib/$filename$.$(Exp) \
        $($filename$ObjList)
	@OBJSRCS="$($filename$ObjList)"; \
	LIBSRCS="$($filename$LibList)"; \
	EXPSRC="$(ODSRC)/lib/$filename$.$(Exp)"; \
	$(BuildDll)


$(ODSRC)/lib/$filename$.$(Def) :  $filename$.$(Def)
	@$(BuildCopy)


$(ODSRC)/lib/$(LibPrefix)$filename$.$(LibSuffix) : $(ODSRC)/lib/$filename$.$(Def)\
	$($filename$ObjList)
	@EXPSRC="$(ODSRC)/lib/$filename$.$(Exp)"; \
	$(BuildLib)

# end of file
