From 73da8b7cfd65c3a1ab015d1355a0174404312a74 Mon Sep 17 00:00:00 2001 From: Galen Guyer Date: Sat, 24 Apr 2021 15:11:25 -0400 Subject: Add new project files --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..05b422b --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +CC=gcc + +CFLAGS=-Wall -Wextra -pedantic -fstack-protector-all -pedantic -std=c99 +SANITY_FLAGS=-Wfloat-equal -Wshadow -Wpointer-arith + +PREFIX ?= /usr + +SOURCE=composer.c + +OUTPUT=composer + +ALL: $(OUTPUT) + +debug: CFLAGS += -g -O0 +debug: $(OUTPUT) + +release: CFLAGS += -static -O3 +release: $(OUTPUT) + +$(OUTPUT): Makefile $(SOURCE) + $(CC) $(CFLAGS) $(SANITY_FLAGS) $(SOURCE) -o $(OUTPUT) -- cgit v1.2.3