Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for netbsd #464

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions bin/makefile-netbsd.x86_64-x
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Options for NetBSD, Intel x86_64 and X-Window

CC = clang -m64 $(CLANG_CFLAGS)

LD_LIBRARY_PATH = /usr/lib

XFILES = $(OBJECTDIR)xmkicon.o \
$(OBJECTDIR)xbbt.o \
$(OBJECTDIR)dspif.o \
$(OBJECTDIR)xinit.o \
$(OBJECTDIR)xscroll.o \
$(OBJECTDIR)xcursor.o \
$(OBJECTDIR)xlspwin.o \
$(OBJECTDIR)xrdopt.o \
$(OBJECTDIR)xwinman.o

XFLAGS = -I/usr/X11R7/include -DXWINDOW

# OPTFLAGS is normally -O2.
OPTFLAGS = -O2 -g3
DFLAGS = $(XFLAGS) -DRELEASE=351

LDFLAGS = -L/usr/X11R7/lib -lX11 -lc -lm -Wl,-R/usr/X11R7/lib
LDELDFLAGS = -L/usr/X11R7/lib -lX11 -lc -lm -Wl,-R/usr/X11R7/lib

OBJECTDIR = ../$(RELEASENAME)/

default : ../$(OSARCHNAME)/lde ../$(OSARCHNAME)/ldex
1 change: 1 addition & 0 deletions bin/osversion
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ case "$os" in
*-*-linux*) echo linux ;;
*-*-openbsd*) echo openbsd ;;
*-*-freebsd*) echo freebsd ;;
*-*-netbsd*) echo netbsd ;;
*-*-cygwin*) echo cygwin ;;
esac
### Don't leave the variable set.
Expand Down