Skip to content

Commit

Permalink
Added make file
Browse files Browse the repository at this point in the history
  • Loading branch information
dferendo committed May 23, 2017
1 parent 01e77e7 commit a2c3853
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
# Snakes
# Snakes

Compilation can be done using either Cmake or make.

Server requires port number.

Client requires IP port number.
21 changes: 21 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
CC=gcc
GCCFLAGS=-Wall -Werror
LIBS=-lncurses -pthread
RM=rm -f

.PHONY: clean

SRC_CLIENT=src/client/*.c src/client/API/ClientAPI.c src/client/template/ClientLayout.c src/utility/*.c src/server/Snake.c

SRC_SERVER=src/server/*.c src/server/API/*.c src/utility/*.c

all: Client Server

Client:
$(CC) $(GCCFLAGS) -o Client $(SRC_CLIENT) $(LIBS)

Server:
$(CC) $(GCCFLAGS) -o Server $(SRC_SERVER) $(LIBS)

clean:
$(RM) Client Server

0 comments on commit a2c3853

Please sign in to comment.