diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | Makefile | 21 | ||||
-rw-r--r-- | composer.c | 3 |
3 files changed, 26 insertions, 0 deletions
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 |