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 #*************************************************************************
39 # --- Settings -----------------------------------------------------
43 CL2C
=+$(PERL
) $(MISC
)$/cl2c.pl
44 CL2CRID
=RID_SC_ADDIN_ROT13
45 CL2CSRC
=$(TARGET
)13.src
47 # --- Files --------------------------------------------------------
49 CFILES
= $(MISC
)$/x
$(TARGET
).c
52 $(SLO
)$/x
$(TARGET
).obj
54 # ==========================================================================
56 SHL1TARGET
= rot
$(DLLPOSTFIX
)
58 SHL1OBJS
= $(SLO
)$/x
$(TARGET
).obj
60 SHL1VERSIONMAP
=exports.map
61 SHL1DEF
=$(MISC
)$/$(SHL1TARGET
).def
62 DEF1NAME
=$(SHL1TARGET
)
65 SHL1STDLIBS
= $(GDI32LIB
) $(ADVAPI32LIB
) $(COMDLG32LIB
) \
66 $(UUIDLIB
) $(OLE32LIB
) $(SHELL32LIB
) $(WINSPOOLLIB
)
67 .IF
"$(GVER)" == "W40"
68 SHL1STDLIBS
= $(SHL1STDLIBS
) $(COMCTL32LIB
)
72 # --- Targets -------------------------------------------------------
74 ALLTAR
: $(MISC
)$/rot.lst
78 $(MISC
)$/x
$(TARGET
).c
: $(TARGET
)13.cl
$(CL2CSRC
) $(MISC
)$/cl2c.pl
79 $(CL2C
) $(TARGET
)13.cl
$(MISC
)$/x
$(TARGET
).c
$(CL2CSRC
) $(CL2CRID
)
81 # copy file to include in package
82 $(INCCOM
)$/xlang.h
: $(SOLARINCDIR
)$/i18npool
$/lang.h
83 @
$(COPY
) $(SOLARINCDIR
)$/i18npool
$/lang.h
$@
85 $(SLOFILES
) : $(INCCOM
)$/xlang.h
$(CFILES
)
88 $(MISC
)$/x
$(TARGET
).c \
92 .IF
"$(GUI)"=="UNX" ||
"$(USE_SHELL)"!="4nt"
95 @echo
$(<:+"\n":s
/ //) > $@