| 1 | # | 
|---|
| 2 | # See make\readme.txt about an introduction to the make system introduced | 
|---|
| 3 | # in the CVS trunk on 2003-01-28. | 
|---|
| 4 | # | 
|---|
| 5 | #       Copyright (C) 1998-2003 Ulrich Mller. | 
|---|
| 6 | #       This file is part of the XWorkplace source package. | 
|---|
| 7 | #       XWorkplace is free software; you can redistribute it and/or modify | 
|---|
| 8 | #       it under the terms of the GNU General Public License as published | 
|---|
| 9 | #       by the Free Software Foundation, in version 2 as it comes in the | 
|---|
| 10 | #       "COPYING" file of the XWorkplace main distribution. | 
|---|
| 11 | #       This program is distributed in the hope that it will be useful, | 
|---|
| 12 | #       but WITHOUT ANY WARRANTY; without even the implied warranty of | 
|---|
| 13 | #       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
|---|
| 14 | #       GNU General Public License for more details. | 
|---|
| 15 | # | 
|---|
| 16 |  | 
|---|
| 17 | # *************************************************************************** | 
|---|
| 18 | # * | 
|---|
| 19 | # *     1) include generic setup definitions (compiler options etc.) | 
|---|
| 20 | # * | 
|---|
| 21 | # *************************************************************************** | 
|---|
| 22 |  | 
|---|
| 23 | !include $(PROJECT_BASE_DIR)\config.in | 
|---|
| 24 | !include $(PROJECT_BASE_DIR)\make\setup.in | 
|---|
| 25 |  | 
|---|
| 26 | # *************************************************************************** | 
|---|
| 27 | # * | 
|---|
| 28 | # *     2) include mode-specific compiler inference rules | 
|---|
| 29 | # * | 
|---|
| 30 | # *************************************************************************** | 
|---|
| 31 |  | 
|---|
| 32 | !ifndef CC_HELPERS | 
|---|
| 33 | CC_HELPERS = error! | 
|---|
| 34 | !endif | 
|---|
| 35 |  | 
|---|
| 36 | !ifndef NOINCLUDEDEPEND | 
|---|
| 37 | !ifndef OUTPUTDIR_HELPERS | 
|---|
| 38 | !error OUTPUTDIR_HELPERS is not defined. | 
|---|
| 39 | !endif | 
|---|
| 40 | !endif | 
|---|
| 41 |  | 
|---|
| 42 | CC = $(CC_HELPERS) | 
|---|
| 43 | OUTPUTDIR = $(OUTPUTDIR_HELPERS) | 
|---|
| 44 |  | 
|---|
| 45 | !include $(MAKE_INCLUDE_DIR)\_sub_compile.in | 
|---|
| 46 |  | 
|---|
| 47 | # *************************************************************************** | 
|---|
| 48 | # * | 
|---|
| 49 | # *     3) list objects to be built | 
|---|
| 50 | # * | 
|---|
| 51 | # *************************************************************************** | 
|---|
| 52 |  | 
|---|
| 53 | !include helpers_pre.in | 
|---|
| 54 |  | 
|---|
| 55 | # *************************************************************************** | 
|---|
| 56 | # * | 
|---|
| 57 | # *     4) define specific stuff for linker include | 
|---|
| 58 | # * | 
|---|
| 59 | # *************************************************************************** | 
|---|
| 60 |  | 
|---|
| 61 | # *************************************************************************** | 
|---|
| 62 | # * | 
|---|
| 63 | # *     5) link executable | 
|---|
| 64 | # * | 
|---|
| 65 | # *************************************************************************** | 
|---|
| 66 |  | 
|---|
| 67 | ALLTARGET = $(OUTPUTDIR)\helpers.lib | 
|---|
| 68 |  | 
|---|
| 69 | # *************************************************************************** | 
|---|
| 70 | # * | 
|---|
| 71 | # *     6) define main target | 
|---|
| 72 | # * | 
|---|
| 73 | # *************************************************************************** | 
|---|
| 74 |  | 
|---|
| 75 | !include $(MAKE_INCLUDE_DIR)\targets.in | 
|---|
| 76 |  | 
|---|
| 77 | $(OUTPUTDIR)\helpers.lib: $(OBJS) | 
|---|
| 78 | - del $@ | 
|---|
| 79 | ilib /nol /nob $@ @<<$(TEMP)\ilib.lnk | 
|---|
| 80 | +$(OBJS: =&^ | 
|---|
| 81 | ); | 
|---|
| 82 | << | 
|---|
| 83 |  | 
|---|
| 84 | # *************************************************************************** | 
|---|
| 85 | # * | 
|---|
| 86 | # *     explicit targets | 
|---|
| 87 | # * | 
|---|
| 88 | # *************************************************************************** | 
|---|
| 89 |  | 
|---|
| 90 | cp: $(OUTPUTDIR)\helpers_cp.lib | 
|---|
| 91 |  | 
|---|
| 92 | $(OUTPUTDIR)\helpers_cp.lib: $(CPOBJS) | 
|---|
| 93 | - del $@ | 
|---|
| 94 | ilib /nol /nob $@ @<<$(TEMP)\ilib.lnk | 
|---|
| 95 | +$(CPOBJS: =&^ | 
|---|
| 96 | ); | 
|---|
| 97 | << | 
|---|
| 98 |  | 
|---|
| 99 |  | 
|---|