summaryrefslogblamecommitdiff
path: root/Makefile
blob: ae8353d1126b20680aad16f3fca6c9837adab94c (plain) (tree)
1
2
3
4
5
6
7
8
9
        
                                                           
           
                                
     
                                       


                                 
                                 


                                  
                         
                                             
                     

             
                 
CC=clang
CFLAGS+=-Iinclude -std=c2x -Wall -Wextra -Wpedantic -Werror
CFLAGS+=-O3
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: Makefile $(OBJ)
	$(CC) $(CCFLAGS) $(LIBS) $(OBJ) -o $@
$(OBJ): $(HDR) $(SRC)
.PHONY: clean
clean:
	rm $(OBJ)