Skip to content

Commit

Permalink
Use OBJTOP cmake for Onyx2D build
Browse files Browse the repository at this point in the history
  • Loading branch information
mszoek committed May 9, 2024
1 parent f01e93f commit e24c83f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Frameworks/Onyx2D/freetype/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

MK_WERROR=no
WARNS=1
CFLAGS+= -I${OBJTOP}/tmp/usr/include
CFLAGS+= --sysroot=${OBJTOP}/tmp -B{$OBJTOP}/tmp/usr/bin
CMAKE?= ${OBJTOP}/tmp/usr/bin/cmake

.include <bsd.lib.mk>


all: build
build:
cmake -S ${.CURDIR} -B ${MAKEOBJDIR} \
${CMAKE} -S ${.CURDIR} -B ${MAKEOBJDIR} \
-DCMAKE_C_FLAGS="${CFLAGS}" \
-DCMAKE_SHARED_LINKER_FLAGS="${LDFLAGS}" \
-DCMAKE_BUILD_TYPE=Release \
Expand Down

0 comments on commit e24c83f

Please sign in to comment.