| 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 | OBJS = $(OUTPUTDIR)\bs_base.obj\
|
|---|
| 54 | $(OUTPUTDIR)\bs_config.obj\
|
|---|
| 55 | $(OUTPUTDIR)\bs_logger.obj\
|
|---|
| 56 | $(OUTPUTDIR)\bs_string_base.obj\
|
|---|
| 57 | $(OUTPUTDIR)\bs_string.obj\
|
|---|
| 58 | $(OUTPUTDIR)\bs_string_uni.obj\
|
|---|
| 59 | $(OUTPUTDIR)\bs_string_conv.obj
|
|---|
| 60 |
|
|---|
| 61 | # ***************************************************************************
|
|---|
| 62 | # *
|
|---|
| 63 | # * 4) define specific stuff for linker include
|
|---|
| 64 | # *
|
|---|
| 65 | # ***************************************************************************
|
|---|
| 66 |
|
|---|
| 67 | # ***************************************************************************
|
|---|
| 68 | # *
|
|---|
| 69 | # * 5) link executable
|
|---|
| 70 | # *
|
|---|
| 71 | # ***************************************************************************
|
|---|
| 72 |
|
|---|
| 73 | ALLTARGET = $(OUTPUTDIR)\cppbase.lib
|
|---|
| 74 |
|
|---|
| 75 | # ***************************************************************************
|
|---|
| 76 | # *
|
|---|
| 77 | # * 6) define main target
|
|---|
| 78 | # *
|
|---|
| 79 | # ***************************************************************************
|
|---|
| 80 |
|
|---|
| 81 | !include $(MAKE_INCLUDE_DIR)\targets.in
|
|---|
| 82 |
|
|---|
| 83 | $(OUTPUTDIR)\cppbase.lib: $(OBJS)
|
|---|
| 84 | - del $@
|
|---|
| 85 | ilib /nol /nob $@ @<<$(TEMP)\ilib.lnk
|
|---|
| 86 | +$(OBJS: =&^
|
|---|
| 87 | );
|
|---|
| 88 | <<
|
|---|
| 89 |
|
|---|