summaryrefslogblamecommitdiff
path: root/procyon/GNUmakefile
blob: a9379b749b0b392b56716823baab402491ce6cd7 (plain) (tree)


































                                   


                            
                            
                          
                              



                               

















                                                        
# TOOLS

# TOOL FLAGS

CFLAGS := \
	-D_POSIX_C_SOURCE=200809L \
	-Iinclude \
	-O3 \
	-Wall \
	-Wextra \
	-Wpedantic \
	-g \
	-march=native \
	-std=c2x

ifeq "$(debug)" "true"
CFLAGS := \
	$(CFLAGS) \
	-Dacm_dbg
endif

LDLIBS := \
	-lGL \
	-lflux \
	-lglfw \
	-lzap

# HEADERS

HDRS := \
	include/acm/bs.h

# BINARIES

OBJS := \
	source/bs/dbglog.o \
	source/bs/exit.o \
	source/bs/init.o \
	source/bs/shipnm.o \
	source/evt/jmp.o \
	source/gfx/initgfx.o \
	source/info/jmplen.o \
	source/info/sysdist.o \
	source/sav/cont.o \
	source/sav/sav.o \
	source/main.o

BIN := procyon.elf

# TARGETS

.PHONY: clean purge

$(BIN): $(OBJS)
	$(CC) $(CFLAGS) $(LDFLAGS) -o$(@) $(^) $(LDLIBS)

$(OBJS): $(HDRS)

clean:
	$(RM) $(OBJS)

purge: clean
	$(RM) $(LIB)