xref: /aoo42x/main/sc/addin/rot13/makefile.mk (revision 7871dc3e)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24PRJ=..$/..
25
26PRJNAME=sc
27TARGET=rot
28LIBTARGET=NO
29
30
31# --- Settings -----------------------------------------------------
32
33.INCLUDE: settings.mk
34
35CL2C=+$(PERL) $(MISC)$/cl2c.pl
36CL2CRID=RID_SC_ADDIN_ROT13
37CL2CSRC=$(TARGET)13.src
38
39# --- Files --------------------------------------------------------
40
41CFILES= $(MISC)$/x$(TARGET).c
42
43SLOFILES= \
44			$(SLO)$/x$(TARGET).obj
45
46# ==========================================================================
47
48SHL1TARGET= rot$(DLLPOSTFIX)
49SHL1IMPLIB= irot
50SHL1OBJS=   $(SLO)$/x$(TARGET).obj
51
52SHL1VERSIONMAP=exports.map
53SHL1DEF=$(MISC)$/$(SHL1TARGET).def
54DEF1NAME=$(SHL1TARGET)
55
56.IF "$(GUI)" == "WNT"
57SHL1STDLIBS=     $(GDI32LIB) $(ADVAPI32LIB) $(COMDLG32LIB) \
58				 $(UUIDLIB) $(OLE32LIB) $(SHELL32LIB) $(WINSPOOLLIB)
59.IF "$(GVER)" == "W40"
60SHL1STDLIBS=    $(SHL1STDLIBS) $(COMCTL32LIB)
61.ENDIF # W40
62.ENDIF # WNT
63
64# --- Targets -------------------------------------------------------
65
66ALLTAR:	$(MISC)$/rot.lst
67
68.INCLUDE: target.mk
69
70$(MISC)$/x$(TARGET).c: $(TARGET)13.cl $(CL2CSRC) $(MISC)$/cl2c.pl
71	$(CL2C) $(TARGET)13.cl $(MISC)$/x$(TARGET).c $(CL2CSRC) $(CL2CRID)
72
73# copy file to include in package
74$(INCCOM)$/xlang.h : $(SOLARINCDIR)$/i18npool$/lang.h
75	@$(COPY) $(SOLARINCDIR)$/i18npool$/lang.h $@
76
77$(SLOFILES) : $(INCCOM)$/xlang.h $(CFILES)
78
79$(MISC)$/rot.lst : \
80	$(MISC)$/x$(TARGET).c \
81	$(INCCOM)$/xlang.h \
82	..$/inc$/rot13.hrc \
83	..$/inc$/addin.h
84	@echo $< > $@
85