diff options
author | Galen Guyer <galen@galenguyer.com> | 2021-04-24 15:11:25 -0400 |
---|---|---|
committer | Galen Guyer <galen@galenguyer.com> | 2021-04-24 15:11:25 -0400 |
commit | 73da8b7cfd65c3a1ab015d1355a0174404312a74 (patch) | |
tree | c241ddb5cf86b1afc8595eadcc8cbe24fa5702ea /Makefile |
Add new project files
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
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) |