Repartitions du code en plusieurs fichier (début du vrai programme)

This commit is contained in:
2023-12-02 10:05:42 +01:00
parent e34d6fb72b
commit b637d047c9
8 changed files with 283 additions and 82 deletions

16
makefile Normal file
View File

@@ -0,0 +1,16 @@
CC = gcc
CFLAGS = -Wall -Wextra
all: prog
prog: main.o evenement.o
$(CC) -ansi -pedantic -o $@ $^ -lgraph
main.o: main.c evenement.h
$(CC) $(CFLAGS) -c $< -o $@
evenement.o: evenement.c evenement.h
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f *.o prog