Programming and posix - April 2002

April 3, 2002
Solution Symposium
Page 27
hp e3000
programming
and posix
make utility
Rebuilds only those components which need rebuilding
based on which dependent files have newer timestamps
A simple Makefile:
all: hwcgi
hwcgi: hwcgimain.o libhw.a
$(CC) -o $@ hwcgimain.o -L. -lhw
libhw.a: helloworld.o
$(AR) $(ARFLAGS) $@ $?
make will compile and link everything that needs updating
make -n to display commands without execution