Renamed the whole project from Grendel (Beowulf's opponent) to Naegling (Beowulf's sword).

This commit is contained in:
Simon Brooke 2026-04-12 13:13:10 +01:00
parent 69d762645a
commit 114c64501a
10 changed files with 65 additions and 21 deletions

View file

@ -1,6 +1,6 @@
PROJECT_ROOT = $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
OBJS = grendel.o
OBJS = naegling.o
ifeq ($(BUILD_MODE),debug)
CFLAGS += -g -O0
@ -9,17 +9,17 @@ else ifeq ($(BUILD_MODE),run)
else ifeq ($(BUILD_MODE),profile)
CFLAGS += -g -pg -fprofile-arcs -ftest-coverage
LDFLAGS += -pg -fprofile-arcs -ftest-coverage
EXTRA_CLEAN += grendel.gcda grendel.gcno $(PROJECT_ROOT)gmon.out
EXTRA_CMDS = rm -rf grendel.gcda
EXTRA_CLEAN += naegling.gcda naegling.gcno $(PROJECT_ROOT)gmon.out
EXTRA_CMDS = rm -rf naegling.gcda
else
$(error Build mode $(BUILD_MODE) not supported by this Makefile)
endif
SRC_DIR=$(PROJECT_ROOT)/src/c
all: grendel
all: naegling
grendel: $(OBJS)
naegling: $(OBJS)
$(CXX) $(LDFLAGS) -o $@ $^
$(EXTRA_CMDS)
@ -30,4 +30,4 @@ grendel: $(OBJS)
$(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<
clean:
rm -fr grendel $(OBJS) $(EXTRA_CLEAN)
rm -fr naegling $(OBJS) $(EXTRA_CLEAN)