merge the formfield patch from ooo-build
[ooovba.git] / testshl2 / workben / dlltest / makefile.mk
blob88ccfac54b5f75142caf6c0c4f5ee8442cbe2799
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.5 $
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=..$/..
32 PRJINC=
34 PRJNAME=testshl2
35 TARGET=onefunc
36 TARGETTYPE=CUI
38 ENABLE_EXCEPTIONS=TRUE
39 #USE_LDUMP2=TRUE
40 #LDUMP2=LDUMP3
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)
55 .IF "$(GUI)" == "UNX"
56 LIB1ARCHIV=$(LB)$/lib$(TARGET)$(DLLPOSTFIX).a
57 .ENDIF
59 # ------------------------------------------------------------------
60 SHL2OBJS = $(SLOFILES)
62 SHL2TARGET= $(TARGET)_DLL
63 SHL2STDLIBS+=\
64 $(SALLIB)
66 SHL2DEPN=
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
76 APP1OBJS=$(OBJFILES)
78 APP1STDLIBS=$(SALLIB)
80 APP1DEPN= $(APP1OBJS) $(LIB1TARGET)
81 APP1LIBS= $(LIB1TARGET)
83 #-------------------------- executable with LIBARCHIV --------------------------
85 APP2TARGET= $(TARGET)starter2
86 APP2OBJS= $(OBJFILES)
88 APP2STDLIBS=$(SALLIB)
89 .IF "$(GUI)" == "UNX"
90 APP2STDLIBS+=$(LB)$/lib$(TARGET)$(DLLPOSTFIX).a
91 .ENDIF
92 .IF "$(GUI)" == "WNT"
93 APP2STDLIBS+=$(LIB1TARGET)
94 .ENDIF
96 APP2DEPN= $(APP1OBJS) $(LIB1TARGET)
97 APP2LIBS=
99 #----------------------- executable with dynamic library -----------------------
101 APP3TARGET= $(TARGET)starter3
102 APP3OBJS= $(OBJFILES)
104 APP3STDLIBS=$(SALLIB)
106 .IF "$(GUI)" == "WNT"
107 APP3STDLIBS+=i$(SHL2TARGET).lib
108 .ENDIF
109 .IF "$(GUI)" == "UNX"
110 APP3STDLIBS+=-l$(SHL2TARGET)
111 .ENDIF
113 APP3DEPN= $(APP1OBJS) $(LIB1TARGET)
114 APP3LIBS=
115 # APP3DEF=
117 #----------------------- executable without any other files -----------------------
119 APP4TARGET= $(TARGET)starter4
120 APP4OBJS= $(OBJFILES)
122 APP4STDLIBS=$(SALLIB)
124 APP4DEPN= $(APP1OBJS)
125 APP4LIBS=
126 # APP3DEF=
127 # --- Targets ------------------------------------------------------
129 .INCLUDE : target.mk
130 .INCLUDE : _cppunit.mk