Commit 8742396b authored by Titouan Soulard's avatar Titouan Soulard

Improve Makefile

- Use a bin/ directory for output
- Define `make all` as the default recipe
parent 2f87f784
HEADERS = udp.h
CFLAGS = -Wall -O3
all: udp_send udp_recv
udp_send: udp_send.c
gcc $(CFLAGS) -o $@ $?
gcc $(CFLAGS) -o bin/$@ $?
udp_recv: udp_recv.c
gcc $(CFLAGS) -o $@ $?
all: udp_send udp_recv
gcc $(CFLAGS) -o bin/$@ $?
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