diff options
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) |