Programming and posix - February 2001
February 10, 2001
Solution Symposium
Page 26
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