Subversion Repositories gelsvn

Rev

Rev 138 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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