merge the formfield patch from ooo-build
[ooovba.git] / rsc / source / rscpp / makefile.mk
blob0cdcecdbbeb1d4bf3838982eb495c0221d865fdc
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 #*************************************************************************
31 PRJ=..$/..
33 TARGETTYPE=CUI
34 NO_DEFAULT_STL=TRUE
36 PRJNAME=rsc
37 TARGET=rscpp
39 .IF "$(cpp)" != ""
40 PRJNAME=CPP
41 TARGET=cpp
42 .ENDIF
44 # --- Settings -----------------------------------------------------
46 .INCLUDE : settings.mk
48 CDEFS+=-DSOLAR
50 .IF "$(cpp)" != ""
51 CDEFS+=-DNOMAIN
52 .ENDIF
54 # --- Files --------------------------------------------------------
56 OBJFILES= \
57 $(OBJ)$/cpp1.obj \
58 $(OBJ)$/cpp2.obj \
59 $(OBJ)$/cpp3.obj \
60 $(OBJ)$/cpp4.obj \
61 $(OBJ)$/cpp5.obj \
62 $(OBJ)$/cpp6.obj \
64 .IF "$(cpp)" == ""
65 LIBSALCPPRT=$(0)
66 APP1TARGET= $(TARGET)
67 APP1LIBS=$(LB)$/$(TARGET).lib
68 .IF "$(GUI)" != "OS2"
69 APP1STACK=32768
70 .ENDIF
71 .ENDIF
73 .IF "$(GUI)"=="UNX"
74 CDEFS+=-Dunix
75 .ENDIF
77 .IF "$(OS)$(CPU)"=="SOLARISI"
78 # cc: Sun C 5.5 Patch 112761-10 2004/08/10
79 # Solaris x86 compiler ICE
80 # "cpp6.c", [get]:ube: internal error
81 # remove after compiler upgrade
82 NOOPTFILES=$(OBJ)$/cpp6.obj
83 .ENDIF
85 # --- Targets ------------------------------------------------------
87 .INCLUDE : target.mk
89 cpp1.c: cppdef.h cpp.h
90 cpp2.c: cppdef.h cpp.h
91 cpp3.c: cppdef.h cpp.h
92 cpp4.c: cppdef.h cpp.h
93 cpp5.c: cppdef.h cpp.h
94 cpp6.c: cppdef.h cpp.h