Changeset 48 for trunk/Softwares
- Timestamp:
- Aug 8, 2007, 9:16:10 PM (17 years ago)
- Location:
- trunk/Softwares
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Softwares/Basic_test.or32/Makefile
r2 r48 38 38 39 39 $(DIR_BIN)/%.x.txt : $(DIR_BIN)/%.x 40 @$(ECHO) "List symbols of $*" 41 @$(NM) $(NM_OPT) $^ > $@.nm 42 @$(ECHO) "Display information of $*" 43 @$(OBJDUMP) $(OBJDUMP_OPT) $^ > $@ 40 @\ 41 $(ECHO) "List symbols of $*";\ 42 $(NM) $(NM_OPT) $^ > $@.nm;\ 43 $(ECHO) "Display information of $*";\ 44 $(OBJDUMP) $(OBJDUMP_OPT) $^ > $@; 44 45 45 46 $(DIR_BIN)/%.x : $(OBJ_SYS) $(OBJ) 46 @$(ECHO) "Linkage of $*" 47 @$(LD) -o $@ $^ $(LD_OPT) 47 @\ 48 $(ECHO) "Linkage of $*";\ 49 $(LD) -o $@ $^ $(LD_OPT); 48 50 49 51 $(DIR_OBJ)/%.o : $(DIR_LOCAL_ASM)/%.s 50 @$(ECHO) "Compile of $*" 51 @$(CC) $(CC_OPT) $(DIR_INC) -o $@ -c $^ 52 @$(CC) $(CC_OPT) $(DIR_INC) -S -o $@.s -c $^ 52 @\ 53 $(ECHO) "Compile of $*";\ 54 $(CC) $(CC_OPT) $(DIR_INC) -o $@ -c $^ ;\ 55 $(CC) $(CC_OPT) $(DIR_INC) -S -o $@.s -c $^ ; 53 56 # @$(AS) $(AS_OPT) $^ -o $@ 54 57 55 58 $(DIR_OBJ)/%.o : $(DIR_LOCAL_SYS)/%.s 56 @$(ECHO) "Compile of $*" 57 @$(CC) $(CC_OPT) $(DIR_INC) -o $@ -c $^ 58 @$(CC) $(CC_OPT) $(DIR_INC) -S -o $@.s -c $^ 59 @\ 60 $(ECHO) "Compile of $*";\ 61 $(CC) $(CC_OPT) $(DIR_INC) -o $@ -c $^ ;\ 62 $(CC) $(CC_OPT) $(DIR_INC) -S -o $@.s -c $^ ; 59 63 # @$(AS) $(AS_OPT) $^ -o $@ 60 64 61 65 $(DIR_OBJ)/%.o : $(DIR_LOCAL_C)/%.c 62 @$(ECHO) "Compile of $*" 63 @$(CC) $(CC_OPT) $(DIR_INC) -o $@ -c $^ 64 @$(CC) $(CC_OPT) $(DIR_INC) -S -o $@.s -c $^ 66 @\ 67 $(ECHO) "Compile of $*";\ 68 $(CC) $(CC_OPT) $(DIR_INC) -o $@ -c $^ ;\ 69 $(CC) $(CC_OPT) $(DIR_INC) -S -o $@.s -c $^ ; 65 70 66 71 $(DIR_OBJ)/%.o : $(DIR_GLOBAL_ASM)/%.s 67 @$(ECHO) "Compile of $*" 68 @$(CC) $(CC_OPT) $(DIR_INC) -o $@ -c $^ 69 @$(CC) $(CC_OPT) $(DIR_INC) -S -o $@.s -c $^ 72 @\ 73 $(ECHO) "Compile of $*";\ 74 $(CC) $(CC_OPT) $(DIR_INC) -o $@ -c $^ ;\ 75 $(CC) $(CC_OPT) $(DIR_INC) -S -o $@.s -c $^ ; 70 76 # @$(AS) $(AS_OPT) $^ -o $@ 71 77 72 78 $(DIR_OBJ)/%.o : $(DIR_GLOBAL_SYS)/%.s 73 @$(ECHO) "Compile of $*" 74 @$(CC) $(CC_OPT) $(DIR_INC) -o $@ -c $^ 75 @$(CC) $(CC_OPT) $(DIR_INC) -S -o $@.s -c $^ 79 @\ 80 $(ECHO) "Compile of $*";\ 81 $(CC) $(CC_OPT) $(DIR_INC) -o $@ -c $^ ;\ 82 $(CC) $(CC_OPT) $(DIR_INC) -S -o $@.s -c $^ ; 76 83 # @$(AS) $(AS_OPT) $^ -o $@ 77 84 78 85 $(DIR_OBJ)/%.o : $(DIR_GLOBAL_C)/%.c 79 @$(ECHO) "Compile of $*" 80 @$(CC) $(CC_OPT) $(DIR_INC) -o $@ -c $^ 81 @$(CC) $(CC_OPT) $(DIR_INC) -S -o $@.s -c $^ 86 @\ 87 $(ECHO) "Compile of $*";\ 88 $(CC) $(CC_OPT) $(DIR_INC) -o $@ -c $^ ;\ 89 $(CC) $(CC_OPT) $(DIR_INC) -S -o $@.s -c $^ ; 82 90 83 91 #-----[ Environement ]------------------------------------------------------------ … … 93 101 #-----[ Maintenance ]------------------------------------------------------------- 94 102 clean : 95 @$(ECHO) "Delete temporary files "`$(PWD)` 96 @$(RM) $(DIR_OBJ) $(DIR_BIN) 97 @$(MAKE) clean_rec DIR_CLEAN=. 103 @\ 104 $(ECHO) "Delete temporary files "`$(PWD)`;\ 105 $(RM) $(DIR_OBJ) $(DIR_BIN);\ 106 $(MAKE) clean_rec DIR_CLEAN=.; 98 107 99 108 #Clean recursive 100 109 clean_rec : 101 @$(ECHO) "Delete temporary files in directory $(DIR_CLEAN)" 102 @$(RM) -f $(DIR_CLEAN)/*~ 103 @for files in `$(LS) $(DIR_CLEAN)`; do \ 110 @\ 111 $(ECHO) "Delete temporary files in directory $(DIR_CLEAN)";\ 112 $(RM) -f $(DIR_CLEAN)/*~;\ 113 for files in `$(LS) $(DIR_CLEAN)`; do \ 104 114 if $(TEST) -d $(DIR_CLEAN)/$$files; \ 105 115 then \ … … 110 120 #-----[ Help ]-------------------------------------------------------------------- 111 121 help : 112 @$(ECHO) "" 113 @$(ECHO) "List of directive : " 114 @$(ECHO) " * make : Compile the software" 115 @$(ECHO) " * make clean : Erase all files generates" 116 @$(ECHO) " * make bench_list : View all benchmark" 117 @$(ECHO) " * make bench_exec : Print the file \"$(FILE_BENCH)\" - it's the Workload" 118 @$(ECHO) " * make bench : Compile the Benchmark Suite" 119 @$(ECHO) "" 122 @\ 123 $(ECHO) "";\ 124 $(ECHO) "List of directive : ";\ 125 $(ECHO) " * make : Compile the software";\ 126 $(ECHO) " * make clean : Erase all files generates";\ 127 $(ECHO) " * make bench_list : View all benchmark";\ 128 $(ECHO) " * make bench_exec : Print the file \"$(FILE_BENCH)\" - it's the Workload";\ 129 $(ECHO) " * make bench : Compile the Benchmark Suite";\ 130 $(ECHO) ""; -
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.