Nokia Networks Home

Nokia nmake Product Builder

Quick Links

Related Products

Makefiles up to 10x Shorter

make 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: Friday,12-Aug-2016 10:53:09 EDT