Makefile 603 Bytes
Newer Older
1
CC=clang
William Bundy committed
2
NAME=Rituals.bin
3
MAIN=src/rituals_main.cpp
William Bundy committed
4
CFLAGS=-xc++ -std=c++11 -DRITUALS_LINUX=1 -Wall `sdl2-config --cflags`
5 6 7 8 9 10 11 12 13
DISABLED_WARNINGS=-Wno-writable-strings \
				  -Wno-missing-braces \
				  -Wno-null-arithmetic \
				  -Wno-unused-variable \
				  -Wno-tautological-constant-out-of-range-compare \
				  -Wno-dangling-else \
				  -Wno-format \
				  -Wno-parentheses-equality \
				  -Wno-unused-function
William Bundy committed
14 15
LFLAGS=-lm `sdl2-config --libs` -lGL -o bin/$(NAME)
# on osx, add -framework OpenGL 
16 17 18 19

all: build

run: build
William Bundy committed
20
	bin/$(NAME)
21 22 23
	
build: 
	$(CC) $(CFLAGS) $(DISABLED_WARNINGS) $(MAIN) $(LFLAGS)