-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (15 loc) · 747 Bytes
/
Makefile
File metadata and controls
21 lines (15 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CC := clang
CFLAGS := -Wall -Wextra -O2
OBJS := ./build/flag.o ./build/stb_image.o ./build/stb_image_resize2.o ./build/stb_image_write.o ./build/sv.o ./build/RGFW.o
./build/imago.exe: ./imago.c ./libimago.c $(OBJS)
$(CC) $(CFLAGS) -o $@ $^
./build/RGFW.o: ./vendors/RGFW.h
$(CC) $(CFLAGS) -c -DRGFWDEF="" -DRGFW_IMPLEMENTATION -x c -o $@ $^
./build/flag.o: ./vendors/flag.h
$(CC) $(CFLAGS) -c -DFLAG_IMPLEMENTATION -x c -o $@ $^
./build/stb_image.o: ./vendors/stb_image.h
$(CC) $(CFLAGS) -c -DSTB_IMAGE_IMPLEMENTATION -x c -o $@ $^
./build/stb_image_write.o: ./vendors/stb_image_write.h
$(CC) $(CFLAGS) -c -DSTB_IMAGE_WRITE_IMPLEMENTATION -x c -o $@ $^
./build/sv.o: ./vendors/sv.h
$(CC) $(CFLAGS) -c -DSV_IMPLEMENTATION -x c -o $@ $^