VirtualBox

source: vbox/trunk/src/VBox/Additions/os2/VBoxSF/Makefile.kmk@ 73009

Last change on this file since 73009 was 69339, checked in by vboxsync, 7 years ago

additions/os2: scm updates

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.6 KB
Line 
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
31SUB_DEPTH = ../../../../..
32include $(KBUILD_PATH)/subheader.kmk
33
34VBOXSF_USE_WATCOM=1
35TEMPLATE_VBoxGuestR0Watcom = xxx
36TEMPLATE_VBoxGuestR0Watcom_EXTENDS = VBOXGUESTR0
37TEMPLATE_VBoxGuestR0Watcom_TOOL = OPENWATCOM
38TEMPLATE_VBoxGuestR0Watcom_CTOOL = OPENWATCOM
39TEMPLATE_VBoxGuestR0Watcom_CXXTOOL = OPENWATCOM
40TEMPLATE_VBoxGuestR0Watcom_LDTOOL = OPENWATCOM-WL
41TEMPLATE_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
46TEMPLATE_VBoxGuestR0Watcom_CXXINCS = $(TEMPLATE_VBoxGuestR0Watcom_CINCS)
47TEMPLATE_VBoxGuestR0Watcom_CFLAGS = -s -ze -w4 -d2 -hc -nt=TEXT32 -nc=CODE -4
48TEMPLATE_VBoxGuestR0Watcom_CXXFLAGS = $(TEMPLATE_VBoxGuestR0Watcom_CFLAGS)
49
50TEMPLATE_VBoxGuestR0Watcom_LDFLAGS = \
51 form os2 lx physdevice \
52 option NODefaultlibs \
53 debug codeview all \
54 option symfile
55TEMPLATE_VBoxGuestR0Watcom_LIBS = $(NO_SUCH_VARIABLE)
56
57
58#?DLLS += VBoxSF
59SYSMODS += VBoxSF
60ifdef VBOXSF_USE_WATCOM
61VBoxSF_TEMPLATE = VBoxGuestR0Watcom
62else
63VBoxSF_TEMPLATE = VBOXGUESTR0
64endif
65VBoxSF_SYSSUFF = .ifs
66VBoxSF_DLLSUFF = .ifs
67VBoxSF_DEFS = VBOX_WITH_HGCM
68VBoxSF_INCS := \
69 . \
70 $(PATH_ROOT)/src/VBox/Runtime/include
71ifdef VBOXSF_USE_WATCOM
72VBoxSF_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:
78VBoxSF_LDFLAGS += \
79 EXPORT 'FS_ATTRIBUTE' \
80 EXPORT 'FS_NAME' \
81 EXPORT 'FS_MPSAFEFLAGS2' \
82 EXPORT 'FS32_ATTRIBUTE'
83# 16-bit entry points.
84VBoxSF_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.
130VBoxSF_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'
137else
138VBoxSF_LDFLAGS := $(addprefix -Zlinker , \
139 SEG TYPE CODE PRELOAD DYNAMIC SHARED NONPERMANENT, \
140 TYPE DATA PRELOAD DYNAMIC)
141#VBoxSF_LDFLAGS += -s -t -v
142endif
143
144VBoxSF_SOURCES = \
145 VBoxSFA.asm \
146 VBoxSF.cpp \
147 VBoxSFFile.cpp \
148 VBoxSFFind.cpp \
149 VBoxSFInit.cpp
150ifndef VBOXSF_USE_WATCOM
151 VBoxSF_SOURCES += \
152 VBoxSF.def
153endif
154VBoxSF_LIBS = \
155 $(VBOX_LIB_VBGL_R0) \
156 $(VBOX_LIB_IPRT_GUEST_R0)
157ifdef VBOXSF_USE_WATCOM
158 VBoxSF_LIBS += $(PATH_IGCC)/lib/libend.lib
159else
160 VBoxSF_LIBS += end
161endif
162
163include $(FILE_KBUILD_SUB_FOOTER)
164
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette