1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # This file is part of OpenOffice.org.
13 # OpenOffice.org is free software: you can redistribute it and/or modify
14 # it under the terms of the GNU Lesser General Public License version 3
15 # only, as published by the Free Software Foundation.
17 # OpenOffice.org is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU Lesser General Public License version 3 for more details
21 # (a copy is included in the LICENSE file that accompanied this code).
23 # You should have received a copy of the GNU Lesser General Public License
24 # version 3 along with OpenOffice.org. If not, see
25 # <http://www.openoffice.org/license.html>
26 # for a copy of the LGPLv3 License.
28 #*************************************************************************
32 PRJNAME
=migrationanalysis
35 # --- Settings -----------------------------------------------------
37 .INCLUDE
: settings.mk
39 # --- Files --------------------------------------------------------
41 PAW_APPSDEST
:=$(BIN
)$/ProAnalysisWizard
42 ALTERNATE_SRC
:=..
$/exe
44 PAW_DATDEST
:=$(PAW_APPSDEST
)$/Resources
46 PROJECTDEST
:=$(BIN
)$/ProAnalysisWizard
47 RCFILES
:=$(RES
)$/$(TARGET
).rc
48 RESFILE
:=$(RES
)$/$(TARGET
).res
49 ULFFILES
:=$(TARGET
).ulf
50 .IF
"$(WITH_LANG)"!=""
51 ULFDIR
:=$(COMMONMISC
)$/$(TARGET
)
52 .ELSE
# "$(WITH_LANG)"!=""
54 .ENDIF
# "$(WITH_LANG)"!=""
55 MANIFEST
:=$(RES
)$/DocAnalysisWizard.exe.manifest
57 LAUNCHER_APP
:= $(BIN
)$/LaunchDrivers.exe
61 $(PAW_APPSDEST
)$/ProAnalysisWizard.exe
64 $(BIN
)$/LaunchDrivers.vbp \
65 $(PAW_APPSDEST
)$/ProAnalysisWizard.vbp
67 PAW_RES_DLLS
:=$(PAW_DATDEST
)$/Resources.dll
68 PAW_LAUNCHER
:=$(PAW_DATDEST
)$/LaunchDrivers.exe
70 # --- Targets ------------------------------------------------------
74 ALLTAR
: $(BASIC_APPS
) $(PAW_RES_DLLS
) $(PAW_LAUNCHER
)
80 .IF
"$(VB6_LOCATION)" != ""
82 $(BASIC_VBP
) : $$(@
:b
).vbp
86 $(BASIC_APPS
) : $(BASIC_VBP
)
88 cd
$(@
:d
) && "$(VB6_LOCATION)$/vb6.exe" /m
$(@
:b
).vbp
90 $(PAW_LAUNCHER
) : $(LAUNCHER_APP
)
92 $(COPY
) $(LAUNCHER_APP
) $@
94 .ELSE
# "$(VB6_LOCATION)" != ""
96 $(BASIC_APPS
) : $(ALTERNATE_SRC
)$/$$(@
:f
)
97 @echo
"------------------------------------"
98 @echo
"No VB6 found: using prebuild wizards"
99 @echo
"------------------------------------"
101 $(COPY
) $(ALTERNATE_SRC
)$/$(@
:f
) $@
103 $(PAW_LAUNCHER
) : $(ALTERNATE_SRC
)$/$$(@
:f
)
105 $(COPY
) $(ALTERNATE_SRC
)$/$(@
:f
) $@
107 .ENDIF
# "$(VB6_LOCATION)" != ""
109 # Generate the native Windows resource file
110 # using lngconvex.exe
112 $(RCFILES
) : $(MANIFEST
) $(ULFDIR
)$/$(TARGET
).ulf makefile.mk rcfooter.txt rcheader.txt rctmpl.txt
113 $(LNGCONVEX
) -ulf
$(ULFDIR
)$/$(TARGET
).ulf
-rc
$(RES
)$/$(TARGET
).rc
-rct rctmpl.txt
-rch rcheader.txt
-rcf rcfooter.txt
115 $(PAW_RES_DLLS
) : $(RCFILES
)
117 link
/NOENTRY
/DLL
/MACHINE
:X86
/OUT
:$@
$(RESFILE
)