summaryrefslogtreecommitdiff
path: root/Makefile
blob: 290449104914fec63efc49b8d2700dcc698cd562 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CC=clang
CFLAGS+=-Iinclude -std=c2x -Wall -Wextra -Wpedantic -Werror
CFLAGS+=-O2
LIBS=-lgmp -lmpfr -lxcb -lvulkan
HDR=\
	include/luma/stdlibsock/gfx.h \
	include/luma/main.h \
	include/luma/stdlibsock.h
SRC=\
	stdlibsock/gfx/crtwin.c \
	stdlibsock/gfx/destwin.c \
	main.c
OBJ=$(SRC:.c=.o)
luma.elf: $(OBJ)
	$(CC) $(CCFLAGS) $(LIBS) $(OBJ) -o $@
$(OBJ): $(HDR) $(SRC)
.PHONY: clean
clean:
	rm $(OBJ)