Last change
on this file since 88 was
88,
checked in by rosiere, 16 years ago
|
Almost complete design
with Test and test platform
|
-
Property svn:keywords set to
Id
|
File size:
1.6 KB
|
Rev | Line | |
---|
[77] | 1 | #-----[ Directory ]---------------------------------------- |
---|
[23] | 2 | DIR_DOC = doc |
---|
[2] | 3 | DIR_TEST = SelfTest |
---|
[88] | 4 | DIR_LIB = lib |
---|
[2] | 5 | |
---|
[77] | 6 | #-----[ Variable ]----------------------------------------- |
---|
[2] | 7 | OBJECTS = $(OBJECTS_COMMON) |
---|
| 8 | |
---|
[77] | 9 | #-----[ Rules ]-------------------------------------------- |
---|
[2] | 10 | .PRECIOUS : $(DIR_LIB)/%.a |
---|
[71] | 11 | #.NOTPARALLEL : clean help |
---|
[2] | 12 | |
---|
| 13 | all_component : test_env $(DIR_OBJ) $(DIR_LIB) $(OBJECTS) $(HEADERS) |
---|
| 14 | @$(MAKE) $(LIBRARY) |
---|
| 15 | |
---|
| 16 | $(DIR_LIB)/%.a : $(OBJECTS) $(HEADERS) |
---|
[48] | 17 | @\ |
---|
| 18 | $(ECHO) "Archive : $*";\ |
---|
| 19 | $(AR) -r $@ $(OBJECTS);\ |
---|
| 20 | $(RANLIB) $@; |
---|
[2] | 21 | |
---|
| 22 | $(DIR_LIB) : |
---|
[48] | 23 | @\ |
---|
| 24 | $(ECHO) "Create directory : $@";\ |
---|
| 25 | $(MKDIR) $@; |
---|
[2] | 26 | |
---|
[23] | 27 | document : |
---|
| 28 | @$(MAKE) --directory=$(DIR_DOC) --makefile=Makefile |
---|
| 29 | |
---|
[2] | 30 | component_clean : |
---|
| 31 | @$(RM) $(DIR_LIB) |
---|
[88] | 32 | |
---|
| 33 | # if $(TEST) -d $(DIR_DOC); then $(MAKE) --directory=$(DIR_DOC) --makefile=Makefile clean; fi; |
---|
| 34 | |
---|
| 35 | component_clean_all : component_clean |
---|
| 36 | |
---|
| 37 | # if $(TEST) -d $(DIR_DOC); then $(MAKE) --directory=$(DIR_DOC) --makefile=Makefile clean_all; fi; |
---|
[2] | 38 | |
---|
| 39 | component_help : |
---|
[48] | 40 | @\ |
---|
[77] | 41 | $(ECHO) " -----[ Component ]----------------------------------";\ |
---|
[48] | 42 | $(ECHO) "";\ |
---|
| 43 | $(ECHO) " * all_component : compile all c++ file and generate library";\ |
---|
| 44 | $(ECHO) " * document : Generate documantation";\ |
---|
| 45 | $(ECHO) " * clean : Erase all generate files";\ |
---|
| 46 | $(ECHO) " * help : print this text";\ |
---|
| 47 | $(ECHO) ""; |
---|
[2] | 48 | |
---|
| 49 | |
---|
| 50 | help : |
---|
[48] | 51 | @\ |
---|
| 52 | $(MAKE) common_help;\ |
---|
| 53 | $(MAKE) component_help; |
---|
| 54 | |
---|
[2] | 55 | clean : |
---|
[48] | 56 | @\ |
---|
| 57 | $(MAKE) common_clean ;\ |
---|
[88] | 58 | $(MAKE) component_clean; |
---|
| 59 | |
---|
| 60 | clean_all : |
---|
| 61 | @\ |
---|
| 62 | $(MAKE) common_clean_all ;\ |
---|
| 63 | $(MAKE) component_clean_all; |
---|
Note: See
TracBrowser
for help on using the repository browser.