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

.DEFAULT_GOAL := install 

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

build: ${PROG}.c
	${CC} ${PROG}.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}