Fix building and cleaning examples on OpenBSD. (#471)

This commit is contained in:
Dave Voutila
2025-03-13 11:47:00 -04:00
committed by GitHub
parent d5459559e5
commit 372285ef98

View File

@ -277,6 +277,9 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
ifeq ($(PLATFORM_OS),BSD)
# Consider -L$(RAYLIB_INSTALL_PATH)
LDFLAGS += -L. -Lsrc -L/usr/local/lib
ifeq ($(shell uname),OpenBSD)
LDFLAGS += -L/usr/X11R6/lib
endif
endif
ifeq ($(PLATFORM_OS),LINUX)
# Reset everything.
@ -384,6 +387,10 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
find . -type f -perm +ugo+x -delete
rm -f *.o
endif
ifeq ($(shell uname),OpenBSD)
find . -type f -perm 0755 -delete
rm -f *.o
endif
endif
ifeq ($(PLATFORM),PLATFORM_RPI)
find . -type f -executable -delete