Skip to content
This repository has been archived by the owner on Dec 2, 2019. It is now read-only.

Some make files are now compatible with FreeBSD #919

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion demo/glfw_opengl2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ BIN := $(BIN).exe
LIBS = -lglfw3 -lopengl32 -lm -lGLU32
else
UNAME_S := $(shell uname -s)
GLFW3 := $(shell pkg-config --libs glfw3)
ifeq ($(UNAME_S),Darwin)
LIBS := -lglfw3 -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo -lm -lGLEW -L/usr/local/lib
else ifeq ($(UNAME_S),FreeBSD)
LIBS := $(GLFW3) -lGL -lm -lGLU -lGLEW
CFLAGS += -I/usr/local/include
else
LIBS = -lglfw -lGL -lm -lGLU
LIBS = $(GLFW3) -lGL -lm -lGLU
endif
endif

Expand Down
3 changes: 3 additions & 0 deletions demo/glfw_opengl3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ else
GLFW3 := $(shell pkg-config --libs glfw3)
ifeq ($(UNAME_S),Darwin)
LIBS := $(GLFW3) -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo -lm -lGLEW -L/usr/local/lib
else ifeq ($(UNAME_S),FreeBSD)
LIBS := $(GLFW3) -lGL -lm -lGLU -lGLEW
CFLAGS += -I/usr/local/include
else
LIBS = $(GLFW3) -lGL -lm -lGLU -lGLEW
endif
Expand Down
3 changes: 3 additions & 0 deletions example/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ else
ifeq ($(UNAME_S),Darwin)
LIBS := $(GLFW3) -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo -lm -lGLEW -L/usr/local/lib
CFLAGS += -I/usr/local/include
else ifeq ($(UNAME_S),FreeBSD)
LIBS := $(GLFW3) -lGL -lm -lGLU -lGLEW
CFLAGS += -I/usr/local/include
else
LIBS := $(GLFW3) -lGL -lm -lGLU -lGLEW
endif
Expand Down