Changeset 2885
- Timestamp:
- Nov 18, 2006, 3:46:02 PM (19 years ago)
- Location:
- trunk/kLdr/testcase
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kLdr/testcase/Makefile.kmk
r2878 r2885 98 98 TEMPLATE_TSTBARE_TOOL = GCC3OMF 99 99 TEMPLATE_TSTBARE_ASFLAGS = -f obj 100 TEMPLATE_TSTBARE_LIBS = os2 gcc end 100 TEMPLATE_TSTBARE_ASTOOL = NASM 101 TEMPLATE_TSTBARE_DEFS = main=main_wrapped 102 TEMPLATE_TSTBARE_LIBS = os2 101 103 else 102 104 TEMPLATE_TSTBARE_TOOL = GCC3 … … 142 144 tst-0-a_TEMPLATE = TSTBAREDLL 143 145 tst-0-a_SOURCES = tst-0-a.c tstDllMainStub.c 146 tst-0-a_SOURCES.os2= tstDllMainStub-os2.asm 144 147 145 148 tst-0-b_TEMPLATE = TSTBAREDLL 146 149 tst-0-b_SOURCES = tst-0-b.c tstDllMainStub.c 150 tst-0-b_SOURCES.os2= tstDllMainStub-os2.asm 147 151 148 152 tst-0-c_TEMPLATE = TSTBAREDLL 149 153 tst-0-c_SOURCES = tst-0-c.c tstDllMainStub.c 154 tst-0-c_SOURCES.os2= tstDllMainStub-os2.asm 150 155 151 156 tst-0-d_TEMPLATE = TSTBAREDLL 152 157 tst-0-d_SOURCES = tst-0-d.c tstDllMainStub.c 158 tst-0-d_SOURCES.os2= tstDllMainStub-os2.asm 153 159 154 160 tst-0_TEMPLATE = TSTBAREPROG 155 161 tst-0_SOURCES = tst-0.c tstExeMainStub.c 162 tst-0_SOURCES.os2= tstExeMainStub-os2.asm 156 163 157 164 ifeq ($(filter-out nt win win32 win64,$(BUILD_TARGET)),) … … 162 169 tst-0_LIBS = $(TARGET_tst-0-a:.dll=.lib) $(TARGET_tst-0-b:.dll=.lib) $(TARGET_tst-0-c:.dll=.lib) 163 170 else 164 tst-0-a_LIBS = $(TARGET_tst-0-a:-a=-d) 165 tst-0-b_LIBS = $(TARGET_tst-0-b:-b=-d) 166 tst-0-c_LIBS = $(TARGET_tst-0-c:-c=-d) 171 tst-0-driver_LIBS.os2 = $(PATH_DLL)/kLdr.dll 172 tst-0-a_LIBS = $(subst -a,-d,$(TARGET_tst-0-a)) 173 tst-0-b_LIBS = $(subst -b,-d,$(TARGET_tst-0-b)) 174 tst-0-c_LIBS = $(subst -c,-d,$(TARGET_tst-0-c)) 167 175 tst-0_LIBS = $(TARGET_tst-0-a) $(TARGET_tst-0-b) $(TARGET_tst-0-c) 168 176 endif … … 196 204 tst-1_LIBS = $(TARGET_tst-1-a:.dll=.lib) $(TARGET_tst-1-b:.dll=.lib) $(TARGET_tst-1-c:.dll=.lib) 197 205 else 198 tst-1-a_LIBS = $( TARGET_tst-1-a:-a=-d)199 tst-1-b_LIBS = $( TARGET_tst-1-b:-b=-d)200 tst-1-c_LIBS = $( TARGET_tst-1-c:-c=-d)206 tst-1-a_LIBS = $(subst -a,-d,$(TARGET_tst-1-a)) 207 tst-1-b_LIBS = $(subst -b,-d,$(TARGET_tst-1-b)) 208 tst-1-c_LIBS = $(subst -c,-d,$(TARGET_tst-1-c)) 201 209 tst-1_LIBS = $(TARGET_tst-1-a) $(TARGET_tst-1-b) $(TARGET_tst-1-c) 202 210 endif … … 230 238 tst-2_LIBS = $(TARGET_tst-2-b:.dll=.lib) $(TARGET_tst-2-c:.dll=.lib) $(TARGET_tst-2-d:.dll=.lib) $(TARGET_tst-2-a:.dll=.lib) 231 239 else 232 tst-2-b_LIBS = $( TARGET_tst-2-b:-b=-a)233 tst-2-c_LIBS = $( TARGET_tst-2-c:-c=-a)234 tst-2-d_LIBS = $( TARGET_tst-2-d:-d=-a)240 tst-2-b_LIBS = $(subst -b,-a,$(TARGET_tst-2-b)) 241 tst-2-c_LIBS = $(subst -c,-a,$(TARGET_tst-2-c)) 242 tst-2-d_LIBS = $(subst -d,-a,$(TARGET_tst-2-d)) 235 243 tst-2_LIBS = $(TARGET_tst-2-a) $(TARGET_tst-2-b) $(TARGET_tst-2-c) $(TARGET_tst-2-d) 236 244 endif … … 241 249 include $(PATH_KBUILD)/footer.kmk 242 250 243 #$(error tst-2-a_LIBS=$(tst-2-a_LIBS)) -
trunk/kLdr/testcase/tst.h
r2878 r2885 35 35 #if defined(__OS2__) || defined(__WIN__) || defined(__NT__) 36 36 # define MY_EXPORT(type) __declspec(dllexport) type 37 / /# define MY_IMPORT(type) extern __declspec(dllimport) type37 /*# define MY_IMPORT(type) extern __declspec(dllimport) type*/ 38 38 # define MY_IMPORT(type) extern type 39 39 #else … … 43 43 44 44 #if defined(__OS2__) 45 # define MY_NAME(a) "_" ##a45 # define MY_NAME(a) "_" a 46 46 #else 47 47 # define MY_NAME(a) a 48 48 #endif 49 50 49 51 50 extern const char *g_pszName; -
trunk/kLdr/testcase/tstDllMain.c
r2878 r2885 55 55 * OS/2 DLL 'main' 56 56 */ 57 ULONG _System _DLL_InitTerm(HMODULE hmod, ULONG fFlag )57 ULONG _System _DLL_InitTerm(HMODULE hmod, ULONG fFlags) 58 58 { 59 59 switch (fFlags)
Note:
See TracChangeset
for help on using the changeset viewer.