xref: /aoo42x/main/sd/workben/testdll/makefile (revision b31e36b3)
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# -------------------------------------------------------------
21PRJ=..
22
23PRJNAME=test
24TARGET=tst
25
26# --- Settings -----------------------------------------------------
27
28!INCLUDE <svpre.mak>
29!INCLUDE <settings.mak>
30!INCLUDE <sv.mak>
31
32# --- Files --------------------------------------------------------
33
34CXXFILES=	\
35		test.cxx
36SLOFILES=	\
37		$(SLO)\test.obj
38#SRC1FILES=
39#SRS1NAME=
40#SRSFILES=      $(SRS)\
41#SRC2FILES=
42#SRS2NAME=
43
44#RESLIB1NAME=tst
45#RESLIB1SRSFILES=\
46#                $(SRS)\
47#                $(SOLARRESDIR)\
48
49SHL1TARGET= $(TARGET)$(DLLPOSTFIX)
50#SHL1LIBS=$(SLB)\$(TARGET).lib
51
52!IF "$(COM)"!="WTC"
53SHL1STDLIBS=tools.lib $(SVLIB) usr.lib
54!ELSE
55SHL1STDLIBS=tools.lib libr sv.lib libr isv.lib libr usr.lib
56!ENDIF
57
58SHL1DEPN=   $(L)tools.lib $(SVLIBDEPEND)
59SHL1DEF=    $(MISC)\$(SHL1TARGET).def
60SHL1IMPLIB=$(TARGET)
61#SHL1RES=    $(RES)\$(TARGET).res
62SHL1OBJS=	$(SLO)\test.obj
63
64# --- Targets ------------------------------------------------------
65!INCLUDE <target.mak>
66
67!IF "$(GUI)" == "WNT"
68
69$(MISC)\$(SHL1TARGET).def:  makefile
70    @echo ------------------------------
71    @echo Making: $@
72    @echo LIBRARY     $(SHL1TARGET)                                  >$@
73    @echo DESCRIPTION 'StarOne Test-DLL'                                 >>$@
74    @echo DATA        READ WRITE NONSHARED                          >>$@
75    @echo EXPORTS                                                   >>$@
76	@echo CreateWindow @2 					>>$@
77!ENDIF
78
79!IF "$(GUI)" == "WIN"
80
81$(MISC)\$(SHL1TARGET).def:  makefile
82    @echo ------------------------------
83    @echo Making: $@
84    @echo LIBRARY     $(SHL1TARGET)                                  >$@
85    @echo DESCRIPTION 'StarOne Test-DLL'                                 >>$@
86    @echo EXETYPE     WINDOWS                                       >>$@
87    @echo PROTMODE                                                  >>$@
88    @echo CODE        LOADONCALL MOVEABLE DISCARDABLE               >>$@
89    @echo DATA        PRELOAD MOVEABLE SINGLE                       >>$@
90    @echo HEAPSIZE    0                                             >>$@
91    @echo EXPORTS                                                   >>$@
92	@echo _CreateWindow @2 								>>$@
93!ENDIF
94
95!IF "$(GUI)" == "OS2"
96
97$(MISC)\$(SHL1TARGET).def:  makefile
98	@echo ================================================================
99	@echo building $@
100	@echo ----------------------------------------------------------------
101!IF "$(COM)"!="WTC"
102	echo  LIBRARY		INITINSTANCE TERMINSTANCE			>$@
103	echo  DESCRIPTION	'StarOne Test-DLL'           					>>$@
104	echo  PROTMODE										   >>$@
105    	@echo CODE        LOADONCALL 			              >>$@
106	@echo DATA		  PRELOAD MULTIPLE NONSHARED					  >>$@
107    	@echo EXPORTS                                                   >>$@
108!IF "$(COM)"!="ICC"
109	@echo _CreateWindow @2 								>>$@
110!ELSE
111	@echo CreateWindow @2 								>>$@
112!ENDIF
113
114!ELSE
115    	@echo option DESCRIPTION 'StarOne Test-DLL'		                    >$@
116    	@echo name $(BIN)\$(SHL1TARGET).dll                         >>$@
117	@echo CreateWindow_ @2 								>>$@
118	@gawk -f s:\util\exp.awk temp.def				>>$@
119	del temp.def
120!ENDIF
121!ENDIF
122