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 $
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 #*************************************************************************
38 ENABLE_EXCEPTIONS
=TRUE
42 # --- Settings -----------------------------------------------------
43 .INCLUDE
: settings.mk
45 # ------------------------------------------------------------------
46 #--------------------------------- Objectfiles ---------------------------------
47 OBJFILES
=$(OBJ
)$/onefuncstarter.obj
48 SLOFILES
=$(SLO
)$/onefunc.obj
50 # -------------------------------------------------------------------------------
52 LIB1TARGET
= $(LB
)$/$(TARGET
)_libfile.lib
53 LIB1OBJFILES
= $(SLOFILES
)
56 LIB1ARCHIV
=$(LB
)$/lib
$(TARGET
)$(DLLPOSTFIX
).a
59 # ------------------------------------------------------------------
60 SHL2OBJS
= $(SLOFILES
)
62 SHL2TARGET
= $(TARGET
)_DLL
67 SHL2IMPLIB
= i
$(SHL2TARGET
)
68 SHL2DEF
= $(MISC
)$/$(SHL2TARGET
).def
70 DEF2NAME
=$(SHL2TARGET
)
71 DEF2EXPORTFILE
= export.exp
73 #----------------------------- prog with *.lib file -----------------------------
75 APP1TARGET
= $(TARGET
)starter
80 APP1DEPN
= $(APP1OBJS
) $(LIB1TARGET
)
81 APP1LIBS
= $(LIB1TARGET
)
83 #-------------------------- executable with LIBARCHIV --------------------------
85 APP2TARGET
= $(TARGET
)starter2
90 APP2STDLIBS
+=$(LB
)$/lib
$(TARGET
)$(DLLPOSTFIX
).a
93 APP2STDLIBS
+=$(LIB1TARGET
)
96 APP2DEPN
= $(APP1OBJS
) $(LIB1TARGET
)
99 #----------------------- executable with dynamic library -----------------------
101 APP3TARGET
= $(TARGET
)starter3
102 APP3OBJS
= $(OBJFILES
)
104 APP3STDLIBS
=$(SALLIB
)
106 .IF
"$(GUI)" == "WNT"
107 APP3STDLIBS
+=i
$(SHL2TARGET
).lib
109 .IF
"$(GUI)" == "UNX"
110 APP3STDLIBS
+=-l
$(SHL2TARGET
)
113 APP3DEPN
= $(APP1OBJS
) $(LIB1TARGET
)
117 #----------------------- executable without any other files -----------------------
119 APP4TARGET
= $(TARGET
)starter4
120 APP4OBJS
= $(OBJFILES
)
122 APP4STDLIBS
=$(SALLIB
)
124 APP4DEPN
= $(APP1OBJS
)
127 # --- Targets ------------------------------------------------------
130 .INCLUDE
: _cppunit.mk