2017-04-01 15:01:36 +00:00
|
|
|
CFLAGS=-Wall -pthread
|
|
|
|
|
|
|
|
# Runs 'all' depenency as default / i.e. 'make' command will run 'make all' implicitly
|
|
|
|
default: all
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/network/tcp/server.o: lib/header.h lib/network/tcp/server.h lib/network/tcp/server.c
|
|
|
|
gcc $(CFLAGS) -c -o lib/network/tcp/server.o lib/network/tcp/server.c
|
|
|
|
|
|
|
|
lib/network/udp/server.o: lib/header.h lib/network/udp/server.h lib/network/udp/server.c
|
|
|
|
gcc $(CFLAGS) -c -o lib/network/udp/server.o lib/network/udp/server.c
|
|
|
|
|
2017-04-03 16:04:57 +00:00
|
|
|
lib/network/format/serializer.o: lib/network/format/serializer.h lib/network/format/serializer.c
|
|
|
|
gcc $(CFLAGS) -c -o lib/network/format/serializer.o lib/network/format/serializer.c
|
2017-04-01 15:01:36 +00:00
|
|
|
|
|
|
|
# Compiles the SGCA
|
2017-04-03 16:04:57 +00:00
|
|
|
boot: lib/network/tcp/server.o lib/network/udp/server.o lib/network/format/serializer.o central-manager.h central-manager.c
|
|
|
|
gcc $(CFLAGS) -o boot lib/network/udp/server.o lib/network/tcp/server.o lib/network/format/serializer.o central-manager.c
|
2017-04-01 15:01:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Run full compilation
|
|
|
|
all: boot
|
|
|
|
|
|
|
|
# cleans the compiled files
|
|
|
|
clean:
|
|
|
|
rm boot;
|
|
|
|
rm ./**/*.o
|