A sample makefile definition

Cogent API and Utilities: Version 4.1
Prev | Appendix A. Cascade DataHub Code Examples | Next

# 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

Prev | Home | Next
Registering for exceptions from the Cascade DataHub | Up | Index

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