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