From 2d97b7a3041010810a865bd01ad20bd68fc13be5 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 15 May 2022 15:16:27 +0200 Subject: [PATCH] moves .c in src folder and .h in includes folder --- Makefile | 4 ++-- animations.h => includes/animations.h | 0 animations.c => src/animations.c | 2 +- window.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename animations.h => includes/animations.h (100%) rename animations.c => src/animations.c (60%) diff --git a/Makefile b/Makefile index 5c0cbf1..11c9a8b 100644 --- a/Makefile +++ b/Makefile @@ -20,8 +20,8 @@ PACKNAME = sc_00_07 PROGNAME = demo VERSION = 1.0 distdir = $(PACKNAME)_$(PROGNAME)-$(VERSION) -HEADERS = animations.h -SOURCES = window.c animations.c +HEADERS = $(wildcard includes/*.h) +SOURCES = window.c $(wildcard src/*.c) MSVCSRC = $(patsubst %,,$(SOURCES)) OBJ = $(SOURCES:.c=.o) DOXYFILE = documentation/Doxyfile diff --git a/animations.h b/includes/animations.h similarity index 100% rename from animations.h rename to includes/animations.h diff --git a/animations.c b/src/animations.c similarity index 60% rename from animations.c rename to src/animations.c index 2990c86..b0c8ed6 100644 --- a/animations.c +++ b/src/animations.c @@ -1,4 +1,4 @@ -#include "animations.h" +#include "../includes/animations.h" void initialisationAnimation(void) { /* ... */ diff --git a/window.c b/window.c index 007f3af..2cd5937 100644 --- a/window.c +++ b/window.c @@ -1,6 +1,6 @@ #include -#include "animations.h" +#include "includes/animations.h" // Dimensions initiales de la fenĂȘtre static int dimensions[] = {1280, 720};