A.4. A sample makefile definition

COGLIB = -l cogdb
CFLAGS = -Oneatx -Q

all: readpt writept waiter

readpt: readpt.c
        cc -o $@ $< $(COGLIB)

writept: writept.c
        cc -o $@ $< $(COGLIB)

waiter: waiter.c
        cc -o $@ $< $(COGLIB)

clean:
        rm -f *.o readpt writept waiter

.PHONY: clean
.IGNORE: clean

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.