xref: /aoo42x/main/sd/workben/testdll/makefile (revision b31e36b3)
1*b31e36b3SAndrew Rist# -------------------------------------------------------------
2*b31e36b3SAndrew Rist#
3*b31e36b3SAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*b31e36b3SAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*b31e36b3SAndrew Rist#  distributed with this work for additional information
6*b31e36b3SAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*b31e36b3SAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*b31e36b3SAndrew Rist#  "License"); you may not use this file except in compliance
9*b31e36b3SAndrew Rist#  with the License.  You may obtain a copy of the License at
10*b31e36b3SAndrew Rist#
11*b31e36b3SAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*b31e36b3SAndrew Rist#
13*b31e36b3SAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*b31e36b3SAndrew Rist#  software distributed under the License is distributed on an
15*b31e36b3SAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b31e36b3SAndrew Rist#  KIND, either express or implied.  See the License for the
17*b31e36b3SAndrew Rist#  specific language governing permissions and limitations
18*b31e36b3SAndrew Rist#  under the License.
19*b31e36b3SAndrew Rist#
20*b31e36b3SAndrew Rist# -------------------------------------------------------------
21cdf0e10cSrcweirPRJ=..
22cdf0e10cSrcweir
23cdf0e10cSrcweirPRJNAME=test
24cdf0e10cSrcweirTARGET=tst
25cdf0e10cSrcweir
26cdf0e10cSrcweir# --- Settings -----------------------------------------------------
27cdf0e10cSrcweir
28cdf0e10cSrcweir!INCLUDE <svpre.mak>
29cdf0e10cSrcweir!INCLUDE <settings.mak>
30cdf0e10cSrcweir!INCLUDE <sv.mak>
31cdf0e10cSrcweir
32cdf0e10cSrcweir# --- Files --------------------------------------------------------
33cdf0e10cSrcweir
34cdf0e10cSrcweirCXXFILES=	\
35cdf0e10cSrcweir		test.cxx
36cdf0e10cSrcweirSLOFILES=	\
37cdf0e10cSrcweir		$(SLO)\test.obj
38cdf0e10cSrcweir#SRC1FILES=
39cdf0e10cSrcweir#SRS1NAME=
40cdf0e10cSrcweir#SRSFILES=      $(SRS)\
41cdf0e10cSrcweir#SRC2FILES=
42cdf0e10cSrcweir#SRS2NAME=
43cdf0e10cSrcweir
44cdf0e10cSrcweir#RESLIB1NAME=tst
45cdf0e10cSrcweir#RESLIB1SRSFILES=\
46cdf0e10cSrcweir#                $(SRS)\
47cdf0e10cSrcweir#                $(SOLARRESDIR)\
48cdf0e10cSrcweir
49cdf0e10cSrcweirSHL1TARGET= $(TARGET)$(DLLPOSTFIX)
50cdf0e10cSrcweir#SHL1LIBS=$(SLB)\$(TARGET).lib
51cdf0e10cSrcweir
52cdf0e10cSrcweir!IF "$(COM)"!="WTC"
53cdf0e10cSrcweirSHL1STDLIBS=tools.lib $(SVLIB) usr.lib
54cdf0e10cSrcweir!ELSE
55cdf0e10cSrcweirSHL1STDLIBS=tools.lib libr sv.lib libr isv.lib libr usr.lib
56cdf0e10cSrcweir!ENDIF
57cdf0e10cSrcweir
58cdf0e10cSrcweirSHL1DEPN=   $(L)tools.lib $(SVLIBDEPEND)
59cdf0e10cSrcweirSHL1DEF=    $(MISC)\$(SHL1TARGET).def
60cdf0e10cSrcweirSHL1IMPLIB=$(TARGET)
61cdf0e10cSrcweir#SHL1RES=    $(RES)\$(TARGET).res
62cdf0e10cSrcweirSHL1OBJS=	$(SLO)\test.obj
63cdf0e10cSrcweir
64cdf0e10cSrcweir# --- Targets ------------------------------------------------------
65cdf0e10cSrcweir!INCLUDE <target.mak>
66cdf0e10cSrcweir
67cdf0e10cSrcweir!IF "$(GUI)" == "WNT"
68cdf0e10cSrcweir
69cdf0e10cSrcweir$(MISC)\$(SHL1TARGET).def:  makefile
70cdf0e10cSrcweir    @echo ------------------------------
71cdf0e10cSrcweir    @echo Making: $@
72cdf0e10cSrcweir    @echo LIBRARY     $(SHL1TARGET)                                  >$@
73cdf0e10cSrcweir    @echo DESCRIPTION 'StarOne Test-DLL'                                 >>$@
74cdf0e10cSrcweir    @echo DATA        READ WRITE NONSHARED                          >>$@
75cdf0e10cSrcweir    @echo EXPORTS                                                   >>$@
76cdf0e10cSrcweir	@echo CreateWindow @2 					>>$@
77cdf0e10cSrcweir!ENDIF
78cdf0e10cSrcweir
79cdf0e10cSrcweir!IF "$(GUI)" == "WIN"
80cdf0e10cSrcweir
81cdf0e10cSrcweir$(MISC)\$(SHL1TARGET).def:  makefile
82cdf0e10cSrcweir    @echo ------------------------------
83cdf0e10cSrcweir    @echo Making: $@
84cdf0e10cSrcweir    @echo LIBRARY     $(SHL1TARGET)                                  >$@
85cdf0e10cSrcweir    @echo DESCRIPTION 'StarOne Test-DLL'                                 >>$@
86cdf0e10cSrcweir    @echo EXETYPE     WINDOWS                                       >>$@
87cdf0e10cSrcweir    @echo PROTMODE                                                  >>$@
88cdf0e10cSrcweir    @echo CODE        LOADONCALL MOVEABLE DISCARDABLE               >>$@
89cdf0e10cSrcweir    @echo DATA        PRELOAD MOVEABLE SINGLE                       >>$@
90cdf0e10cSrcweir    @echo HEAPSIZE    0                                             >>$@
91cdf0e10cSrcweir    @echo EXPORTS                                                   >>$@
92cdf0e10cSrcweir	@echo _CreateWindow @2 								>>$@
93cdf0e10cSrcweir!ENDIF
94cdf0e10cSrcweir
95cdf0e10cSrcweir!IF "$(GUI)" == "OS2"
96cdf0e10cSrcweir
97cdf0e10cSrcweir$(MISC)\$(SHL1TARGET).def:  makefile
98cdf0e10cSrcweir	@echo ================================================================
99cdf0e10cSrcweir	@echo building $@
100cdf0e10cSrcweir	@echo ----------------------------------------------------------------
101cdf0e10cSrcweir!IF "$(COM)"!="WTC"
102cdf0e10cSrcweir	echo  LIBRARY		INITINSTANCE TERMINSTANCE			>$@
103cdf0e10cSrcweir	echo  DESCRIPTION	'StarOne Test-DLL'           					>>$@
104cdf0e10cSrcweir	echo  PROTMODE										   >>$@
105cdf0e10cSrcweir    	@echo CODE        LOADONCALL 			              >>$@
106cdf0e10cSrcweir	@echo DATA		  PRELOAD MULTIPLE NONSHARED					  >>$@
107cdf0e10cSrcweir    	@echo EXPORTS                                                   >>$@
108cdf0e10cSrcweir!IF "$(COM)"!="ICC"
109cdf0e10cSrcweir	@echo _CreateWindow @2 								>>$@
110cdf0e10cSrcweir!ELSE
111cdf0e10cSrcweir	@echo CreateWindow @2 								>>$@
112cdf0e10cSrcweir!ENDIF
113cdf0e10cSrcweir
114cdf0e10cSrcweir!ELSE
115cdf0e10cSrcweir    	@echo option DESCRIPTION 'StarOne Test-DLL'		                    >$@
116cdf0e10cSrcweir    	@echo name $(BIN)\$(SHL1TARGET).dll                         >>$@
117cdf0e10cSrcweir	@echo CreateWindow_ @2 								>>$@
118cdf0e10cSrcweir	@gawk -f s:\util\exp.awk temp.def				>>$@
119cdf0e10cSrcweir	del temp.def
120cdf0e10cSrcweir!ENDIF
121cdf0e10cSrcweir!ENDIF
122