mirror of
http://git.davidovski.xyz/dungeon-generator
synced 2024-08-15 00:43:46 +00:00
17 lines
373 B
Makefile
17 lines
373 B
Makefile
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 src/main.c src/mst.c -o ${PROG}
|
|
|
|
clean: ${PROG}
|
|
rm ${PROG}
|