Commit bdce40c0 authored by GuillaumeLozenguez's avatar GuillaumeLozenguez

Makefile

parent 39b9f255
...@@ -5,4 +5,5 @@ raylib ...@@ -5,4 +5,5 @@ raylib
# Generated files: # Generated files:
nw-* nw-*
\ No newline at end of file config
all: config
make -C src
mv src/nw-* .
config:
echo "# Configuration for make" > config
echo "OS= `uname`" >> config
echo "CC=gcc" >> config
echo "CFLAGS=-std=c99 -Wall -Wextra `pkg-config --cflags raylib`" >> config
echo "LIBS= `pkg-config --libs raylib`" >> config
clean:
make -C src clean
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
...@@ -22,7 +22,6 @@ void game_draw(NetWorld * world); ...@@ -22,7 +22,6 @@ void game_draw(NetWorld * world);
//----------------- //-----------------
bool game_end; bool game_end;
int main(int nbArg, char ** arg) int main(int nbArg, char ** arg)
{ {
// Game Initialization // Game Initialization
......
...@@ -17,7 +17,7 @@ NetWorld * NetWorld_new(int aSize); ...@@ -17,7 +17,7 @@ NetWorld * NetWorld_new(int aSize);
void NetWorld_delete(NetWorld * aWorld); void NetWorld_delete(NetWorld * aWorld);
// Initialization // Initialization
void NetWorld_initPosition(NetWorld * self, float ** position); // position must be an float[size][2] array... void NetWorld_initNodePosition(NetWorld * self, int iNode, double x, double y); // position must be an float[size][2] array...
// To String // To String
void NetWorld_print(NetWorld * self); void NetWorld_print(NetWorld * self);
......
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