diff --git a/Makefile b/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..f0830000a6894a11ea8a1a2019ff31970b743fb3 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +#The compiler +CC:=gcc +#The flags passed to the compiler +CFLAGS:=-g -Ofast -Wall -Wextra -fsanitize=address -fsanitize=leak -std=gnu11 +#The flags passed to the linker +LDFLAGS:=-lm +#Path to the lib +VPATH:=lib + +main: main.o physics.o + $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) + +physics.o: physics.h + +clean: + rm -f *.o main diff --git a/lib/physics.c b/lib/physics.c new file mode 100644 index 0000000000000000000000000000000000000000..299c0c104ad241fdc30f144e0a3653384b4c9efa --- /dev/null +++ b/lib/physics.c @@ -0,0 +1 @@ +#include "physics.h" \ No newline at end of file diff --git a/lib/physics.h b/lib/physics.h new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/main b/main new file mode 100755 index 0000000000000000000000000000000000000000..0233d51092d45b53047bd2291a1beaba0a105b79 Binary files /dev/null and b/main differ diff --git a/main.c b/main.c new file mode 100644 index 0000000000000000000000000000000000000000..ae1cb8454e05614d367945965be4eb412191b01b --- /dev/null +++ b/main.c @@ -0,0 +1,5 @@ +#include "lib/physics.h" + +int main(){ + +} \ No newline at end of file