소스 검색

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

Dave Voutila 4 달 전
부모
커밋
372285ef98
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      examples/Makefile

+ 7 - 0
examples/Makefile

@@ -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