1 | # $Id: Makefile.kmk 69339 2017-10-26 11:22:26Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the OS/2 Guest Additions Shared Folder FSD.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (c) 2007 knut st. osmundsen <[email protected]>
|
---|
8 | #
|
---|
9 | # Permission is hereby granted, free of charge, to any person
|
---|
10 | # obtaining a copy of this software and associated documentation
|
---|
11 | # files (the "Software"), to deal in the Software without
|
---|
12 | # restriction, including without limitation the rights to use,
|
---|
13 | # copy, modify, merge, publish, distribute, sublicense, and/or sell
|
---|
14 | # copies of the Software, and to permit persons to whom the
|
---|
15 | # Software is furnished to do so, subject to the following
|
---|
16 | # conditions:
|
---|
17 | #
|
---|
18 | # The above copyright notice and this permission notice shall be
|
---|
19 | # included in all copies or substantial portions of the Software.
|
---|
20 | #
|
---|
21 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
---|
22 | # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
---|
23 | # OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
---|
24 | # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
---|
25 | # HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
---|
26 | # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
---|
27 | # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
---|
28 | # OTHER DEALINGS IN THE SOFTWARE.
|
---|
29 | #
|
---|
30 |
|
---|
31 | SUB_DEPTH = ../../../../..
|
---|
32 | include $(KBUILD_PATH)/subheader.kmk
|
---|
33 |
|
---|
34 | VBOXSF_USE_WATCOM=1
|
---|
35 | TEMPLATE_VBoxGuestR0Watcom = xxx
|
---|
36 | TEMPLATE_VBoxGuestR0Watcom_EXTENDS = VBOXGUESTR0
|
---|
37 | TEMPLATE_VBoxGuestR0Watcom_TOOL = OPENWATCOM
|
---|
38 | TEMPLATE_VBoxGuestR0Watcom_CTOOL = OPENWATCOM
|
---|
39 | TEMPLATE_VBoxGuestR0Watcom_CXXTOOL = OPENWATCOM
|
---|
40 | TEMPLATE_VBoxGuestR0Watcom_LDTOOL = OPENWATCOM-WL
|
---|
41 | TEMPLATE_VBoxGuestR0Watcom_CINCS = \
|
---|
42 | $(PATH_TOOL_OPENWATCOM)/h \
|
---|
43 | $(PATH_TOOL_OPENWATCOM)/h/os2 \
|
---|
44 | $(PATH_ROOT)/include \
|
---|
45 | /libc/svn/trunk/libc/include # for os2ddk
|
---|
46 | TEMPLATE_VBoxGuestR0Watcom_CXXINCS = $(TEMPLATE_VBoxGuestR0Watcom_CINCS)
|
---|
47 | TEMPLATE_VBoxGuestR0Watcom_CFLAGS = -s -ze -w4 -d2 -hc -nt=TEXT32 -nc=CODE -4
|
---|
48 | TEMPLATE_VBoxGuestR0Watcom_CXXFLAGS = $(TEMPLATE_VBoxGuestR0Watcom_CFLAGS)
|
---|
49 |
|
---|
50 | TEMPLATE_VBoxGuestR0Watcom_LDFLAGS = \
|
---|
51 | form os2 lx physdevice \
|
---|
52 | option NODefaultlibs \
|
---|
53 | debug codeview all \
|
---|
54 | option symfile
|
---|
55 | TEMPLATE_VBoxGuestR0Watcom_LIBS = $(NO_SUCH_VARIABLE)
|
---|
56 |
|
---|
57 |
|
---|
58 | #?DLLS += VBoxSF
|
---|
59 | SYSMODS += VBoxSF
|
---|
60 | ifdef VBOXSF_USE_WATCOM
|
---|
61 | VBoxSF_TEMPLATE = VBoxGuestR0Watcom
|
---|
62 | else
|
---|
63 | VBoxSF_TEMPLATE = VBOXGUESTR0
|
---|
64 | endif
|
---|
65 | VBoxSF_SYSSUFF = .ifs
|
---|
66 | VBoxSF_DLLSUFF = .ifs
|
---|
67 | VBoxSF_DEFS = VBOX_WITH_HGCM
|
---|
68 | VBoxSF_INCS := \
|
---|
69 | . \
|
---|
70 | $(PATH_ROOT)/src/VBox/Runtime/include
|
---|
71 | ifdef VBOXSF_USE_WATCOM
|
---|
72 | VBoxSF_LDFLAGS := \
|
---|
73 | OPTION MODNAME='VBoxSF' \
|
---|
74 | SEG TYPE CODE PRELOAD DYNAMIC SHARED NONPERMANENT, \
|
---|
75 | TYPE DATA PRELOAD DYNAMIC
|
---|
76 | # OPTION DESCRIPTION "'VirtualBox Guest Additions Shared Folder FSD for OS/2.'" - quoting issues
|
---|
77 | # Data exports:
|
---|
78 | VBoxSF_LDFLAGS += \
|
---|
79 | EXPORT 'FS_ATTRIBUTE' \
|
---|
80 | EXPORT 'FS_NAME' \
|
---|
81 | EXPORT 'FS_MPSAFEFLAGS2' \
|
---|
82 | EXPORT 'FS32_ATTRIBUTE'
|
---|
83 | # 16-bit entry points.
|
---|
84 | VBoxSF_LDFLAGS += \
|
---|
85 | EXPORT 'FS_ALLOCATEPAGESPACE' \
|
---|
86 | EXPORT 'FS_ATTACH' \
|
---|
87 | EXPORT 'FS_CANCELLOCKREQUEST' \
|
---|
88 | EXPORT 'FS_CANCELLOCKREQUESTL' \
|
---|
89 | EXPORT 'FS_CHDIR' \
|
---|
90 | EXPORT 'FS_CHGFILEPTR' \
|
---|
91 | EXPORT 'FS_CLOSE' \
|
---|
92 | EXPORT 'FS_COMMIT' \
|
---|
93 | EXPORT 'FS_COPY' \
|
---|
94 | EXPORT 'FS_DELETE' \
|
---|
95 | EXPORT 'FS_DOPAGEIO' \
|
---|
96 | EXPORT 'FS_EXIT' \
|
---|
97 | EXPORT 'FS_FILEATTRIBUTE' \
|
---|
98 | EXPORT 'FS_FILEINFO' \
|
---|
99 | EXPORT 'FS_FILEIO' \
|
---|
100 | EXPORT 'FS_FILELOCKS' \
|
---|
101 | EXPORT 'FS_FILELOCKSL' \
|
---|
102 | EXPORT 'FS_FINDCLOSE' \
|
---|
103 | EXPORT 'FS_FINDFIRST' \
|
---|
104 | EXPORT 'FS_FINDFROMNAME' \
|
---|
105 | EXPORT 'FS_FINDNEXT' \
|
---|
106 | EXPORT 'FS_FINDNOTIFYCLOSE' \
|
---|
107 | EXPORT 'FS_FINDNOTIFYFIRST' \
|
---|
108 | EXPORT 'FS_FINDNOTIFYNEXT' \
|
---|
109 | EXPORT 'FS_FLUSHBUF' \
|
---|
110 | EXPORT 'FS_FSCTL' \
|
---|
111 | EXPORT 'FS_FSINFO' \
|
---|
112 | EXPORT 'FS_INIT' \
|
---|
113 | EXPORT 'FS_IOCTL' \
|
---|
114 | EXPORT 'FS_MKDIR' \
|
---|
115 | EXPORT 'FS_MOUNT' \
|
---|
116 | EXPORT 'FS_MOVE' \
|
---|
117 | EXPORT 'FS_NEWSIZE' \
|
---|
118 | EXPORT 'FS_NEWSIZEL' \
|
---|
119 | EXPORT 'FS_NMPIPE' \
|
---|
120 | EXPORT 'FS_OPENCREATE' \
|
---|
121 | EXPORT 'FS_OPENPAGEFILE' \
|
---|
122 | EXPORT 'FS_PATHINFO' \
|
---|
123 | EXPORT 'FS_PROCESSNAME' \
|
---|
124 | EXPORT 'FS_READ' \
|
---|
125 | EXPORT 'FS_RMDIR' \
|
---|
126 | EXPORT 'FS_SETSWAP' \
|
---|
127 | EXPORT 'FS_SHUTDOWN' \
|
---|
128 | EXPORT 'FS_WRITE'
|
---|
129 | # 32-bit entry points.
|
---|
130 | VBoxSF_LDFLAGS += \
|
---|
131 | EXPORT 'FS32_CHGFILEPTR' \
|
---|
132 | EXPORT 'FS32_CHGFILEPTRL' \
|
---|
133 | EXPORT 'FS32_READ' \
|
---|
134 | EXPORT 'FS32_READFILEATCACHE' \
|
---|
135 | EXPORT 'FS32_RETURNFILECACHE' \
|
---|
136 | EXPORT 'FS32_WRITE'
|
---|
137 | else
|
---|
138 | VBoxSF_LDFLAGS := $(addprefix -Zlinker , \
|
---|
139 | SEG TYPE CODE PRELOAD DYNAMIC SHARED NONPERMANENT, \
|
---|
140 | TYPE DATA PRELOAD DYNAMIC)
|
---|
141 | #VBoxSF_LDFLAGS += -s -t -v
|
---|
142 | endif
|
---|
143 |
|
---|
144 | VBoxSF_SOURCES = \
|
---|
145 | VBoxSFA.asm \
|
---|
146 | VBoxSF.cpp \
|
---|
147 | VBoxSFFile.cpp \
|
---|
148 | VBoxSFFind.cpp \
|
---|
149 | VBoxSFInit.cpp
|
---|
150 | ifndef VBOXSF_USE_WATCOM
|
---|
151 | VBoxSF_SOURCES += \
|
---|
152 | VBoxSF.def
|
---|
153 | endif
|
---|
154 | VBoxSF_LIBS = \
|
---|
155 | $(VBOX_LIB_VBGL_R0) \
|
---|
156 | $(VBOX_LIB_IPRT_GUEST_R0)
|
---|
157 | ifdef VBOXSF_USE_WATCOM
|
---|
158 | VBoxSF_LIBS += $(PATH_IGCC)/lib/libend.lib
|
---|
159 | else
|
---|
160 | VBoxSF_LIBS += end
|
---|
161 | endif
|
---|
162 |
|
---|
163 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
164 |
|
---|