Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (14 sloc) 591 Bytes
CC_OPTS = -Wall -Werror -lev -ggdb3 -I./include
all: obj/array-heap.o bin/unix-echo-server bin/unix-echo-client bin/udp-echo-server
clean:
rm -f *.o bin/*
bin/array-test: src/array-test.c obj/array-heap.o
$(CC) $(CC_OPTS) -o $@ $< obj/array-heap.o
obj/array-heap.o: src/array-heap.c include/array-heap.h
$(CC) $(CC_OPTS) -o $@ -c $<
bin/udp-echo-server: src/udp-echo-server.c
$(CC) $(CC_OPTS) -o $@ $<
bin/unix-echo-server: src/unix-echo-server.c obj/array-heap.o
$(CC) $(CC_OPTS) -o $@ $< obj/array-heap.o
bin/unix-echo-client: src/unix-echo-client.c
$(CC) $(CC_OPTS) -o $@ $<