From 308a9855194bfc077f94ba4f2495e5565a53dbb4 Mon Sep 17 00:00:00 2001 From: hkc Date: Sun, 16 Oct 2022 10:11:14 +0300 Subject: [PATCH] Initial commit --- .gitignore | 2 ++ Makefile | 16 ++++++++++++++++ src/main.c | 6 ++++++ 3 files changed, 24 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 src/main.c diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d0c788a --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +obj/* +cyber-rat diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5576af8 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +CFLAGS += +LDFLAGS := -lm +OBJECTS := + +cyber-rat: lib + $(CC) $(CFLAGS) $(OBJECTS) src/main.c $(LDFLAGS) -o cyber-rat + +all: cyber-rat + +lib: $(OBJECTS) + +clean: + $(RM) $(OBJECTS) cyber-rat + +obj/%.o: src/%.c + $(CC) $(CFLAGS) -c $^ -o $@ diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..cbcecc0 --- /dev/null +++ b/src/main.c @@ -0,0 +1,6 @@ +#include +#include + +int main(void) { + printf("Hi!\n"); +}