From 2c55f7923c831c45daf7ae594b7562189eebc181 Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Thu, 3 Aug 2023 11:55:22 -0700 Subject: [PATCH] Add makefile slice for OpenBSD init on x86_64. (#478) * Add makefile slice for OpenBSD init on x86_64. * Correct flags for init. --- bin/makefile-init-openbsd.x86_64 | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 bin/makefile-init-openbsd.x86_64 diff --git a/bin/makefile-init-openbsd.x86_64 b/bin/makefile-init-openbsd.x86_64 new file mode 100644 index 0000000..3267621 --- /dev/null +++ b/bin/makefile-init-openbsd.x86_64 @@ -0,0 +1,27 @@ +# Options for OpenBSD, Intel x86_64 and X-Window + +CC = clang -m64 $(CLANG_CFLAGS) + +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/X11R6/include -DXWINDOW + +# OPTFLAGS is normally -O2. +OPTFLAGS = -O2 -g3 +DFLAGS = $(XFLAGS) -DRELEASE=351 -DNOVERSION -DINIT + +LDFLAGS = -L/usr/X11R6/lib -lX11 -lc -lm +LDELDFLAGS = -L/usr/X11R6/lib -lX11 -lc -lm + +OBJECTDIR = ../$(RELEASENAME)/ + +default : ../$(OSARCHNAME)/ldeinit