- Timestamp:
- Dec 11, 2008 9:00:40 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler_new/Makefile.kmk
r15323 r15336 62 62 endif 63 63 64 ## @todo Note to self (bird): Convert this mess to use NAME (that property didn't exist when the REM_MOD hack was first made I think). 65 64 66 # For 64-bit Windows we currently use gcc (due to MSVC unaware of such a novel 65 67 # thing as C99, a lot of GCC extensions deployed by QEMU and calling convention 66 68 # differences) to cross-compile code to Linux/ELF and dynamically generate invocation wrappers. 67 69 if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), win.amd64) 70 VBOX_USE_REM2 = 1 68 71 REM_MOD := VBoxREM2 69 72 else … … 75 78 # 76 79 ifeq ($(REM_MOD),VBoxREM2) 77 SYSMODS 80 SYSMODS += VBoxREM2 78 81 endif 79 82 80 83 ifndef VBOX_USE_REM64 81 ifeq ($(KBUILD_TARGET),win) 82 DLLS += VBoxREM 83 else 84 ## @todo this is wrong, proper DLLS are DLLS not IMPORT_LIBS. nice try ;-) 85 IMPORT_LIBS += VBoxREM 86 endif 84 DLLS += VBoxREM 87 85 endif 88 86 … … 101 99 $(REM_MOD)_CFLAGS.release += -fno-gcse -O2 102 100 $(REM_MOD)_CFLAGS.profile = $($(REM_MOD)_CFLAGS.release) 103 VBoxREM_LIBS = \104 $(LIB_VMM) \105 $(LIB_RUNTIME)106 101 $(REM_MOD)_DEFS += IN_RING3 $(ARCH_BITS_DEFS) 107 102 # Temporary hack, to allow running with oldish GCC … … 171 166 $(REM_MOD)_INCS += \ 172 167 Sun/crt 168 $(REM_MOD)_SYSSUFF = .rel 169 endif 170 ifdef VBOX_USE_REM2 173 171 $(REM_MOD)_LIBS = \ 174 172 $(PATH_LIB)/RuntimeR3NoCRTGCC$(VBOX_SUFF_LIB) 175 $(REM_MOD)_SYSSUFF = .rel 173 else 174 $(REM_MOD)_LIBS = \ 175 $(LIB_VMM) \ 176 $(LIB_RUNTIME) 177 $(REM_MOD)_LIBS.darwin = \ 178 $(TARGET_VBoxREMImp) 176 179 endif 177 180 … … 189 192 # The VBoxREM2 wrapper. 190 193 # 194 ## @todo Note to self: Merge with VBoxREMSel, call it VBoxREMWrapper and use name. 191 195 VBoxREM_TEMPLATE = VBOXR3 192 196 VBoxREM_DEFS = IN_REM_R3 $(if $(VBOX_WITH_VMI),VBOX_WITH_VMI,) … … 199 203 200 204 ifdef VBOX_USE_REM64 205 ## @todo Note to self: One should be the default config (VBoxREM) with a NAME, the 64 bit varian should be done like here. 206 DLL += VBoxREM32 VBoxREM64 VBoxREMSel 201 207 VBoxREM32_EXTENDS = VBoxREM 202 208 VBoxREM32_EXTENDS_BY = appending 203 209 VBoxREM32_TEMPLATE = $(VBoxREM_TEMPLATE) 204 VBoxREM32_LIBS = $(LIB_RUNTIME)205 210 VBoxREM32_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxREM32.dylib -undefined dynamic_lookup 206 211 … … 209 214 VBoxREM64_TEMPLATE = $(VBoxREM_TEMPLATE) 210 215 VBoxREM64_DEFS = VBOX_ENABLE_VBOXREM64 211 VBoxREM64_LIBS = $(LIB_RUNTIME)212 216 VBoxREM64_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxREM64.dylib -undefined dynamic_lookup 213 217 214 218 VBoxREMSel_TEMPLATE = VBOXR3 215 219 VBoxREMSel_NAME = VBoxREM 216 VBoxREMImp_INST = $(INST_LIB)# what's this about?217 220 VBoxREMSel_DEFS = IN_REM_R3 $(if $(VBOX_WITH_VMI),VBOX_WITH_VMI,) \ 218 221 VBOX_WITH_NEW_RECOMPILER VBOX_USE_BITNESS_SELECTOR … … 221 224 VBoxREMSel_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxREM.dylib -undefined dynamic_lookup 222 225 223 ifeq ($(KBUILD_TARGET), win)224 DLL += VBoxREM32 VBoxREM64 VBoxREMSel225 else226 IMPORT_LIBS += VBoxREM32 VBoxREM64 VBoxREMSel227 endif228 229 226 endif # USE_VBOXREM64 230 227 231 228 232 if1of ($(KBUILD_TARGET), os2 win)233 229 # 234 230 # The VBoxREM import library. … … 248 244 VBoxREMImp_SOURCES.win = VBoxREM.def 249 245 VBoxREMImp_SOURCES.os2 = $(PATH_VBoxREMImp)/VBoxREMOS2.def 250 if eq ($(filter win os2,$(KBUILD_TARGET)),)246 ifn1of ($(KBUILD_TARGET), os2 win) 251 247 VBoxREMImp_SOURCES = $(PATH_VBoxREMImp)/VBoxREMImp.c 252 248 VBoxREMImp_CLEAN = $(PATH_VBoxREMImp)/VBoxREMImp.c 253 249 endif 254 ifn eq ($(filter-out darwin os2 win,$(KBUILD_TARGET)),)250 ifn1of ($(KBUILD_TARGET), darwin os2 win) 255 251 VBoxREMImp_SONAME = VBoxREM$(SUFF_DLL) 256 252 endif 257 VBoxREMImp_LDFLAGS.l4 = -T$(L4_LIBDIR)/../main_rel.ld -nostdlib 253 VBoxREMImp_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxREM.dylib 254 VBoxREMImp_LDFLAGS.l4 = -T$(L4_LIBDIR)/../main_rel.ld -nostdlib 258 255 259 256 $$(PATH_VBoxREMImp)/VBoxREMImp.c: $(VBOX_PATH_RECOMPILER_SRC)/VBoxREM.def $(VBOX_PATH_RECOMPILER_SRC)/Sun/deftoimp.sed $(MAKEFILE_CURRENT) | $$(dir $$@) … … 274 271 --output $@ \ 275 272 $< 276 endif # USE_REM_IMP277 273 278 274
Note:
See TracChangeset
for help on using the changeset viewer.