xref: /AOO41X/main/setup_native/source/win32/customactions/patch/makefile.mk (revision ff0525f24f03981d56b7579b645949f111420994)
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=setup_native
26TARGET=patchmsi
27
28# --- Settings -----------------------------------------------------
29
30ENABLE_EXCEPTIONS=TRUE
31NO_DEFAULT_STL=TRUE
32DYNAMIC_CRT=
33USE_DEFFILE=TRUE
34
35.INCLUDE : settings.mk
36
37.IF "$(USE_SYSTEM_STL)" != "YES"
38CFLAGS+=-D_STLP_USE_STATIC_LIB
39.ENDIF
40
41#Disable precompiled header
42CDEFS+=-Dnot_used_define_to_disable_pch
43
44# --- Files --------------------------------------------------------
45
46.IF "$(GUI)"=="WNT"
47
48UWINAPILIB=
49
50SLOFILES = \
51    $(SLO)$/swappatchfiles.obj
52
53STDSHL += \
54    $(ADVAPI32LIB)\
55    $(MSILIB)\
56        $(SHELL32LIB)
57
58.IF "$(USE_SYSTEM_STL)" != "YES"
59STDSHL += $(LIBSTLPORTST)
60.ENDIF
61
62.IF "$(COM)"=="GCC"
63STDSHL+=    \
64    $(KERNEL32LIB)\
65    -lmsvcrt
66.ENDIF
67
68#SHL1LIBS = $(SLB)$/$(TARGET).lib
69
70SHL1OBJS = $(SLOFILES)               \
71    $(SLO)$/respintest.obj           \
72    $(SLO)$/shutdown_quickstart.obj  \
73    $(SLO)$/quickstarter.obj         \
74    $(SLO)$/upgrade.obj              \
75        $(SLO)$/registerextensions.obj   \
76    $(SLO)$/seterror.obj
77
78SHL1TARGET = $(TARGET)
79SHL1IMPLIB = i$(TARGET)
80
81SHL1DEF = $(MISC)$/$(SHL1TARGET).def
82SHL1DEPN = $(SLB)$/$(TARGET).lib
83SHL1BASE = 0x1c000000
84DEF1NAME=$(SHL1TARGET)
85DEF1EXPORTFILE=exports.dxp
86
87.ENDIF
88
89# --- Targets --------------------------------------------------------------
90
91.INCLUDE : target.mk
92
93# -------------------------------------------------------------------------
94
95