merge the formfield patch from ooo-build
[ooovba.git] / sc / addin / rot13 / makefile.mk
blob1c33915694498ec7fe10d21d343dd25552f6dd7d
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.14 $
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 #*************************************************************************
32 PRJ=..$/..
34 PRJNAME=sc
35 TARGET=rot
36 LIBTARGET=NO
39 # --- Settings -----------------------------------------------------
41 .INCLUDE: settings.mk
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
51 SLOFILES= \
52 $(SLO)$/x$(TARGET).obj
54 # ==========================================================================
56 SHL1TARGET= rot$(DLLPOSTFIX)
57 SHL1IMPLIB= irot
58 SHL1OBJS= $(SLO)$/x$(TARGET).obj
60 SHL1VERSIONMAP=exports.map
61 SHL1DEF=$(MISC)$/$(SHL1TARGET).def
62 DEF1NAME=$(SHL1TARGET)
64 .IF "$(GUI)" == "WNT"
65 SHL1STDLIBS= $(GDI32LIB) $(ADVAPI32LIB) $(COMDLG32LIB) \
66 $(UUIDLIB) $(OLE32LIB) $(SHELL32LIB) $(WINSPOOLLIB)
67 .IF "$(GVER)" == "W40"
68 SHL1STDLIBS= $(SHL1STDLIBS) $(COMCTL32LIB)
69 .ENDIF # W40
70 .ENDIF # WNT
72 # --- Targets -------------------------------------------------------
74 ALLTAR: $(MISC)$/rot.lst
76 .INCLUDE: target.mk
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)
87 $(MISC)$/rot.lst : \
88 $(MISC)$/x$(TARGET).c \
89 $(INCCOM)$/xlang.h \
90 ..$/inc$/rot13.hrc \
91 ..$/inc$/addin.h
92 .IF "$(GUI)"=="UNX" || "$(USE_SHELL)"!="4nt"
93 @echo $< > $@
94 .ELSE
95 @echo $(<:+"\n":s/ //) > $@
96 .ENDIF