Commit 16563203 authored by Guillaume Lozenguez's avatar Guillaume Lozenguez

clean MakeFile

parent d171c0b2
all: config
@make -C src
config:
cp config.default config
unix:
@echo "generate Bath config"
@echo "# Configuration for make" > config
@echo "CC=gcc" >> config
@echo "CFLAGS=-std=c99 -Wall -Wextra -lraylib" >> config
@echo "LIBS= -lraylib" >> config
@echo "OS=`uname`" >> config
windows:
@echo "generate PowerShell config"
@echo # Configuration for make > config
@echo OS=Windows >> config
@echo CC=gcc >> config
@echo CFLAGS=-std=c99 -Wall -Wextra` >> config
@echo LIBS= -lraylib >> config
clean:
@make -C src clean
docs:
@doxygen Doxyfile
# Configuration for make
CC=gcc
CFLAGS=-std=c99 -Wall -Wextra -lraylib
LIBS= -lraylib
OS=Undef
```mermaid
graph TD;
Antho-->Bobby;
Antho-->Clariss;
Bobby-->Dede;
Clariss-->Dede;
```
## ToDo :
- Inclure IGraph
include ../config
all: hello viewer
hello: main-hello.o
$(CC) -o ../nw-$@ $^ $(LIBS)
viewer: main-viewer.o networld.o
$(CC) -o ../nw-$@ $^ $(LIBS)
%.o: %.c
$(CC) -c $< $(CFLAGS)
config:
rm config
"OS= `uname`" >> config
clean:
rm -rf *.o
Markdown is supported
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