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

                                                           
                                                           
     
                                       


                                 
                                 
                                  
                        
                 

                
                
                                             
                     

             
                 
CC=clang
CFLAGS+=-Iinclude -std=c17 -Wall -Wextra -Wpedantic -Werror
CFLAGS+=-march=native -O3
LIBS=-lgmp -lmpfr -lpthread -lxcb -lvulkan -lwayland-client
HDR=\
	include/luma/stdlibsock/gfx.h \
	include/luma/main.h \
	include/luma/stdlibsock.h
SRC=\
	stdlibsock/gfx/crtwin.c \
	stdlibsock/gfx/destwin.c \
	checkdispsrv.c \
	initx.c \
	main.c
OBJ=$(SRC:.c=.o)
luma.elf: $(OBJ)
	$(CC) $(CCFLAGS) $(LIBS) $(OBJ) -o $@
$(OBJ): $(HDR) $(SRC)
.PHONY: clean
clean:
	rm $(OBJ)