# make file # ################################################################################ # name of project the makefile builds PRJ_NAME=sample ################################################################################ # setup compile configuration CFG=Debug ################################################################################ # Begin Project # omnimark lib directory H_DIR=c:\usr\omnimark\h #omnimark include directory I_DIR=c:\usr\omnimark\include # file extension definitions # omnimark source file extension SRC_SFX=.xom # ominmark compiled file extension CSC_SFX=.xap # omnimark expanded file (post-preprocessor, pre-compile) extension EXP_PFX=. EXP_SFX=.xom~ # omnimark temp. error file extension TMPERR_PFX=. TMPERR_SFX=.xer~ # omnimark error file extension ERR_SFX=.xer # omnimark command line definitions # generic omnimark executable/command-line XOM=omnimark -nowait OUTDIR=$(CFG) INTDIR=$(CFG) # omnimark compile command-line options XOMC_OPTS=-s $(INTDIR)/$(EXP_PFX)$(PRJ_NAME)$(EXP_SFX) \ -save $(OUTDIR)/$(PRJ_NAME)$(CSC_SFX) \ -brief \ -warning \ -log $(INTDIR)/$(TMPERR_PFX)$(PRJ_NAME)$(TMPERR_SFX) # omnimark pre-processor command-line options XOMPRE_OPTS=-load c:\usr\bin\xompre.xap \ $(PRJ_NAME)$(SRC_SFX) \ -of $(INTDIR)/$(EXP_PFX)$(PRJ_NAME)$(EXP_SFX) \ -brief \ -d I .;$(I_DIR);$(H_DIR) \ -d D $(CFG) # omnimark post-processor command-line options XOMPOST_OPTS=-load c:\usr\bin\xompost.xap \ -brief \ -d sErrFile $(INTDIR)/$(TMPERR_PFX)$(PRJ_NAME)$(TMPERR_SFX) \ -d sIFile $(INTDIR)/$(EXP_PFX)$(PRJ_NAME)$(EXP_SFX) ################################################################################ # project definitions # list of all project files. PRJ_FILES=$(PRJ_NAME)$(SRC_SFX) \ $(H_DIR)/assert.xih \ $(H_DIR)/omcrc.xih \ $(I_DIR)/fi.xin \ $(I_DIR)/consolio.xin \ $(I_DIR)/filefns.xin ################################################################################ # target definitions # omnimark compiled file .SILENT: .SUFFIXES: .xom .xin .xih .xom~ .xin~ .xih~ .IGNORE: $(OUTDIR)/$(PRJ_NAME)$(CSC_SFX): $(PRJ_FILES) if not exist $(OUTDIR) mkdir $(OUTDIR) if not exist $(INTDIR) mkdir $(INTDIR) $(XOM) $(XOMPRE_OPTS) $(XOM) $(XOMC_OPTS) $(XOM) $(XOMPOST_OPTS) # end of makefile ################################################################################