Subversion Repositories gelsvn

Rev

Rev 54 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 54 Rev 137
Line 3... Line 3...
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
### Name of library is derived from name of present working directory.
-
 
9
LIB = ${LIBDIR}/libGEL_$(notdir $(shell pwd)).a
-
 
10
 
-
 
11
######################################################################
-
 
12
############# if we are cleaning #####################################
-
 
13
ifeq (${MAKECMDGOALS},clean)
-
 
14
 
-
 
15
### Clean simply removes the build and library directories
8
### Clean simply removes the build directory and library
16
clean:
9
clean: 
17
	rm -fr ${BUILDDIR}
10
	rm -fr ${BUILDDIR}
18
	rm -fr ${LIB}
11
	rm -f ${LIB}
19
.PHONY: clean
12
.PHONY: clean
20
 
13
 
21
else
-
 
22
######################################################################
14
### Name of library is derived from name of present working directory.
23
############ Otherwise we are building ###############################
15
LIB = ${LIBDIR}/libGEL_$(notdir $(shell pwd)).a
24
 
-
 
25
lib: ${LIB}
-
 
26
 
16
 
27
### Rule for creating the library. 
17
### Rule for creating the library. 
28
${LIB}:${objects}
18
${LIB}: ${objects}
-
 
19
	$(shell if \[ \! -d ${LIBDIR} \] ; then mkdir ${LIBDIR}; fi)
29
	${AR} ${LIB} $(addprefix ${BUILDDIR}/,$(objects))
20
	${AR} ${LIB} $(addprefix ${BUILDDIR}/,$(objects))
30
 
21
 
31
endif
22
lib: ${LIB}
32
 
-