File: OUTPUT_DIRS.msvc

package info (click to toggle)
hercules 3.07-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 14,572 kB
  • ctags: 18,225
  • sloc: ansic: 162,921; sh: 8,522; makefile: 781; perl: 202; sed: 16
file content (63 lines) | stat: -rw-r--r-- 1,756 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# ***************************************************************************
#     OUTPUT_DIRS.msvc      (!INCLUDE ed by "makefile-dllmod.msvc")
# --------------------------------------------------------------------------
# (c) Copyright Roger Bowler, 2005-2009
# --------------------------------------------------------------------------
# $Id: OUTPUT_DIRS.msvc 5155 2009-02-05 22:44:20Z rbowler $
#
#  Define the build output directories...
#
#
#                           CHANGE HISTORY
# $Log$
# Revision 1.2  2008/10/11 23:46:01  fish
# Add CVS "Id" and "Log"
#
#
# DD/MM/YY Description
#
# 26/12/06 Fish: created by extraction from existing makefile-dllmod.msvc
#
# SET PREFIX=NONE to generate output directories named bin,obj,pdb,map,cod
# (this is for nmake version 6 which barfs if the command line is too long)
# Otherwise the output directories are named:
# msvc.[debug.]yyy.bin/obj/pdb/map/cod
# where yyy is "dllmod" (for i386), or "AMD64" or "IA64"
# (this naming convention is to avoid breaking existing build procedures)
# ***************************************************************************

!IFDEF NODEBUG
DEBUG_PREFIX =
!ELSE
DEBUG_PREFIX = debug.
!ENDIF

!IF ("$(CPU)" == "i386")
ARCH_PREFIX = dllmod.
!ELSE
ARCH_PREFIX = $(CPU).
!ENDIF

!IF ("$(PREFIX)" == "NONE") || ("$(PREFIX)" == "none")
PREFIX =
!ELSE
PREFIX = msvc.$(DEBUG_PREFIX)$(ARCH_PREFIX)
!ENDIF

!IF ("$(EXEDIR)" == "") || ("$(OBJDIR)" == "") || ("$(PDBDIR)" == "") || ("$(MAPDIR)" == "")
EXEDIR = $(PREFIX)bin
OBJDIR = $(PREFIX)obj
PDBDIR = $(PREFIX)pdb
MAPDIR = $(PREFIX)map
!ENDIF

!IFNDEF ASSEMBLY_LISTINGS
!UNDEF ASMDIR
!ELSEIF ("$(ASMDIR)" == "")
ASMDIR = $(PREFIX)cod
!ENDIF

# (shorter names are easier to use)

X = $(EXEDIR)\$(NULL)
O = $(OBJDIR)\$(NULL)