Changeset 48 for trunk/Softwares/Min.or32/Makefile
- Timestamp:
- Aug 8, 2007, 9:16:10 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Softwares/Min.or32/Makefile
r2 r48 27 27 28 28 $(DIR_BIN)/%.x.txt : $(DIR_BIN)/%.x 29 @$(ECHO) "List symbols of $*" 30 @$(NM) $(NM_OPT) $^ > $@.nm 31 @$(ECHO) "Display information of $*" 32 @$(OBJDUMP) $(OBJDUMP_OPT) $^ > $@ 29 @\ 30 $(ECHO) "List symbols of $*";\ 31 $(NM) $(NM_OPT) $^ > $@.nm;\ 32 $(ECHO) "Display information of $*";\ 33 $(OBJDUMP) $(OBJDUMP_OPT) $^ > $@; 33 34 34 35 $(DIR_BIN)/%.x : $(OBJ_SYS) $(OBJ) 35 @$(ECHO) "Linkage of $*" 36 @$(LD) -o $@ $^ $(LD_OPT) 36 @\ 37 $(ECHO) "Linkage of $*";\ 38 $(LD) -o $@ $^ $(LD_OPT); 37 39 38 40 $(DIR_OBJ)/%.o : $(DIR_ASM)/%.s 39 @$(ECHO) "Compile of $*" 40 @$(CC) $(CC_OPT) -I$(DIR_INC) -o $@ -c $^ 41 @$(CC) $(CC_OPT) -I$(DIR_INC) -S -o $@.s -c $^ 41 @\ 42 $(ECHO) "Compile of $*";\ 43 $(CC) $(CC_OPT) -I$(DIR_INC) -o $@ -c $^ ;\ 44 $(CC) $(CC_OPT) -I$(DIR_INC) -S -o $@.s -c $^ ; 42 45 # @$(AS) $(AS_OPT) $^ -o $@ 43 46 44 47 $(DIR_OBJ)/%.o : $(DIR_SYS)/%.s 45 @$(ECHO) "Compile of $*" 46 @$(CC) $(CC_OPT) -I$(DIR_INC) -o $@ -c $^ 47 @$(CC) $(CC_OPT) -I$(DIR_INC) -S -o $@.s -c $^ 48 @\ 49 $(ECHO) "Compile of $*";\ 50 $(CC) $(CC_OPT) -I$(DIR_INC) -o $@ -c $^ ;\ 51 $(CC) $(CC_OPT) -I$(DIR_INC) -S -o $@.s -c $^ ; 48 52 # @$(AS) $(AS_OPT) $^ -o $@ 49 53 50 54 $(DIR_OBJ)/%.o : $(DIR_C)/%.c 51 @$(ECHO) "Compile of $*" 52 @$(CC) $(CC_OPT) -I$(DIR_INC) -o $@ -c $^ 53 @$(CC) $(CC_OPT) -I$(DIR_INC) -S -o $@.s -c $^ 55 @\ 56 $(ECHO) "Compile of $*";\ 57 $(CC) $(CC_OPT) -I$(DIR_INC) -o $@ -c $^ ;\ 58 $(CC) $(CC_OPT) -I$(DIR_INC) -S -o $@.s -c $^ ; 54 59 55 60 #-----[ Environement ]------------------------------------------------------------ … … 65 70 #-----[ Maintenance ]------------------------------------------------------------- 66 71 clean : 67 @$(ECHO) "Delete temporary files "`$(PWD)` 68 @$(RM) $(DIR_OBJ) $(DIR_BIN) 69 @$(MAKE) clean_rec DIR_CLEAN=. 72 @\ 73 $(ECHO) "Delete temporary files "`$(PWD)`;\ 74 $(RM) $(DIR_OBJ) $(DIR_BIN);\ 75 $(MAKE) clean_rec DIR_CLEAN=.; 70 76 71 77 #Clean recursive 72 78 clean_rec : 73 @$(ECHO) "Delete temporary files in directory $(DIR_CLEAN)" 74 @$(RM) -f $(DIR_CLEAN)/*~ 75 @for files in `$(LS) $(DIR_CLEAN)`; do \ 79 @\ 80 $(ECHO) "Delete temporary files in directory $(DIR_CLEAN)";\ 81 $(RM) -f $(DIR_CLEAN)/*~;\ 82 for files in `$(LS) $(DIR_CLEAN)`; do \ 76 83 if $(TEST) -d $(DIR_CLEAN)/$$files; \ 77 84 then \ … … 82 89 #-----[ Help ]-------------------------------------------------------------------- 83 90 help : 84 @$(ECHO) "" 85 @$(ECHO) "List of directive : " 86 @$(ECHO) " * make : Compile the software" 87 @$(ECHO) " * make clean : Erase all files generates" 88 @$(ECHO) "" 91 @\ 92 $(ECHO) "";\ 93 $(ECHO) "List of directive : ";\ 94 $(ECHO) " * make : Compile the software";\ 95 $(ECHO) " * make clean : Erase all files generates";\ 96 $(ECHO) "";
Note: See TracChangeset
for help on using the changeset viewer.