Skip to content

Commit

Permalink
[OS build] Windows case in viewer/Makefile
Browse files Browse the repository at this point in the history
if not Darwin nor Linux: assuming "Windows MSYS/MINGW"
  • Loading branch information
arkenidar authored Jul 5, 2023
1 parent ad46278 commit 17eacfd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/viewer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
LDFLAGS=-framework OpenGL -lglfw3 -framework Cocoa -framework IOKit -framework CoreVideo
CFLAGS=-Wall -Wextra -Wshadow -Wformat=2 -pedantic -std=c99 -O2 -g
endif
ifeq ($(UNAME_S),Linux)
else ifeq ($(UNAME_S),Linux)
LDFLAGS=-lGL -lGLU -lm -pthread -ldl `pkg-config --libs glfw3`
CFLAGS=-Wall -Wextra -Wshadow -Wformat=2 -pedantic -std=c99 -O2 -g `pkg-config --cflags glfw3`
else # assuming: Windows MSYS/MINGW
LDFLAGS=-lopengl32 -lglu32 -lm -pthread `pkg-config --libs glfw3`
CFLAGS=-Wall -Wextra -Wshadow -Wformat=2 -pedantic -std=c99 -O2 -g `pkg-config --cflags glfw3`
endif

all: viewer
Expand Down

0 comments on commit 17eacfd

Please sign in to comment.