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