Skip to content

Commit

Permalink
More build fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
mszoek committed May 8, 2024
1 parent 5e3efe2 commit ea46b29
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 8 deletions.
3 changes: 2 additions & 1 deletion CoreServices/WindowServer/libevdev/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ ${INCSDIR}: .PHONY
mkdir -vp ${OBJTOP}/tmp/${INCSDIR}

event-names.h: .PHONY
${.CURDIR}/libevdev/make-event-names.py \
${OBJTOP}/tmp/usr/bin/python3 \
${.CURDIR}/libevdev/make-event-names.py \
${.CURDIR}/include/linux/linux/input.h \
${.CURDIR}/include/linux/linux/input-event-codes.h >${.TARGET}

Expand Down
1 change: 1 addition & 0 deletions Frameworks/AppKit/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ MK_AUTO_OBJ=yes
NO_FMWK_COMMON=yes
.include "../framework.common.mk"

SUBDIR+= gperf .WAIT
SUBDIR+= fontconfig
SUBDIR+= libxkbcommon

Expand Down
3 changes: 2 additions & 1 deletion Frameworks/AppKit/fontconfig/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ all: build
${MAKEOBJDIR}/Makefile:
mkdir -p ${MAKEOBJDIR}
cd ${MAKEOBJDIR}; LDFLAGS="${LDFLAGS:S/-L /-L/Wg}" \
PYTHON=${OBJTOP}/tmp/usr/bin/python3 \
${.CURDIR}/configure ${CONFIGURE_ARGS}

build: ${MAKEOBJDIR}/Makefile
${GMAKE} -C ${MAKEOBJDIR}
PYTHON=${OBJTOP}/tmp/usr/bin/python3 ${GMAKE} -C ${MAKEOBJDIR}

clean:
rm -rf ${MAKEOBJDIR}
Expand Down
3 changes: 2 additions & 1 deletion Frameworks/AppKit/gperf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ CONFIGURE_ARGS+= --prefix=/usr \
--localstatedir=/var
all: build
configure: .EXEC
${.CURDIR}/configure ${CONFIGURE_ARGS}
mkdir -p ${MAKEOBJDIR}
cd ${MAKEOBJDIR}; ${.CURDIR}/configure ${CONFIGURE_ARGS}

build: configure
${GMAKE} -C ${MAKEOBJDIR}
Expand Down
2 changes: 1 addition & 1 deletion Frameworks/AppKit/libxkbcommon/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ src/xkbcomp/parser.c: src/xkbcomp/parser.y

.include <bsd.lib.mk>

${OBJS}: config.h src/xkbcomp/parser.c
${OBJS}: obj config.h src/xkbcomp/parser.c
1 change: 1 addition & 0 deletions Frameworks/OpenGL/mesa/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ build:
-Dgbm=enabled -Dxmlconfig=disabled -Dexpat=disabled \
${MAKEOBJDIR} ${.CURDIR}
sed -i.bak -e 's@-I/usr/include@@g' ${MAKEOBJDIR}/build.ninja
PATH=${OBJTOP}/tmp/usr/bin:${OBJTOP}/tmp/legacy/bin:${OBJTOP}/Frameworks/OpenGL/wayland/scanner:${OBJTOP}/usr.bin/clang/llvm-ar \
${NINJA}

install:
Expand Down
2 changes: 1 addition & 1 deletion Frameworks/OpenGL/wayland/scanner/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ LDFLAGS= -lbsdxml
WARNS?= 2

wayland.dtd.h::
python3 ${.CURDIR}/../src/embed.py \
${OBJTOP}/tmp/usr/bin/python3 ${.CURDIR}/../src/embed.py \
${.CURDIR}/../protocol/wayland.dtd wayland_dtd >${.TARGET}

wayland-version.h: ../src/wayland-version.h.in
Expand Down
1 change: 1 addition & 0 deletions Makefile.inc1
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,7 @@ PACKAGE= kernel
# This stage installs a previously built world.
#

CFLAGS+= -D__RAVYNOS__ -D__MACH__
BOOTSTRAPPING?= 0
# Keep these in sync
MINIMUM_SUPPORTED_OSREL?= 1104001
Expand Down
1 change: 1 addition & 0 deletions lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ SUBDIR_DEPEND_liblzma= libthr
.if ${MK_OFED} != "no"
SUBDIR_DEPEND_libpcap= ofed
.endif
SUBDIR_DEPEND_libxml2= libdl
SUBDIR_DEPEND_libxpc= libdispatch
SUBDIR_DEPEND_nss_tacplus= libtacplus

Expand Down
1 change: 0 additions & 1 deletion lib/libc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ LIBC_ARCH=${MACHINE_CPUARCH}
# To include legacy CSRG SCCS ID strings, remove -DNO__SCCSID from CFLAGS.
# To include RCS ID strings from other BSD projects, remove -DNO__RCSID from CFLAGS.
CFLAGS+=-DNO__SCCSID -DNO__RCSID
CFLAGS+=-D__MACH__ -D__RAVYNOS__

LIB=c
SHLIB_MAJOR= 7
Expand Down
1 change: 0 additions & 1 deletion lib/libsys/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ INCS= libsys.h _libsys.h
CFLAGS+=-I${LIBSYS_SRCTOP}/include -I${LIBC_SRCTOP}/include
CFLAGS+=-I${LIBSYS_SRCTOP}/${LIBC_ARCH}
CFLAGS+=-I${LIBC_SRCTOP}/${LIBC_ARCH}
CFLAGS+=-D__MACH__ -D__RAVYNOS__

.PATH: ${LIBC_SRCTOP}/string
SRCS+= memcpy.c memset.c strlcpy.c
Expand Down
1 change: 1 addition & 0 deletions lib/libxml2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ PATH+= ${OBJTOP}/tmp/legacy/bin

all:
cmake -G "Unix Makefiles" \
-DCMAKE_SHARED_LINKER_FLAGS="-L${OBJTOP}/lib/libdl" \
-DPKG_CONFIG_EXECUTABLE=/usr/bin/true \
-DCMAKE_INSTALL_PREFIX=${PREFIX} \
-DLIBXML2_WITH_SAX1=ON \
Expand Down
7 changes: 6 additions & 1 deletion tools/ravynOS/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ install() {

base_build() {
cd ${CIRRUS_WORKING_DIR}
make -j${CORES} MALLOC_PRODUCTION=1 WITHOUT_CLEAN=1 MK_LIB32=no COMPILER_TYPE=clang buildworld
make -j${CORES} MALLOC_PRODUCTION=1 WITHOUT_CLEAN=1 \
MK_LIB32=no MK_LLVM_TARGET_X86=yes \
MK_LLVM_TARGET_ARM=yes MK_LLVM_TARGET_AARCH64=yes \
MK_LLVM_TARGET_RISCV=no MK_LLVM_TARGET_POWERPC=no \
MK_LLVM_TARGET_MIPS=no MK_LLVM_TARGET_BPF=no \
COMPILER_TYPE=clang buildworld
if [ $? -ne 0 ]; then exit $?; fi
}

Expand Down

0 comments on commit ea46b29

Please sign in to comment.