Skip to content
Snippets Groups Projects
Commit b45c5505 authored by GODBERT Niels's avatar GODBERT Niels
Browse files

upload 1st main.c

parent 5698951d
No related branches found
No related tags found
No related merge requests found
Makefile 0 → 100644
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)
main.c 0 → 100644
#include <stdio.h>
#include <string.h>
int main ()
{
int q=1;
while (q==1)
{
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment