xref: /trunk/main/embedserv/source/inprocserv/makefile.mk (revision 9d37da743abb7db0a497688391f6e55a19f27c44)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24PRJ=..$/..
25PRJNAME=embedserv
26TARGET=inprocserv
27
28use_shl_versions=
29
30# --- Settings ----------------------------------
31.INCLUDE : settings.mk
32
33.IF "$(GUI)" == "WNT"
34
35LIBTARGET=NO
36USE_DEFFILE=YES
37# The static CRT, deliberately, and replacing LIBCMT rather than adding to it:
38# this DLL is loaded into a foreign process and cannot rely on that process
39# having ours.  $(LIBCRTEXTRA_STATIC) is the rest of the static CRT on the UCRT
40# generation, where it comes in three pieces rather than one; it is undefined,
41# and so expands to nothing, on VC9.
42LIBCMT=libcmt.lib $(LIBCRTEXTRA_STATIC)
43UWINAPILIB=
44
45# --- Files -------------------------------------
46
47SLOFILES=\
48    $(SLO)$/dllentry.obj \
49    $(SLO)$/advisesink.obj \
50    $(SLO)$/inprocembobj.obj
51
52SHL1TARGET=$(TARGET)
53.IF "$(COM)"=="GCC"
54SHL1STDLIBS += -lstdc++
55.IF "$(MINGW_GCCLIB_EH)"=="YES"
56SHL1STDLIBS += -lgcc_eh
57.ENDIF
58SHL1STDLIBS += -lgcc -lmingw32 -lmoldname -lmsvcrt
59.ELSE
60SHL1STDLIBS=
61.ENDIF
62
63SHL1STDLIBS+=\
64    $(UUIDLIB)\
65    $(OLE32LIB)\
66    $(GDI32LIB)\
67    $(ADVAPI32LIB)
68
69SHL1OBJS=$(SLOFILES)
70
71SHL1DEF=$(MISC)$/$(TARGET).def
72
73DEF1NAME= $(TARGET)
74DEF1EXPORTFILE= exports.dxp
75
76.ENDIF
77
78# --- Targets ----------------------------------
79
80.INCLUDE : target.mk
81