Rev 138 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
### Make sure our default action is to rebuild library
all: lib
### Include definitions and rules common to the library and the
### application makefiles
include ${SOURCEROOT}/makefiles/common.mk
### Clean simply removes the build directory and library
clean:
rm -fr ${BUILDDIR}
rm -f ${LIB}
.PHONY: clean
### Name of library is derived from name of present working directory.
LIB = ${LIBDIR}/libGEL_$(notdir $(shell pwd)).a
### Rule for creating the library.
${LIB}: ${objects}
$(shell if \[ \! -d ${LIBDIR} \] ; then mkdir ${LIBDIR}; fi)
${AR} ${LIB} $(addprefix ${BUILDDIR}/,$(objects))
lib: ${LIB}