-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (23 loc) · 734 Bytes
/
Copy pathMakefile
File metadata and controls
32 lines (23 loc) · 734 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
CC=clang
CFLAGS=-std=c17 -Wall -Wextra -Wdeprecated -pedantic
INCLUDES=-I./ -I./vendor/raylib-6.0_macos/include/
LIBS=vendor/raylib-6.0_macos/lib/libraylib.a
FRAMEWORKS=-framework Cocoa -framework OpenGL -framework IOKit
run: main
./$<
main: main.c
$(CC) $(CFLAGS) $(INCLUDES) $(LIBS) $(FRAMEWORKS) $^ -o $@
run2: main2
./$<
run2-dbg: main2-dbg
./$<
main2: main2.c
$(CC) $(CFLAGS) -D"assertm(cond,...)=" -DGRID_W=2 -DPOINTSIZE=6.0f -O2 $(INCLUDES) $(LIBS) $(FRAMEWORKS) $^ -o $@
main2-dbg: main2.c
$(CC) $(CFLAGS) -g $(INCLUDES) $(LIBS) $(FRAMEWORKS) $^ -o $@
tags:
find -E `pwd` -type f -regex ".+\.(c|h)$$" > cscope.files
cscope -b -q
clean:
rm -fr *.dSYM main main2 main2-dbg cscope.*
.PHONY: run run2 tags clean