sysdis-project/plane/Makefile

28 lines
753 B
Makefile
Raw Normal View History

2017-04-03 16:04:57 +00:00
CFLAGS=-Wall
# Runs 'all' depenency as default / i.e. 'make' command will run 'make all' implicitly
default: all
lib/network/tcp/client.o: lib/header.h lib/network/tcp/client.h lib/network/tcp/client.c
gcc $(CFLAGS) -c -o lib/network/tcp/client.o lib/network/tcp/client.c
2017-04-18 08:36:32 +00:00
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
# Compiles the Plane
# -lm flag for math lib
2017-04-18 08:36:32 +00:00
boot: lib/network/tcp/client.o lib/network/udp/server.o plane.h plane.c
gcc $(CFLAGS) -o boot lib/network/tcp/client.o lib/network/udp/server.o plane.c -lm
2017-04-03 16:04:57 +00:00
# Run full compilation
2017-05-18 18:24:39 +00:00
all: boot
2017-04-03 16:04:57 +00:00
# cleans the compiled files
clean:
2017-05-19 06:50:44 +00:00
@rm ./lib/network/**/*.o;
@rm ./boot;