# sample makefile demonstrating the compilation of 'protocol'

CFLAGS= -DPROTOCOL_DEFINITION=\"testproto.def\" -g -Wall

testproto: testproto.o protocol.o
	$(CC) -o $@ $^

%.o:%.c
	$(CC) $(CFLAGS) -c -o $@ $*.c 

protocol.o: protocol.c testproto.def
testproto.o: testproto.c testproto.def

