2
# build_dll.bor,v 4.16 2003/12/30 19:08:07 elliott_c Exp
4
# Rules for linking a dll
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
18
# Check if the output location was explicitly specified.
19
!if $d(BASE_BINDIR) || $d(BINDIR)
23
!ifdef INSTALL_THIS_TARGET
24
!ifndef EXPLICIT_BINDIR
25
BINDIR = $(CORE_BINDIR)
29
!include <$(ACE_ROOT)\include\makeinclude\decorator.bor>
30
!include <$(ACE_ROOT)\include\makeinclude\outputdir.bor>
31
!include <$(ACE_ROOT)\include\makeinclude\compiler.bor>
35
TARGET = $(BINDIR)\$(NAME)$(LIB_DECORATOR).dll
37
!ifndef INSTALL_THIS_TARGET
38
!ifndef EXPLICIT_BINDIR
39
CORE_TARGET = $(CORE_BINDIR)\$(NAME)$(LIB_DECORATOR).dll
44
all: $(TARGET) $(CORE_TARGET)
48
$(TARGET): $(OBJFILES) $(RESOURCE)
51
$(COMMON_LFLAGS) $(DLL_LFLAGS) $(LFLAGS) +
52
$(DLL_STARTUP_OBJ) $(LIBFILES) $(OBJFILES), +
58
@del $(TARGET:.dll=.tds)
61
$(CORE_TARGET): $(TARGET)
62
@copy $(TARGET) $(CORE_TARGET) >NUL
64
@copy $(TARGET:.dll=.tds) $(CORE_TARGET:.dll=.tds) >NUL
69
!include <$(ACE_ROOT)\include\makeinclude\clean.bor>
71
INSTALL_TYPES = dll lib includes
73
!include <$(ACE_ROOT)\include\makeinclude\install.bor>
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\$(<:.\=)
103
$(CC) $(COMMON_CFLAGS) $(DLL_CFLAGS) $(CFLAGS) -c -n$(@D) $<
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\$(<:.\=)
112
$(CC) $(COMMON_CFLAGS) $(DLL_CFLAGS) $(CFLAGS) -c -n$(@D) $<