trunk/makefile
| r248392 | r248393 | |
| 296 | 296 | OSD := sdl |
| 297 | 297 | endif |
| 298 | 298 | |
| 299 | ifeq ($(TARGETOS),netbsd) |
| 300 | OSD := sdl |
| 301 | endif |
| 302 | |
| 299 | 303 | ifeq ($(TARGETOS),solaris) |
| 300 | 304 | OSD := sdl |
| 301 | 305 | endif |
| r248392 | r248393 | |
| 1005 | 1009 | |
| 1006 | 1010 | |
| 1007 | 1011 | #------------------------------------------------- |
| 1012 | # gmake-netbsd |
| 1013 | #------------------------------------------------- |
| 1014 | |
| 1015 | |
| 1016 | $(PROJECTDIR)/gmake-netbsd/Makefile: makefile $(SCRIPTS) $(GENIE) |
| 1017 | $(SILENT) $(GENIE) $(PARAMS) --gcc=netbsd --gcc_version=$(GCC_VERSION) gmake |
| 1018 | |
| 1019 | .PHONY: netbsd_x64 |
| 1020 | netbsd_x64: generate $(PROJECTDIR)/gmake-netbsd/Makefile |
| 1021 | $(SILENT) $(MAKE) -C $(PROJECTDIR)/gmake-netbsd config=$(CONFIG)64 |
| 1022 | |
| 1023 | .PHONY: netbsd |
| 1024 | netbsd: netbsd_x86 |
| 1025 | |
| 1026 | .PHONY: netbsd_x86 |
| 1027 | netbsd_x86: generate $(PROJECTDIR)/gmake-netbsd/Makefile |
| 1028 | $(SILENT) $(MAKE) -C $(PROJECTDIR)/gmake-netbsd config=$(CONFIG)32 |
| 1029 | |
| 1030 | |
| 1031 | #------------------------------------------------- |
| 1008 | 1032 | # Clean/bootstrap |
| 1009 | 1033 | #------------------------------------------------- |
| 1010 | 1034 | |
trunk/scripts/src/3rdparty.lua
| r248392 | r248393 | |
| 534 | 534 | MAME_DIR .. "3rdparty/portmidi/porttime/ptlinux.c", |
| 535 | 535 | } |
| 536 | 536 | end |
| 537 | if _OPTIONS["targetos"]=="netbsd" then |
| 538 | files { |
| 539 | MAME_DIR .. "3rdparty/portmidi/pm_linux/pmlinux.c", |
| 540 | MAME_DIR .. "3rdparty/portmidi/pm_linux/finddefault.c", |
| 541 | MAME_DIR .. "3rdparty/portmidi/porttime/ptlinux.c", |
| 542 | } |
| 543 | end |
| 537 | 544 | if _OPTIONS["targetos"]=="macosx" then |
| 538 | 545 | files { |
| 539 | 546 | MAME_DIR .. "3rdparty/portmidi/pm_mac/pmmac.c", |
| r248392 | r248393 | |
| 591 | 598 | MAME_DIR .. "3rdparty/bx/include/compat/freebsd", |
| 592 | 599 | } |
| 593 | 600 | |
| 601 | configuration { "netbsd" } |
| 602 | includedirs { |
| 603 | MAME_DIR .. "3rdparty/bx/include/compat/freebsd", |
| 604 | } |
| 605 | |
| 594 | 606 | configuration { "gmake" } |
| 595 | 607 | buildoptions { |
| 596 | 608 | "-Wno-uninitialized", |
trunk/scripts/toolchain.lua
| r248392 | r248393 | |
| 24 | 24 | { "mingw-clang", "MinGW (clang compiler)" }, |
| 25 | 25 | { "nacl", "Native Client" }, |
| 26 | 26 | { "nacl-arm", "Native Client - ARM" }, |
| 27 | { "netbsd", "NetBSD" }, |
| 27 | 28 | { "osx", "OSX (GCC compiler)" }, |
| 28 | 29 | { "osx-clang", "OSX (Clang compiler)" }, |
| 29 | 30 | { "pnacl", "Native Client - PNaCl" }, |
| r248392 | r248393 | |
| 147 | 148 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-freebsd") |
| 148 | 149 | end |
| 149 | 150 | |
| 151 | if "netbsd" == _OPTIONS["gcc"] then |
| 152 | location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-netbsd") |
| 153 | end |
| 154 | |
| 150 | 155 | if "ios-arm" == _OPTIONS["gcc"] then |
| 151 | 156 | premake.gcc.cc = "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" |
| 152 | 157 | premake.gcc.cxx = "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++" |
| r248392 | r248393 | |
| 590 | 595 | |
| 591 | 596 | configuration { "freebsd", "x64", "Debug" } |
| 592 | 597 | targetdir (_buildDir .. "freebsd" .. "/bin/x64/Debug") |
| 593 | | |
| 598 | |
| 599 | configuration { "netbsd", "x32" } |
| 600 | objdir (_buildDir .. "netbsd" .. "/obj") |
| 601 | buildoptions { |
| 602 | "-m32", |
| 603 | } |
| 604 | configuration { "netbsd", "x32", "Release" } |
| 605 | targetdir (_buildDir .. "netbsd" .. "/bin/x32/Release") |
| 606 | |
| 607 | configuration { "netbsd", "x32", "Debug" } |
| 608 | targetdir (_buildDir .. "netbsd" .. "/bin/x32/Debug") |
| 609 | |
| 610 | configuration { "netbsd", "x64" } |
| 611 | objdir (_buildDir .. "netbsd" .. "/obj") |
| 612 | buildoptions { |
| 613 | "-m64", |
| 614 | } |
| 615 | configuration { "netbsd", "x64", "Release" } |
| 616 | targetdir (_buildDir .. "netbsd" .. "/bin/x64/Release") |
| 617 | |
| 618 | configuration { "netbsd", "x64", "Debug" } |
| 619 | targetdir (_buildDir .. "netbsd" .. "/bin/x64/Debug") |
| 620 | |
| 594 | 621 | configuration { "android-*" } |
| 595 | 622 | includedirs { |
| 596 | 623 | "$(ANDROID_NDK_ROOT)/sources/cxx-stl/gnu-libstdc++/4.8/include", |