~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to include/makeinclude/build_dll.bor

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# build_dll.bor,v 4.16 2003/12/30 19:08:07 elliott_c Exp
3
 
#
4
 
# Rules for linking a dll
5
 
#
6
 
# Inputs:
7
 
# ~~~~~~~
8
 
# NAME - undecorated name of target
9
 
# CFLAGS - extra compiler flags for building target
10
 
# CPPDIR - list of directories containing source files
11
 
# OBJFILES - list of (non-system) object files
12
 
# LIBFILES - list of (non-system) libraries
13
 
# PASCAL - if defined means link dll against pascal run-time library
14
 
# DEBUG - if defined means building with debug information
15
 
# UNICODE - if defined when building a unicode dll
16
 
#
17
 
 
18
 
# Check if the output location was explicitly specified.
19
 
!if $d(BASE_BINDIR) || $d(BINDIR)
20
 
EXPLICIT_BINDIR = 1
21
 
!endif
22
 
 
23
 
!ifdef INSTALL_THIS_TARGET
24
 
!ifndef EXPLICIT_BINDIR
25
 
BINDIR = $(CORE_BINDIR)
26
 
!endif
27
 
!endif
28
 
 
29
 
!include <$(ACE_ROOT)\include\makeinclude\decorator.bor>
30
 
!include <$(ACE_ROOT)\include\makeinclude\outputdir.bor>
31
 
!include <$(ACE_ROOT)\include\makeinclude\compiler.bor>
32
 
 
33
 
!ifdef NAME
34
 
!ifndef TARGET
35
 
TARGET = $(BINDIR)\$(NAME)$(LIB_DECORATOR).dll
36
 
!endif
37
 
!ifndef INSTALL_THIS_TARGET
38
 
!ifndef EXPLICIT_BINDIR
39
 
CORE_TARGET = $(CORE_BINDIR)\$(NAME)$(LIB_DECORATOR).dll
40
 
!endif
41
 
!endif
42
 
!endif
43
 
 
44
 
all: $(TARGET) $(CORE_TARGET)
45
 
        @echo Do nothing >NUL
46
 
 
47
 
!ifdef TARGET
48
 
$(TARGET): $(OBJFILES) $(RESOURCE)
49
 
        @$(MAKE_BINDIR)
50
 
        $(LD) @&&!
51
 
        $(COMMON_LFLAGS) $(DLL_LFLAGS) $(LFLAGS) +
52
 
        $(DLL_STARTUP_OBJ) $(LIBFILES) $(OBJFILES),     +
53
 
        $(TARGET),, +
54
 
        $(COMMON_LIBS),, +
55
 
        $(RESOURCE)
56
 
!
57
 
!ifndef DEBUG
58
 
        @del $(TARGET:.dll=.tds)
59
 
!endif
60
 
!ifdef CORE_TARGET
61
 
$(CORE_TARGET): $(TARGET)
62
 
        @copy $(TARGET) $(CORE_TARGET) >NUL
63
 
!ifdef DEBUG
64
 
        @copy $(TARGET:.dll=.tds) $(CORE_TARGET:.dll=.tds) >NUL
65
 
!endif
66
 
!endif
67
 
!endif
68
 
 
69
 
!include <$(ACE_ROOT)\include\makeinclude\clean.bor>
70
 
 
71
 
INSTALL_TYPES = dll lib includes
72
 
 
73
 
!include <$(ACE_ROOT)\include\makeinclude\install.bor>
74
 
 
75
 
!ifdef CPPDIR
76
 
.path.cpp = $(CPPDIR)
77
 
!endif
78
 
 
79
 
!ifdef CDIR
80
 
.path.c = $(CDIR)
81
 
!endif
82
 
 
83
 
!ifdef RESDIR
84
 
.path.rc = $(RESDIR)
85
 
!else
86
 
.path.rc = .
87
 
!endif
88
 
 
89
 
.path.obj = $(OBJDIR)
90
 
 
91
 
!ifdef DEBUG
92
 
!ifndef NO_FULL_PATH
93
 
USE_FULL_PATH = 1
94
 
!endif
95
 
!endif
96
 
 
97
 
.cpp.obj:
98
 
        @$(MAKE_OBJDIR)
99
 
!ifdef USE_FULL_PATH
100
 
        @for /F "delims=;" %i in ('cd') do @echo $(CC) $(COMMON_CFLAGS) $(DLL_CFLAGS) $(CFLAGS) -c -n$(@D) %i\$(<:.\=)
101
 
        @for /F "delims=;" %i in ('cd') do @$(CC) $(COMMON_CFLAGS) $(DLL_CFLAGS) $(CFLAGS) -c -n$(@D) %i\$(<:.\=)
102
 
!else
103
 
        $(CC) $(COMMON_CFLAGS) $(DLL_CFLAGS) $(CFLAGS) -c -n$(@D) $<
104
 
!endif
105
 
 
106
 
.c.obj:
107
 
        @$(MAKE_OBJDIR)
108
 
!ifdef USE_FULL_PATH
109
 
        @for /F "delims=;" %i in ('cd') do @echo $(CC) $(COMMON_CFLAGS) $(DLL_CFLAGS) $(CFLAGS) -c -n$(@D) %i\$(<:.\=)
110
 
        @for /F "delims=;" %i in ('cd') do @$(CC) $(COMMON_CFLAGS) $(DLL_CFLAGS) $(CFLAGS) -c -n$(@D) %i\$(<:.\=)
111
 
!else
112
 
        $(CC) $(COMMON_CFLAGS) $(DLL_CFLAGS) $(CFLAGS) -c -n$(@D) $<
113
 
!endif
114
 
 
115
 
.rc.res:
116
 
        @$(MAKE_OBJDIR)
117
 
        $(RC) -fo$@ $<
118
 
 
119
 
.autodepend