From b45c55050244ecf9250f1c9c6d8d905952fb00fc Mon Sep 17 00:00:00 2001 From: GODBERT Niels <niels.godbert@polytech-lille.net> Date: Fri, 16 Apr 2021 14:54:25 +0200 Subject: [PATCH] upload 1st main.c --- Makefile | 21 +++++++++++++++++++++ main.c | 22 ++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 Makefile create mode 100644 main.c diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8cab6d5 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +TARGET= project +CFLAGS=-g -W -Wall -Wextra -MMD +LDFLAGS=-lm +SRC=$(wildcard *.c) +DEPS=$(SRC:.c=.d) +OBJ=$(SRC:.c=.o) + +default: $(TARGET) + +.c.o: + gcc $(CFLAGS) -c $< + +$(TARGET): $(OBJ) + gcc $(LDFLAGS) $^ -o $@ + +-include $(DEPS) + +.PHONY: clean +clean: + rm -f *.o + rm -f $(TARGET) diff --git a/main.c b/main.c new file mode 100644 index 0000000..97ea287 --- /dev/null +++ b/main.c @@ -0,0 +1,22 @@ +#include <stdio.h> +#include <string.h> + + + +int main () +{ + int q=1; + while (q==1) + { + + + + + + + + + + } + +} -- GitLab