Files
msh/Makefile
Michael a7cbe7b32c feat: history
- fix: move many things to heap
2026-10-10 00:49:26 +02:00

29 lines
392 B
Makefile

CC ?= gcc
SOURCES := $(wildcard src/*.c)
RELEASE ?= false
CFLAGS ?= -Wall
ifeq ($(RELEASE),true)
CFLAGS += -O3
else
CFLAGS += --debug
endif
.PHONY: clean grind release-$(RELEASE)
all: dist/msh
dist/msh: $(SOURCES) dist release-$(RELEASE)
$(CC) -o $@ $(SOURCES) $(CFLAGS)
dist:
mkdir -p dist
clean:
rm -rf dist
grind:
valgrind --leak-check=full --show-leak-kinds=all ./dist/msh