# $Id: Makefile.kmk 68612 2017-09-03 15:49:33Z vboxsync $ ## @file # Makefile for the OS/2 Guest Additions Shared Folder FSD. # SUB_DEPTH = ../../../../.. include $(KBUILD_PATH)/subheader.kmk VBOXSF_USE_WATCOM=1 TEMPLATE_VBoxGuestR0Watcom = xxx TEMPLATE_VBoxGuestR0Watcom_EXTENDS = VBOXGUESTR0 TEMPLATE_VBoxGuestR0Watcom_TOOL = OPENWATCOM TEMPLATE_VBoxGuestR0Watcom_CTOOL = OPENWATCOM TEMPLATE_VBoxGuestR0Watcom_CXXTOOL = OPENWATCOM TEMPLATE_VBoxGuestR0Watcom_LDTOOL = OPENWATCOM-WL TEMPLATE_VBoxGuestR0Watcom_CINCS = \ $(PATH_TOOL_OPENWATCOM)/h \ $(PATH_TOOL_OPENWATCOM)/h/os2 \ $(PATH_ROOT)/include \ /libc/svn/trunk/libc/include # for os2ddk TEMPLATE_VBoxGuestR0Watcom_CXXINCS = $(TEMPLATE_VBoxGuestR0Watcom_CINCS) TEMPLATE_VBoxGuestR0Watcom_CFLAGS = -s -ze -w4 -d2 -hc -nt=TEXT32 -nc=CODE -4 TEMPLATE_VBoxGuestR0Watcom_CXXFLAGS = $(TEMPLATE_VBoxGuestR0Watcom_CFLAGS) TEMPLATE_VBoxGuestR0Watcom_LDFLAGS = \ form os2 lx physdevice \ option NODefaultlibs \ debug codeview all \ option symfile TEMPLATE_VBoxGuestR0Watcom_LIBS = $(NO_SUCH_VARIABLE) #?DLLS += VBoxSF SYSMODS += VBoxSF ifdef VBOXSF_USE_WATCOM VBoxSF_TEMPLATE = VBoxGuestR0Watcom else VBoxSF_TEMPLATE = VBOXGUESTR0 endif VBoxSF_SYSSUFF = .ifs VBoxSF_DLLSUFF = .ifs VBoxSF_DEFS = VBOX_WITH_HGCM VBoxSF_INCS := \ . \ $(PATH_ROOT)/src/VBox/Runtime/include ifdef VBOXSF_USE_WATCOM VBoxSF_LDFLAGS := \ OPTION MODNAME='VBoxSF' \ SEG TYPE CODE PRELOAD DYNAMIC SHARED NONPERMANENT, \ TYPE DATA PRELOAD DYNAMIC # OPTION DESCRIPTION "'VirtualBox Guest Additions Shared Folder FSD for OS/2.'" - quoting issues # Data exports: VBoxSF_LDFLAGS += \ EXPORT 'FS_ATTRIBUTE' \ EXPORT 'FS_NAME' \ EXPORT 'FS_MPSAFEFLAGS2' \ EXPORT 'FS32_ATTRIBUTE' # 16-bit entry points. VBoxSF_LDFLAGS += \ EXPORT 'FS_ALLOCATEPAGESPACE' \ EXPORT 'FS_ATTACH' \ EXPORT 'FS_CANCELLOCKREQUEST' \ EXPORT 'FS_CANCELLOCKREQUESTL' \ EXPORT 'FS_CHDIR' \ EXPORT 'FS_CHGFILEPTR' \ EXPORT 'FS_CLOSE' \ EXPORT 'FS_COMMIT' \ EXPORT 'FS_COPY' \ EXPORT 'FS_DELETE' \ EXPORT 'FS_DOPAGEIO' \ EXPORT 'FS_EXIT' \ EXPORT 'FS_FILEATTRIBUTE' \ EXPORT 'FS_FILEINFO' \ EXPORT 'FS_FILEIO' \ EXPORT 'FS_FILELOCKS' \ EXPORT 'FS_FILELOCKSL' \ EXPORT 'FS_FINDCLOSE' \ EXPORT 'FS_FINDFIRST' \ EXPORT 'FS_FINDFROMNAME' \ EXPORT 'FS_FINDNEXT' \ EXPORT 'FS_FINDNOTIFYCLOSE' \ EXPORT 'FS_FINDNOTIFYFIRST' \ EXPORT 'FS_FINDNOTIFYNEXT' \ EXPORT 'FS_FLUSHBUF' \ EXPORT 'FS_FSCTL' \ EXPORT 'FS_FSINFO' \ EXPORT 'FS_INIT' \ EXPORT 'FS_IOCTL' \ EXPORT 'FS_MKDIR' \ EXPORT 'FS_MOUNT' \ EXPORT 'FS_MOVE' \ EXPORT 'FS_NEWSIZE' \ EXPORT 'FS_NEWSIZEL' \ EXPORT 'FS_NMPIPE' \ EXPORT 'FS_OPENCREATE' \ EXPORT 'FS_OPENPAGEFILE' \ EXPORT 'FS_PATHINFO' \ EXPORT 'FS_PROCESSNAME' \ EXPORT 'FS_READ' \ EXPORT 'FS_RMDIR' \ EXPORT 'FS_SETSWAP' \ EXPORT 'FS_SHUTDOWN' \ EXPORT 'FS_WRITE' # 32-bit entry points. VBoxSF_LDFLAGS += \ EXPORT 'FS32_CHGFILEPTR' \ EXPORT 'FS32_CHGFILEPTRL' \ EXPORT 'FS32_READ' \ EXPORT 'FS32_READFILEATCACHE' \ EXPORT 'FS32_RETURNFILECACHE' \ EXPORT 'FS32_WRITE' else VBoxSF_LDFLAGS := $(addprefix -Zlinker , \ SEG TYPE CODE PRELOAD DYNAMIC SHARED NONPERMANENT, \ TYPE DATA PRELOAD DYNAMIC) #VBoxSF_LDFLAGS += -s -t -v endif VBoxSF_SOURCES = \ VBoxSFA.asm \ VBoxSF.cpp \ VBoxSFFile.cpp \ VBoxSFFind.cpp \ VBoxSFInit.cpp ifndef VBOXSF_USE_WATCOM VBoxSF_SOURCES += \ VBoxSF.def endif VBoxSF_LIBS = \ $(VBOX_LIB_VBGL_R0) \ $(VBOX_LIB_IPRT_GUEST_R0) ifdef VBOXSF_USE_WATCOM VBoxSF_LIBS += $(PATH_IGCC)/lib/libend.lib else VBoxSF_LIBS += end endif include $(FILE_KBUILD_SUB_FOOTER)