|
|||
Makefiles up to 10x Shortermake v. nmake, a quick example Conventional Makefile:
TABS = -DTABS=8
USG = -DUSG=1
CFLAGS = -c ${TABS} ${USG}
SOURCE = main.c process.c hash.c
OBJECT = main.o process.o hash.o
INSTALLDIR = ${HOME}/bin
program : ${OBJECT}
${CC} ${OBJECT} -lm -o program
install :
- mv ${INSTALLDIR}/program ${INSTALLDIR}/program.old
cp program ${INSTALLDIR}
main.o : main.c main.h
process.o : process.c process.h main.h hash.h
hash.o : hash.c hash.h
lint :
lint ${CFLAGS} ${SOURCE}
clean :
- rm -f core ${OBJECT}
clobber : clean
- rm -f program
clobber.install:
- rm ${INSTALLDIR}/program
nmake Makefile:TABS == 8 USG == 1 program :: main.c process.c hash.c -lm Despite small size, this nmake version does much more:
Last Update: Wednesday,20-Dec-06 13:22:02 CST
|
|||