sysdis-project/plane/Makefile

24 lines
501 B
Makefile

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
# Compiles the Plane
boot: lib/network/tcp/client.o plane.h plane.c
gcc $(CFLAGS) -o boot lib/network/tcp/client.o plane.c -lm
# Run full compilation
all: boot
# cleans the compiled files
clean:
rm boot;
rm ./**/*.o