Skip to content

Commit

Permalink
Add initial gmake glue for the NetBSD platform
Browse files Browse the repository at this point in the history
Summary:
These changes aren't everything what is needed for the autotools target, but it's significantly approaching it.

These changes shouldn't effect the build process on other platforms.

Patch by Kamil Rytarowski, thanks!

Reviewers: joerg, brucem

Subscribers: brucem, tberghammer, danalbert, srhines, lldb-commits

Differential Revision: http://reviews.llvm.org/D13715

llvm-svn: 251171
  • Loading branch information
waywardmonkeys committed Oct 24, 2015
1 parent 0722f08 commit ac1cb4f
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 2 deletions.
5 changes: 5 additions & 0 deletions lldb/lib/Makefile
Expand Up @@ -102,6 +102,7 @@ USEDLIBS = lldbAPI.a \
lldbPluginPlatformLinux.a \
lldbPluginPlatformWindows.a \
lldbPluginPlatformFreeBSD.a \
lldbPluginPlatformNetBSD.a \
lldbPluginPlatformPOSIX.a \
lldbPluginPlatformKalimba.a \
lldbPluginPlatformAndroid.a \
Expand Down Expand Up @@ -141,6 +142,10 @@ ifneq (,$(filter $(HOST_OS), FreeBSD GNU/kFreeBSD))
lldbPluginProcessFreeBSD.a
endif

ifeq ($(HOST_OS),NetBSD)
USEDLIBS += lldbPluginProcessPOSIX.a
endif

include $(LEVEL)/Makefile.common

ifeq ($(HOST_OS),MingW)
Expand Down
5 changes: 5 additions & 0 deletions lldb/source/Host/Makefile
Expand Up @@ -43,6 +43,11 @@ $(eval $(call DIR_SOURCES,posix))
$(eval $(call DIR_SOURCES,freebsd))
endif

ifeq ($(HOST_OS),NetBSD)
$(eval $(call DIR_SOURCES,posix))
$(eval $(call DIR_SOURCES,netbsd))
endif

ifeq ($(HOST_OS),MingW)
$(eval $(call DIR_SOURCES,windows))
endif
Expand Down
14 changes: 14 additions & 0 deletions lldb/source/Host/netbsd/Makefile
@@ -0,0 +1,14 @@
##===- source/Host/netbsd/Makefile --------------------------*- Makefile -*-===##
#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
#
##===----------------------------------------------------------------------===##

LLDB_LEVEL := ../../..
LIBRARYNAME := lldbHostNetBSD
BUILD_ARCHIVE = 1

include $(LLDB_LEVEL)/Makefile
4 changes: 4 additions & 0 deletions lldb/source/Plugins/Makefile
Expand Up @@ -58,4 +58,8 @@ ifneq (,$(filter $(HOST_OS), FreeBSD GNU/kFreeBSD))
PARALLEL_DIRS += Process/FreeBSD Process/POSIX
endif

ifeq ($(HOST_OS),NetBSD)
PARALLEL_DIRS += Process/POSIX
endif

include $(LLDB_LEVEL)/Makefile
8 changes: 6 additions & 2 deletions lldb/source/Plugins/Platform/Makefile
Expand Up @@ -11,7 +11,7 @@ LLDB_LEVEL := ../../..

include $(LLDB_LEVEL)/../../Makefile.config

PARALLEL_DIRS := gdb-server MacOSX Linux FreeBSD POSIX Windows Kalimba Android
PARALLEL_DIRS := gdb-server MacOSX Linux FreeBSD NetBSD POSIX Windows Kalimba Android

# ifeq ($(HOST_OS),Darwin)
# DIRS += MacOSX
Expand All @@ -24,9 +24,13 @@ PARALLEL_DIRS := gdb-server MacOSX Linux FreeBSD POSIX Windows Kalimba Android
# ifeq ($(HOST_OS),FreeBSD)
# DIRS += FreeBSD
# endif
#
#
# ifeq ($(HOST_OS),GNU/kFreeBSD)
# DIRS += FreeBSD
# endif
#
# ifeq ($(HOST_OS),NetBSD)
# DIRS += NetBSD
# endif

include $(LLDB_LEVEL)/Makefile
14 changes: 14 additions & 0 deletions lldb/source/Plugins/Platform/NetBSD/Makefile
@@ -0,0 +1,14 @@
##===- source/Plugins/Platform/NetBSD/Makefile ------------*- Makefile -*-===##
#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
#
##===----------------------------------------------------------------------===##

LLDB_LEVEL := ../../../..
LIBRARYNAME := lldbPluginPlatformNetBSD
BUILD_ARCHIVE = 1

include $(LLDB_LEVEL)/Makefile

0 comments on commit ac1cb4f

Please sign in to comment.