Working -- prior to mushroom cloud addition.
This commit is contained in:
commit
5defe65535
5 changed files with 1147 additions and 0 deletions
24
Makefile
Normal file
24
Makefile
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
CC ?= cc
|
||||
CFLAGS ?= -O2 -Wall -Wextra
|
||||
PKGCFG := $(shell pkg-config --cflags --libs glfw3 2>/dev/null)
|
||||
|
||||
# Fallbacks if pkg-config has no glfw3 entry
|
||||
ifeq ($(strip $(PKGCFG)),)
|
||||
PKGCFG := -lglfw
|
||||
endif
|
||||
|
||||
# OpenGL: Linux uses -lGL, macOS uses the framework
|
||||
UNAME := $(shell uname -s)
|
||||
ifeq ($(UNAME),Darwin)
|
||||
GL := -framework OpenGL
|
||||
else
|
||||
GL := -lGL
|
||||
endif
|
||||
|
||||
vectordesert: main.c
|
||||
$(CC) $(CFLAGS) -o $@ main.c $(PKGCFG) $(GL) -lm
|
||||
|
||||
clean:
|
||||
rm -f vectordesert
|
||||
|
||||
.PHONY: clean
|
||||
Loading…
Add table
Add a link
Reference in a new issue