# # Makefile for REPCLASS.EXE. # # See make\readme.txt about an introduction to the make system introduced # in the CVS trunk on 2003-01-28. # # Copyright (C) 1998-2003 Ulrich M”ller. # This file is part of the XWorkplace source package. # XWorkplace is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published # by the Free Software Foundation, in version 2 as it comes in the # "COPYING" file of the XWorkplace main distribution. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # *************************************************************************** # * # * 1) include generic setup definitions (compiler options etc.) # * # *************************************************************************** !include ..\..\config.in !include ..\..\make\setup.in # *************************************************************************** # * # * 2) include mode-specific compiler inference rules # * # *************************************************************************** !include $(MAKE_INCLUDE_DIR)\compile_exe_st.in # this defines the proper OUTPUTDIR #!if [set SOMTMP=$(TEMP)] || \ # [set SMTMP=$(SOMTEMP)] || \ # [set SMEMIT=ih;h;c] || \ # [set SMADDSTAR=1] || \ # [set SMNOTC=1] #!endif RUNSC = sc -p -v -r -maddstar -mnoint -S128000 -C128000 .idl.h: # emit H, IH (include\classes): $(RUNSC) -sh;ih $(@B).idl # emit C (src\classes): $(RUNSC) -sc $(@B).idl # emit DEF (this dir): # $(RUNSC) -s def $(@B).idl # cleanup IH: this removes the ugly #pragma's for VAC++ 3.0 $(RUN_STRRPL) $(@B).ih "#pragma checkout(suspend)" " " $(RUN_STRRPL) $(@B).ih "#pragma checkout(resume)" " " # *************************************************************************** # * # * 3) list objects to be built # * # *************************************************************************** MODULESTEM = somtest OBJS = $(OUTPUTDIR)\$(MODULESTEM).obj LINKOBJS = $(OBJS) somtk.lib # *************************************************************************** # * # * 4) define specific stuff for linker include # * # *************************************************************************** BLDLEVELNAME = "$(XWPNAME) SOM testcase" COPYTODIR = $(PROJECT_BASE_DIR)\tools\somtest LINKMODULE = $(MODULESTEM).exe !undef RESOURCE_SOURCES # *************************************************************************** # * # * 5) link executable # * # *************************************************************************** !include $(MAKE_INCLUDE_DIR)\link_exe.in # this defines ALLTARGET for the next include MAINMAKERUNNING = 1 # *************************************************************************** # * # * 6) define main target # * # *************************************************************************** !include $(MAKE_INCLUDE_DIR)\targets.in somtest.h: somtest.idl $(OUTPUTDIR)\somtest.obj: somtest.c somtest.h somtest.ih