Subversion Repositories gelsvn

Rev

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

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