Changeset 2885


Ignore:
Timestamp:
Nov 18, 2006, 3:46:02 PM (19 years ago)
Author:
bird
Message:

Make testcase build

Location:
trunk/kLdr/testcase
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/kLdr/testcase/Makefile.kmk

    r2878 r2885  
    9898  TEMPLATE_TSTBARE_TOOL = GCC3OMF
    9999  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
    101103 else
    102104  TEMPLATE_TSTBARE_TOOL = GCC3
     
    142144tst-0-a_TEMPLATE = TSTBAREDLL
    143145tst-0-a_SOURCES  = tst-0-a.c tstDllMainStub.c
     146tst-0-a_SOURCES.os2= tstDllMainStub-os2.asm
    144147
    145148tst-0-b_TEMPLATE = TSTBAREDLL
    146149tst-0-b_SOURCES  = tst-0-b.c tstDllMainStub.c
     150tst-0-b_SOURCES.os2= tstDllMainStub-os2.asm
    147151
    148152tst-0-c_TEMPLATE = TSTBAREDLL
    149153tst-0-c_SOURCES  = tst-0-c.c tstDllMainStub.c
     154tst-0-c_SOURCES.os2= tstDllMainStub-os2.asm
    150155
    151156tst-0-d_TEMPLATE = TSTBAREDLL
    152157tst-0-d_SOURCES  = tst-0-d.c tstDllMainStub.c
     158tst-0-d_SOURCES.os2= tstDllMainStub-os2.asm
    153159
    154160tst-0_TEMPLATE   = TSTBAREPROG
    155161tst-0_SOURCES    = tst-0.c tstExeMainStub.c
     162tst-0_SOURCES.os2= tstExeMainStub-os2.asm
    156163
    157164ifeq ($(filter-out nt win win32 win64,$(BUILD_TARGET)),)
     
    162169tst-0_LIBS       = $(TARGET_tst-0-a:.dll=.lib) $(TARGET_tst-0-b:.dll=.lib) $(TARGET_tst-0-c:.dll=.lib)
    163170else
    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)
     171tst-0-driver_LIBS.os2 = $(PATH_DLL)/kLdr.dll
     172tst-0-a_LIBS     = $(subst -a,-d,$(TARGET_tst-0-a))
     173tst-0-b_LIBS     = $(subst -b,-d,$(TARGET_tst-0-b))
     174tst-0-c_LIBS     = $(subst -c,-d,$(TARGET_tst-0-c))
    167175tst-0_LIBS       = $(TARGET_tst-0-a) $(TARGET_tst-0-b) $(TARGET_tst-0-c)
    168176endif
     
    196204tst-1_LIBS       = $(TARGET_tst-1-a:.dll=.lib) $(TARGET_tst-1-b:.dll=.lib) $(TARGET_tst-1-c:.dll=.lib)
    197205else
    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)
     206tst-1-a_LIBS     = $(subst -a,-d,$(TARGET_tst-1-a))
     207tst-1-b_LIBS     = $(subst -b,-d,$(TARGET_tst-1-b))
     208tst-1-c_LIBS     = $(subst -c,-d,$(TARGET_tst-1-c))
    201209tst-1_LIBS       = $(TARGET_tst-1-a) $(TARGET_tst-1-b) $(TARGET_tst-1-c)
    202210endif
     
    230238tst-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)
    231239else
    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)
     240tst-2-b_LIBS     = $(subst -b,-a,$(TARGET_tst-2-b))
     241tst-2-c_LIBS     = $(subst -c,-a,$(TARGET_tst-2-c))
     242tst-2-d_LIBS     = $(subst -d,-a,$(TARGET_tst-2-d))
    235243tst-2_LIBS       = $(TARGET_tst-2-a) $(TARGET_tst-2-b) $(TARGET_tst-2-c) $(TARGET_tst-2-d)
    236244endif
     
    241249include $(PATH_KBUILD)/footer.kmk
    242250
    243 #$(error tst-2-a_LIBS=$(tst-2-a_LIBS))
  • trunk/kLdr/testcase/tst.h

    r2878 r2885  
    3535#if defined(__OS2__) || defined(__WIN__) || defined(__NT__)
    3636# define MY_EXPORT(type) __declspec(dllexport) type
    37 //# define MY_IMPORT(type) extern __declspec(dllimport) type
     37/*# define MY_IMPORT(type) extern __declspec(dllimport) type*/
    3838# define MY_IMPORT(type) extern type
    3939#else
     
    4343
    4444#if defined(__OS2__)
    45 # define MY_NAME(a) "_"##a
     45# define MY_NAME(a) "_" a
    4646#else
    4747# define MY_NAME(a) a
    4848#endif
    49 
    5049
    5150extern const char *g_pszName;
  • trunk/kLdr/testcase/tstDllMain.c

    r2878 r2885  
    5555 * OS/2 DLL 'main'
    5656 */
    57 ULONG _System _DLL_InitTerm(HMODULE hmod, ULONG fFlag)
     57ULONG _System _DLL_InitTerm(HMODULE hmod, ULONG fFlags)
    5858{
    5959    switch (fFlags)
Note: See TracChangeset for help on using the changeset viewer.