Subversion Repositories gelsvn

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 bj 1
### Make sure our default action is to rebuild library
2
all: lib
3
 
4
### Include definitions and rules common to the library and the
5
### application makefiles
6
include ${SOURCEROOT}/makefiles/common.mk
7
 
137 jab 8
### Clean simply removes the build directory and library
9
clean: 
2 bj 10
	rm -fr ${BUILDDIR}
137 jab 11
	rm -f ${LIB}
2 bj 12
.PHONY: clean
13
 
137 jab 14
### Name of library is derived from name of present working directory.
15
LIB = ${LIBDIR}/libGEL_$(notdir $(shell pwd)).a
2 bj 16
 
17
### Rule for creating the library. 
137 jab 18
${LIB}: ${objects}
19
	$(shell if \[ \! -d ${LIBDIR} \] ; then mkdir ${LIBDIR}; fi)
2 bj 20
	${AR} ${LIB} $(addprefix ${BUILDDIR}/,$(objects))
21
 
137 jab 22
lib: ${LIB}