Changeset 48 for trunk/Softwares/Basic_test.or32
- Timestamp:
- Aug 8, 2007, 9:16:10 PM (17 years ago)
- File:
-
- 1 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) "";
Note: See TracChangeset
for help on using the changeset viewer.