sync master with lastest vba changes
[ooovba.git] / cppu / test / alignment / makefile.mk
blobbd2586d616f978f0595dd3e69c4a6449ab11c775
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.9 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
33 # build /test first, then /test/alignment
36 PRJ=..$/..
37 PRJNAME=cppu
38 TARGET=alignment
39 LIBTARGET=NO
40 ENABLE_EXCEPTIONS=TRUE
41 NO_BSYMBOLIC=TRUE
43 # --- Settings -----------------------------------------------------
45 .INCLUDE : settings.mk
47 # --- Files --------------------------------------------------------
49 UNOUCRDEP=$(BIN)$/testcppu.rdb
50 UNOUCRRDB=$(BIN)$/testcppu.rdb
51 UNOUCROUT=$(INCCOM)$/test$/alignment
52 INCPRE+=$(INCCOM)$/test -I$(INCCOM)$/test$/alignment -I$(PRJ)$/test$/alignment
54 .IF "$(src_env)" == ""
55 merge_rdb=$(SOLARBINDIR)$/udkapi.rdb
56 .ELSE
57 merge_rdb=$(SOLARBINDIR)$/applicat.rdb
58 .ENDIF
60 DEPOBJFILES= \
61 $(OBJ)$/pass1.obj \
62 $(OBJ)$/pass2.obj
64 APP1OBJS = $(OBJ)$/pass1.obj
65 APP1STDLIBS += $(CPPUHELPERLIB) $(CPPULIB) $(REGLIB) $(SALHELPERLIB) $(SALLIB)
66 APP1TARGET = pass1
68 APP2OBJS = $(OBJ)$/pass2.obj
69 APP2STDLIBS = $(SALLIB)
70 APP2TARGET = pass2
72 # --- Targets ------------------------------------------------------
74 .IF "$(depend)" == ""
75 ALLTAR: execute_pass2
76 .ELSE
77 ALL: ALLDEP
78 .ENDIF
80 .INCLUDE : target.mk
82 $(MISC)$/pass2.cxx: $(APP1TARGETN)
83 regmerge $(UNOUCRRDB) / $(merge_rdb)
84 cppumaker @$(mktmp $(CPPUMAKERFLAGS) -BUCR -O$(UNOUCROUT) $(foreach,c,$(shell @$(APP1TARGETN) -env:UNO_TYPES={$(subst,\,\\ $(UNOUCRRDB))} $(subst,\,\\ $(MISC)$/pass2.cxx) dump_types) -T$c) $(UNOUCRRDB))
86 execute_pass2: $(APP2TARGETN)
87 $(APP2TARGETN)