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 --- .gitignore | 2 ++ Makefile | 21 +++++++++++++++++++++ composer.c | 3 +++ 3 files changed, 26 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 composer.c diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a295091 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Compiled binary +composer \ No newline at end of file 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) diff --git a/composer.c b/composer.c new file mode 100644 index 0000000..9eab473 --- /dev/null +++ b/composer.c @@ -0,0 +1,3 @@ +int main(int argc, char** argv) { + return 0; +} \ No newline at end of file -- cgit v1.2.3