commit eb734a78a77144676f6b7377c4cd6a17914cfebe Author: Toby Date: Tue Oct 3 20:16:29 2023 +0200 init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b3e4957 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/*.jpg +/*.json +/dist diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ff189b3 --- /dev/null +++ b/Makefile @@ -0,0 +1,30 @@ +CC=clang +CFLAGS=-O3 -Wall -Wextra -pedantic -lexif +SRC=src/main.c +DEBUG=dist/debug/sync +RELEASE=dist/release/sync + +default: $(SRC) + mkdir -p dist/debug + $(CC) $(CFLAGS) -o $(DEBUG) -ggdb $(SRC) + +release: $(SRC) + mkdir -p dist/release + $(CC) $(CFLAGS) -o $(RELEASE) $(SRC) + +debug: $(DEBUG) + lldb $(DEBUG) + +run: $(DEBUG) + ./$(DEBUG) + +clean: + rm -rf dist/ + +test: $(DEBUG) L1000064.JPG 1G5A0135.jpg + ./$(DEBUG) L1000064.JPG + ./$(DEBUG) 1G5A0135.jpg + ./$(DEBUG) L1000064.JPG -f json | jq + ./$(DEBUG) 1G5A0135.jpg -f json | jq + +.PHONY: clean diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..063e5e7 --- /dev/null +++ b/src/main.c @@ -0,0 +1,6 @@ +#include + +int main(int argc, char *argv[]) { + printf("Hello World!\n"); + return 0; +}