summaryrefslogtreecommitdiff
path: root/Makefile
blob: 9f508fc1e5596448f5f5593cf86f5959b9a37aeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
PROG=dungeon-generator
CC=gcc
FLAGS=-lm -lraylib 

.DEFAULT_GOAL := build

install: ${PROG}
	cp ${PROG} ~/.local/bin/

build: src/main.c
	${CC} src/main.c -o ${PROG} ${FLAGS}

build-osx: ${PROG}
	clang -framework CoreVideo -framework IOKit -framework Cocoa -framework GLUT -framework OpenGL libraylib.a ${PROG}.c -o ${PROG}

clean: ${PROG}
	rm ${PROG}