summaryrefslogtreecommitdiff
path: root/Makefile
blob: 92a26297a5b6369aeefcdbc00e926df5b5379089 (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 src/mst.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}