Subversion Repositories gelsvn

Rev

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

Rev 58 Rev 113
Line 23... Line 23...
23
include makefiles/definitions.mk
23
include makefiles/definitions.mk
24
 
24
 
25
INSTALL_PREFIX = /usr/local
25
INSTALL_PREFIX = /usr/local
26
LIBSRC 				 = ./src
26
LIBSRC 				 = ./src
27
LIBRARIES 		 =$(dir $(shell cd ${LIBSRC}; find . -type f -name 'Makefile'))
27
LIBRARIES 		 =$(dir $(shell cd ${LIBSRC}; find . -type f -name 'Makefile'))
-
 
28
 
28
APPSRC 			 	 = ./apps
29
APPSRC 			 	 = ./apps
29
APPLICATIONS 	 = $(dir $(shell cd ${APPSRC}; find . -type f -name 'Makefile'))
30
APPLICATIONS 	 = $(dir $(shell cd ${APPSRC}; find . -type f -name 'Makefile'))
30
 
31
 
-
 
32
TESTSRC 			 	 = ./test
-
 
33
TESTAPPS 	 = $(dir $(shell cd ${TESTSRC}; find . -type f -name 'Makefile'))
-
 
34
 
31
.PHONY: app lib clean distclean platform makefiles
35
.PHONY: test app lib clean distclean platform makefiles
32
 
36
 
33
all: lib app
37
all: lib test app
34
 
38
 
35
lib: 
39
lib: 
36
	$(foreach lib, ${LIBRARIES},	${MAKE} -C ${LIBSRC}/${lib};)
40
	$(foreach lib, ${LIBRARIES},	${MAKE} -C ${LIBSRC}/${lib};)
37
 
41
 
38
app:
42
app:
39
	$(foreach app, ${APPLICATIONS},	${MAKE} -C ${APPSRC}/${app};)
43
	$(foreach app, ${APPLICATIONS},	${MAKE} -C ${APPSRC}/${app};)
40
 
44
 
-
 
45
test:
-
 
46
	$(foreach test, ${TESTAPPS},	${MAKE} -C ${TESTSRC}/${test};)
-
 
47
 
41
install:
48
install:
42
	$(foreach lib, ${LIBRARIES}, mkdir -p ${INSTALL_PREFIX}/include/GEL/${lib}; cp ${SOURCEROOT}/src/${lib}*.h ${INSTALL_PREFIX}/include/GEL/${lib};)
49
	$(foreach lib, ${LIBRARIES}, mkdir -p ${INSTALL_PREFIX}/include/GEL/${lib}; cp ${SOURCEROOT}/src/${lib}*.h ${INSTALL_PREFIX}/include/GEL/${lib};)
43
	mkdir -p ${INSTALL_PREFIX}/lib/GEL_${TARGET}
50
	mkdir -p ${INSTALL_PREFIX}/lib/GEL_${TARGET}
44
	cp ${SOURCEROOT}/lib/${PLATFORM_TARG}/* ${INSTALL_PREFIX}/lib/GEL_${TARGET}/.
51
	cp ${SOURCEROOT}/lib/${PLATFORM_TARG}/* ${INSTALL_PREFIX}/lib/GEL_${TARGET}/.
45
 
52
 
46
clean:
53
clean:
47
	$(foreach lib, ${LIBRARIES},	${MAKE} -C ${LIBSRC}/${lib} clean;)
54
	$(foreach lib, ${LIBRARIES},	${MAKE} -C ${LIBSRC}/${lib} clean;)
48
	$(foreach app, ${APPLICATIONS},	${MAKE} -C ${APPSRC}/${app} clean;)
55
	$(foreach app, ${APPLICATIONS},	${MAKE} -C ${APPSRC}/${app} clean;)
-
 
56
	$(foreach app, ${TESTAPPS},	${MAKE} -C ${TESTSRC}/${app} clean;)
49
 
57
 
50
distclean: clean
58
distclean: clean
51
	find ./lib -type d \! \( -name 'CVS' -o -name 'lib' \) -print > .remove
59
	find ./lib -type d \! \( -name 'CVS' -o -name 'lib' \) -print > .remove
52
	find ./bin -type f -print >> .remove
60
	find ./bin -type f -print >> .remove
53
	find . -name '.build' -type d -print >> .remove
61
	find . -name '.build' -type d -print >> .remove