update dev300-m58
[ooovba.git] / goodies / source / inv / makefile.mk
blob359aab16700808562a810723f3065cb70480b453
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.21 $
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=goodies
35 TARGET=invader
36 TARGETTYPE=GUI
38 EXTERNAL_WARNINGS_NOT_ERRORS := TRUE
40 # --- Settings -----------------------------------------------------
42 .INCLUDE : settings.mk
44 # --- Files --------------------------------------------------------
46 .IF "$(TEST)" != ""
47 CDEFS+=-DTEST
48 OBJFILES= \
49 $(OBJ)$/invader.obj \
50 $(OBJ)$/invader1.obj \
51 $(OBJ)$/shapes.obj \
52 $(OBJ)$/expl.obj \
53 $(OBJ)$/score.obj \
54 $(OBJ)$/monst.obj
55 .ELSE
57 SLOFILES= \
58 $(SLO)$/invader.obj \
59 $(SLO)$/invader1.obj \
60 $(SLO)$/shapes.obj \
61 $(SLO)$/expl.obj \
62 $(SLO)$/score.obj \
63 $(SLO)$/monst.obj
64 .ENDIF
66 SRS1NAME=$(TARGET)
67 SRC1FILES=gegner.src strings.src
69 RESLIB1IMAGES= $(PRJ)$/res
70 RESLIB1NAME=tfu
71 RESLIB1SRSFILES=$(SRS)$/invader.srs
73 .IF "$(TEST)"!=""
74 APP1TARGET= $(TARGET)
75 APP1OBJS= $(OBJFILES)
76 APP1STDLIBS= $(CPPULIB) \
77 $(CPPUHELPERLIB) \
78 $(COMPHELPERLIB) \
79 $(TOOLSLIB) \
80 $(SALLIB) \
81 $(VOSLIB) \
82 $(SOTLIB) \
83 $(VCLLIB)
85 .ELSE
87 SHL1TARGET= tfu$(DLLPOSTFIX)
88 SHL1IMPLIB= itfu
89 SHL1STDLIBS=\
90 $(VCLLIB) \
91 $(TOOLSLIB) \
92 $(SALLIB)
94 .IF "$(GUI)"=="WNT"
95 SHL1STDLIBS+=\
96 $(COMDLG32LIB) \
97 $(ADVAPI32LIB)
98 .ENDIF
100 SHL1OBJS=$(SLOFILES)
102 SHL1DEF=$(MISC)$/$(SHL1TARGET).def
104 .ENDIF
105 # --- Targets -------------------------------------------------------
108 .INCLUDE : target.mk
110 ALLTAR: \
111 $(BIN)$/applicat.rdb
113 $(BIN)$/applicat.rdb : makefile.mk $(SOLARBINDIR)$/types.rdb
114 rm -f $@
115 $(GNUCOPY) $(SOLARBINDIR)$/types.rdb $@
116 cd $(BIN) && \
117 $(REGCOMP) -register -r applicat.rdb \
118 -c i18npool.uno$(DLLPOST)
120 # --- Def-File ---
122 .IF "$(GUI)"=="WNT"
124 $(MISC)$/$(SHL1TARGET).def: makefile.mk
125 @echo -------------------------------------------
126 @echo DEF-File erstellen $@
127 @echo LIBRARY $(DLLNAME) >$@
128 .IF "$(COM)"!="GCC"
129 @echo DESCRIPTION 'Star Cube DLL' >>$@
130 @echo DATA READ WRITE NONSHARED >>$@
131 .ENDIF
132 @echo EXPORTS >>$@
133 @echo StartInvader @22 >>$@
135 .ENDIF
137 .IF "$(GUI)"=="OS2"
139 $(MISC)$/$(SHL1TARGET).def: makefile.mk
140 @+echo -------------------------------------------
141 @+echo DEF-File erstellen $@
142 @+echo LIBRARY $(SHL1TARGET) INITINSTANCE TERMINSTANCE >$@
143 @+echo DESCRIPTION 'Star Cube DLL' >>$@
144 @+echo DATA MULTIPLE >>$@
145 @+echo EXPORTS >>$@
146 @+echo _StartInvader @22 >>$@
148 .ENDIF