Rev | Line | |
---|
[2] | 1 | #-----[ Variable ]----------------------------------------- |
---|
| 2 | DIR_LIB = lib |
---|
| 3 | DIR_TEST = SelfTest |
---|
| 4 | |
---|
| 5 | OBJECTS = $(OBJECTS_COMMON) |
---|
| 6 | |
---|
| 7 | #-----[ Directory ]---------------------------------------- |
---|
| 8 | .PRECIOUS : $(DIR_LIB)/%.a |
---|
| 9 | .NOPARALLEL : clean help |
---|
| 10 | |
---|
| 11 | all_component : test_env $(DIR_OBJ) $(DIR_LIB) $(OBJECTS) $(HEADERS) |
---|
| 12 | @$(MAKE) $(LIBRARY) |
---|
| 13 | |
---|
| 14 | $(DIR_LIB)/%.a : $(OBJECTS) $(HEADERS) |
---|
| 15 | @$(ECHO) "Archive : $*" |
---|
| 16 | @$(AR) -r $@ $(OBJECTS) |
---|
| 17 | @$(RANLIB) $@ |
---|
| 18 | |
---|
| 19 | $(DIR_LIB) : |
---|
| 20 | @$(ECHO) "Create directory : $@" |
---|
| 21 | @$(MKDIR) $@ |
---|
| 22 | |
---|
| 23 | component_clean : |
---|
| 24 | @$(RM) $(DIR_LIB) |
---|
| 25 | |
---|
| 26 | component_help : |
---|
| 27 | @$(ECHO) " -----[ Component ]----------------------------------" |
---|
| 28 | @$(ECHO) "" |
---|
| 29 | @$(ECHO) " * all_component : compile all c++ file and generate library" |
---|
| 30 | @$(ECHO) " * clean : Erase all generate files" |
---|
| 31 | @$(ECHO) " * help : print this text" |
---|
| 32 | @$(ECHO) "" |
---|
| 33 | |
---|
| 34 | |
---|
| 35 | help : |
---|
| 36 | @$(MAKE) common_help |
---|
| 37 | @$(MAKE) component_help |
---|
| 38 | clean : |
---|
| 39 | @$(MAKE) common_clean |
---|
| 40 | @$(MAKE) component_clean |
---|
| 41 | |
---|
Note: See
TracBrowser
for help on using the repository browser.