Changeset 534 in vbox for trunk/Config.kmk
- Timestamp:
- Feb 2, 2007 5:03:03 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r376 r534 201 201 202 202 # Most stuff doesn't build yet on the two new targets. 203 ifneq ($(filter darwin os2 ,$(BUILD_TARGET)),)203 ifneq ($(filter darwin os2 freebsd,$(BUILD_TARGET)),) 204 204 #VBOX_WITH_VBOXBFE= 205 205 VBOX_WITH_MAIN= … … 276 276 # Image and object format config. 277 277 # 278 ifeq ($(BUILD_TARGET),linux) 279 VBOX_LDR_FMT = elf 280 endif 281 ifeq ($(BUILD_TARGET),l4) 278 ifeq ($(filter-out linux l4 freebsd netbsd openbsd solaris,$(BUILD_TARGET)),) 282 279 VBOX_LDR_FMT = elf 283 280 endif … … 491 488 DEFS.debug := DEBUG DEBUG_$(subst $(subst _, ,_),_,$(USERNAME)) DEBUG_USERNAME=$(subst $(subst _, ,_),_,$(USERNAME)) 492 489 DEFS.profile = VBOX_WITH_STATISTICS 493 DEFS.x86 = __X86__ 494 DEFS.amd64 = __AMD64__ 495 DEFS.darwin= __DARWIN__ 496 DEFS.l4 = __L4__ __L4ENV__ L4API_l4v2 __NO_CTYPE _FILE_OFFSET_BITS=64 490 DEFS.x86 = __X86__ 491 DEFS.amd64 = __AMD64__ 492 DEFS.darwin = __DARWIN__ 493 DEFS.freebsd = __FREEBSD__ 494 DEFS.l4 = __L4__ __L4ENV__ L4API_l4v2 __NO_CTYPE _FILE_OFFSET_BITS=64 497 495 ifeq ($(L4_API),l4v2onv4) 498 DEFS.l4 += L4API_l4v2onv4 STATIC_L4_INLINE 499 endif 500 DEFS.linux = __LINUX__ _FILE_OFFSET_BITS=64 501 DEFS.os2 = __OS2__ 502 DEFS.win = __WIN__ 496 DEFS.l4 += L4API_l4v2onv4 STATIC_L4_INLINE 497 endif 498 DEFS.linux = __LINUX__ _FILE_OFFSET_BITS=64 499 DEFS.netbsd = __NETBSD__ 500 DEFS.openbsd = __OPENBSD__ 501 DEFS.os2 = __OS2__ 502 DEFS.solaris = __SOLARIS__ 503 DEFS.win = __WIN__ 503 504 DEFS.win.x86 = __WIN32__ 504 505 DEFS.win.amd64 = __WIN64__ … … 573 574 # Add the output dir(s) to the dynamic loader search path. 574 575 # 576 ifeq ($(filter-out linux l4 freebsd netbsd openbsd solaris,$(BUILD_TARGET)),) 577 export LD_LIBRARY_PATH:=$(PATH_BIN):$(PATH_LIB):$(LD_LIBRARY_PATH) 578 endif 579 ifeq ($(BUILD_TARGET),os2) 580 #fixme! export BEGINLIBPATH:=$(PATH_BIN);$(PATH_LIB);$(BEGINLIBPATH) 581 endif 575 582 ifeq ($(BUILD_TARGET),win) 576 583 export PATH:=$(PATH_BIN);$(PATH_LIB);$(PATH) 577 endif578 ifeq ($(BUILD_TARGET),linux)579 export LD_LIBRARY_PATH:=$(PATH_BIN):$(PATH_LIB):$(LD_LIBRARY_PATH)580 endif581 ifeq ($(BUILD_TARGET),l4)582 export LD_LIBRARY_PATH:=$(PATH_BIN):$(PATH_LIB):$(LD_LIBRARY_PATH)583 endif584 ifeq ($(BUILD_TARGET),os2)585 #fixme! export BEGINLIBPATH:=$(PATH_BIN);$(PATH_LIB);$(BEGINLIBPATH)586 584 endif 587 585 … … 605 603 LIB_REM = $(PATH_BIN)/VBoxREMImp.s.so 606 604 endif 607 ifeq ($( BUILD_TARGET),linux)605 ifeq ($(filter-out linux freebsd netbsd openbsd solaris,$(BUILD_TARGET)),) 608 606 LIB_RUNTIME = $(PATH_BIN)/VBoxRT.so 609 607 LIB_RUNTIME_EF = $(PATH_LIB)/RuntimeEFCPP.a … … 1134 1132 endif 1135 1133 1134 ifeq ($(filter-out freebsd netbsd openbsd,$(BUILD_TARGET)),) # pure guess work just to avoid the warning below 1135 TEMPLATE_VBOXR0DRV_TOOL = $(VBOX_GCC_TOOL) 1136 TEMPLATE_VBOXR0DRV_DEFS = __KERNEL__ IN_RING0 IN_RT_R0 1137 TEMPLATE_VBOXR0DRV_CFLAGS = \ 1138 -Wall -Wstrict-prototypes -Wno-trigraphs $(VBOX_GCC_Wno-pointer-sign) \ 1139 $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_OPT) $(VBOX_GCC_FP) -fno-strict-aliasing -fno-common 1140 TEMPLATE_VBOXR0DRV_CFLAGS.x86 = -msoft-float 1141 TEMPLATE_VBOXR0DRV_CFLAGS.amd64 = -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow \ 1142 -fno-reorder-blocks -ffreestanding -fno-asynchronous-unwind-tables -funit-at-a-time \ 1143 -Wno-sign-compare -Wdeclaration-after-statement 1144 TEMPLATE_VBOXR0DRV_CXXFLAGS = $(filter-out -Wstrict-prototypes -Wno-pointer-sign,$(TEMPLATE_VBOXR0DRV_CFLAGS)) -fno-exceptions -fno-rtti 1145 TEMPLATE_VBOXR0DRV_SYSSUFF = .ko 1146 TEMPLATE_VBOXR0DRV_LDFLAGS.x86 = -m elf_i386 -r 1147 TEMPLATE_VBOXR0DRV_LDFLAGS.amd64 = -m elf_x86_64 -r 1148 endif 1149 1136 1150 ifdef VBOX_WITH_VBOXDRV 1137 1151 ifndef TEMPLATE_VBOXR0DRV_TOOL … … 1205 1219 ifeq ($(BUILD_TARGET),linux) 1206 1220 TEMPLATE_VBOXR3EXE_LIBS = pthread m $(LIB_UUID) rt dl 1207 else 1208 ifeq ($(BUILD_TARGET),l4) 1221 else ifeq ($(BUILD_TARGET),l4) 1209 1222 TEMPLATE_VBOXR3EXE_LIBS = \ 1210 1223 $(L4_LIBDIR)/libvboxserver.s.so \ … … 1213 1226 $(L4_LIBDIR)/libdl.s.so \ 1214 1227 $(L4_LIBDIR)/libuc.0.s.so 1215 else 1216 ifeq ($(BUILD_TARGET),os2) 1228 else ifeq ($(BUILD_TARGET),os2) 1217 1229 TEMPLATE_VBOXR3EXE_TOOL = GCC3OMF 1218 1230 TEMPLATE_VBOXR3EXE_LIBS = socket iconv 1219 else 1220 ifeq ($(BUILD_TARGET),darwin) 1231 else ifeq ($(BUILD_TARGET),darwin) 1221 1232 TEMPLATE_VBOXR3EXE_TOOL = GCC4MACHO 1222 1233 TEMPLATE_VBOXR3EXE_LIBS = 1223 1234 TEMPLATE_VBOXR3EXE_LDFLAGS = -read_only_relocs suppress 1224 else 1235 else ifeq ($(filter-out freebsd netbsd openbsd,$(BUILD_TARGET)),) 1236 TEMPLATE_VBOXR3EXE_TOOL = GCC3 1237 TEMPLATE_VBOXR3EXE_LIBS = 1238 else ifeq ($(BUILD_TARGET),solaris) 1239 $(warning Warning: VBOX Build: Target $(BUILD_TARGET) is not officially supported!) 1240 TEMPLATE_VBOXR3EXE_TOOL = GCC3PLAIN 1241 TEMPLATE_VBOXR3EXE_LIBS = rt 1242 else 1225 1243 $(warning Warning: VBOX Build: Target $(BUILD_TARGET) is not officially supported!) 1226 1244 TEMPLATE_VBOXR3EXE_CXXFLAGS.profile = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.release) 1227 1245 TEMPLATE_VBOXR3EXE_CXXFLAGS.kprofile = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.krelease) 1228 endif1229 endif1230 endif1231 1246 endif 1232 1247 endif … … 1234 1249 # 1235 1250 # Template for building R3 shared objects / DLLs. 1236 # This is mostly identical to the VBOXR3EXE template. 1251 # This is mostly identical to the VBOXR3EXE template. (Avoid PIC if possible!) 1237 1252 # 1238 1253 TEMPLATE_VBOXR3 = VBox Ring 3 SO/DLLs … … 1335 1350 TEMPLATE_VBOXNOCRTGCC_ASFLAGS = $(VBOX_ASFLAGS) 1336 1351 TEMPLATE_VBOXNOCRTGCC_LDFLAGS = -nostdlib 1337 ifneq ($(filter-out os2 darwin ,$(BUILD_TARGET)),)1352 ifneq ($(filter-out os2 darwin solaris,$(BUILD_TARGET)),) 1338 1353 ifneq ($(BUILD_TARGET_ARCH),amd64) 1339 1354 TEMPLATE_VBOXNOCRTGCC_LDFLAGS += -Wl,--no-undefined … … 1408 1423 ifeq ($(BUILD_TARGET),linux) 1409 1424 TEMPLATE_VBOXMAINEXE_LIBS = pthread m $(LIB_UUID) rt 1410 else 1411 ifeq ($(BUILD_TARGET),l4) 1425 else ifeq ($(BUILD_TARGET),l4) 1412 1426 TEMPLATE_VBOXMAINEXE_LIBS = 1413 1427 # no libs as yet in l4 target - must be added later 1414 else 1415 ifeq ($(BUILD_TARGET),os2) 1428 else ifeq ($(BUILD_TARGET),os2) 1416 1429 TEMPLATE_VBOXMAINEXE_TOOL = GCC3OMF 1417 1430 TEMPLATE_VBOXMAINEXE_LIBS = 1418 else 1419 ifeq ($(BUILD_TARGET),darwin) 1431 else ifeq ($(BUILD_TARGET),darwin) 1420 1432 TEMPLATE_VBOXMAINEXE_TOOL = GCC4MACHO 1421 1433 TEMPLATE_VBOXMAINEXE_LIBS = 1422 else 1434 else ifeq ($(filter-out freebsd netbsd openbsd,$(BUILD_TARGET)),) 1435 TEMPLATE_VBOXMAINEXE_TOOL = GCC3 1436 TEMPLATE_VBOXMAINEXE_LIBS = 1437 else ifeq ($(BUILD_TARGET),solaris) 1438 $(warning Warning: VBOX Build: Target $(BUILD_TARGET) is not officially supported!) 1439 TEMPLATE_VBOXMAINEXE_TOOL = GCC3PLAIN 1440 TEMPLATE_VBOXMAINEXE_LIBS = rt 1441 else 1423 1442 $(warning Warning: VBOX Build: Target $(BUILD_TARGET) is not officially supported!) 1424 1443 TEMPLATE_VBOXMAINEXE_LIBS = 1425 endif # !darwin 1426 endif # !os2 1427 endif # !l4 1428 endif # !linux 1444 endif 1429 1445 1430 1446 endif # !win … … 1631 1647 ifeq ($(BUILD_PLATFORM),linux) 1632 1648 TEMPLATE_VBOXBLDPROG_LIBS = pthread m $(LIB_UUID) rt dl 1633 else 1634 ifeq ($(BUILD_PLATFORM),os2) 1649 else ifeq ($(BUILD_PLATFORM),os2) 1635 1650 TEMPLATE_VBOXBLDPROG_TOOL = GCC3OMF 1636 1651 TEMPLATE_VBOXBLDPROG_LIBS = socket iconv 1637 else 1638 ifeq ($(BUILD_PLATFORM),darwin) 1652 else ifeq ($(BUILD_PLATFORM),darwin) 1639 1653 TEMPLATE_VBOXBLDPROG_TOOL = GCC4MACHO 1640 1654 TEMPLATE_VBOXBLDPROG_LIBS = 1641 else 1655 else ifeq ($(filter-out freebsd netbsd openbsd,$(BUILD_PLATFORM)),) 1656 TEMPLATE_VBOXBLDPROG_TOOL = GCC3 1657 TEMPLATE_VBOXBLDPROG_LIBS = 1658 else ifeq ($(BUILD_PLATFORM),solaris) 1642 1659 $(warning Warning: VBOX Build: Target $(BUILD_PLATFORM) is not officially supported!) 1643 endif # !darwin 1644 endif # !os2 1645 endif # !linux 1660 TEMPLATE_VBOXBLDPROG_TOOL = GCC3PLAIN 1661 TEMPLATE_VBOXBLDPROG_LIBS = rt 1662 else 1663 $(warning Warning: VBOX Build: Target $(BUILD_PLATFORM) is not officially supported!) 1664 endif 1665 1646 1666 endif # !win 1647 1667
Note:
See TracChangeset
for help on using the changeset viewer.