#
# At the moment the whole thing
# depends on ibm c/c++ compiler
# (compiling AND linking)
#
# In later releases I will mark these
# sections with !ifdefs to allow
# other compilers.

.SUFFIXES:
.SUFFIXES: .CPP .C .OBJ .EXE .SQC .TXT .MSG .DLG .H .RC

{.}.C.OBJ:
   @echo ***** COMPILING $<
   @icc /Q+ /c /Ss $(switches) $(localswitch)  $< >lasterr

{.}.CPP.OBJ:
   @echo ***** COMPILING $<
   @icc /Q+ /c $(switches) $(localswitch)  $< >lasterr

{.}.TXT.MSG:
   @ECHO ***** GENERATION MSG-FILE $<
   @mkmsgf /v $< $(exepath)\$(<:.TXT=.MSG) >lasterr
   @del lasterr

#
#   DEFINES / MACROS
#

projectpath = ..

exepath=..\..\exe
objpath=..\..\obj
makepath=..\..\make
respath=..\resource
incpath=..\include

linker=ilink

# RELEASE = 1

!ifdef RELEASE

switches=/Q /O+ /Gd- /G5 /Gm+ /Fo$(objpath)^\ /DRELEASE $(localswitch)
linkswitch=/nologo /Optfunc /Packcode /Packdata:2 /exepack:2

!else

switches=/Q /Ss /Ti+ /Gd+ /Gm+ /Fo$(objpath)^\ $(localswitch)
linkswitch=/nologo /debug /dbgpack

!endif


#
#  PROJECTS
#

version_less_exe="LESS V0.1 --- (c) 1997 by bns"
less_exep=..\source\less

version_lesscfg_exe="LESS V0.1 --- (c) 1997 by bns"
lesscfg_exep=..\source\lesscfg

#
#  GLOBALS
#

globals= $(makepath)\less.mak \
         $(makepath)\projdef \
         $(incpath)\defines.def $(incpath)\struct.def


