34 lines
821 B
Makefile
34 lines
821 B
Makefile
# libstadium makefile
|
|
|
|
CC = g++
|
|
CFLAGS_DEFAULT = -Wall -Wpedantic -Wno-uninitialized -std=c++23 -static-libgcc -static-libstdc++ -static
|
|
CFLAGS_DEBUG = -Og -fanalyzer -ggdb
|
|
CFLAGS_RELEASE = -Ofast -fdevirtualize-speculatively -fdata-sections -ffunction-sections -Wl,-gc-sections -Wl,-strip-all -Wl,-strip-discarded -flto -s
|
|
|
|
SOURCES = src/stadium.hpp src/stadium.cpp src/kldr.hpp
|
|
SOURCES_TEST = src/test.cpp
|
|
#LINKED_LIBS = -l
|
|
OUTPUT_LIB = libstadium.so
|
|
OUTPUT_TEST_BIN = libstadiumtest
|
|
|
|
|
|
default: clean debug_test
|
|
|
|
|
|
debug_test: $(SOURCES) $(SOURCES_TEST)
|
|
$(CC) $(CFLAGS_DEFAULT) $(CFLAGS_DEBUG) $(SOURCES) $(SOURCES_TEST) -o $(OUTPUT_TEST_BIN)
|
|
#$(LINKED_LIBS)
|
|
|
|
debug: $(SOURCES)
|
|
echo "NYI"
|
|
|
|
release_test: $(SOURCES)
|
|
echo "NYI"
|
|
|
|
release: $(SOURCES)
|
|
echo "NYI"
|
|
|
|
|
|
clean:
|
|
rm -f $(OUTPUT_LIB)
|
|
rm -f $(OUTPUT_TEST_BIN)
|