Skip to content
Snippets Groups Projects
Commit fc9ee53f authored by ERKEN EFE's avatar ERKEN EFE
Browse files

:hammer: CONFIG: Format makefile

Formatted makefile for a more standard and readable look.
parent 65a98a2e
Branches
Tags
No related merge requests found
CC = gcc CC = gcc
CFLAGS = -Wall -Wextra -g # L'option de debug -g à enlever CFLAGS = -Wall -Wextra -g # L'option de debug -g à enlever
CLIBS = -lncurses LDFLAGS =
LDLIBS = -lncurses
ALL_SOURCES = $(wildcard *.c) ALL_SOURCES = $(wildcard *.c)
TEST_SOURCES = $(filter-out main.c, $(ALL_SOURCES)) TEST_SOURCES = $(filter-out main.c, $(ALL_SOURCES))
SOURCES = $(filter-out test.c, $(ALL_SOURCES)) SOURCES = $(filter-out test.c, $(ALL_SOURCES))
...@@ -24,10 +25,10 @@ all : $(EXEC) ...@@ -24,10 +25,10 @@ all : $(EXEC)
test : $(TEST_EXEC) test : $(TEST_EXEC)
$(EXEC) : $(OBJECTS) $(EXEC) : $(OBJECTS)
$(CC) $(CFLAGS) -o $@ $^ $(CLIBS) $(CC) $(CFLAGS) -o $@ $^ $(LDLIBS)
$(TEST_EXEC) : $(TEST_OBJECTS) $(TEST_EXEC) : $(TEST_OBJECTS)
$(CC) $(CFLAGS) -o $@ $^ $(CLIBS) $(CC) $(CFLAGS) -o $@ $^ $(LDLIBS)
%.o : %.c %.h %.o : %.c %.h
$(CC) $(CFLAGS) -c $< $(CC) $(CFLAGS) -c $<
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment