Changeset 139 for trunk/Softwares/Makefile.Software
- Timestamp:
- Jul 30, 2010, 4:47:27 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Softwares/Makefile.Software
r138 r139 57 57 58 58 #~~~~~[ TARGET : COMMON ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 59 COMMON_OPTIMIZE = -O 3-std=c99 -Wall -Wlong-long59 COMMON_OPTIMIZE = -O2 -std=c99 -Wall -Wlong-long 60 60 61 61 COMMON_CC_OPT = $(INCDIR) -D$(OS) -D$(TARGET) $($(TARGET)_OPTIMIZE) $(FLAGS) … … 123 123 EV67_LD = $(EV67_BIN)/$(PREFIX_EV67)gcc 124 124 EV67_OBJDUMP = $(EV67_BIN)/$(PREFIX_EV67)objdump 125 EV67_NM 125 EV67_NM = $(EV67_BIN)/$(PREFIX_EV67)nm 126 126 127 EV67_CC_OPT = $(COMMON_CC_OPT) 128 EV67_AS_OPT = $(COMMON_AS_OPT) 129 EV67_LD_OPT = $(COMMON_LD_OPT) 127 EV67_CC_OPT = $(COMMON_CC_OPT) 128 EV67_AS_OPT = $(COMMON_AS_OPT) 129 EV67_LD_OPT = $(COMMON_LD_OPT) 130 130 EV67_OBJDUMP_OPT = $(COMMON_OBJDUMP_OPT) 131 131 EV67_NM_OPT = $(COMMON_NM_OPT) … … 144 144 $(DIR_BIN)/%.x : $(DIR_BIN) $(DIR_OBJ) 145 145 @\ 146 $(MAKE) $(OBJECTS); \147 $(ECHO) "Linkage : $*.x"; \148 $($(TARGET)_LD) -o $@ $(OBJECTS) $($(TARGET)_LD_OPT); \149 $(ECHO) "List symbols : $*.x.nm"; \146 $(MAKE) $(OBJECTS); \ 147 $(ECHO) "Linkage : $*.x"; \ 148 $($(TARGET)_LD) -o $@ $(OBJECTS) $($(TARGET)_LD_OPT); \ 149 $(ECHO) "List symbols : $*.x.nm"; \ 150 150 $($(TARGET)_NM) $($(TARGET)_NM_OPT) $@ > $@.nm; \ 151 $(ECHO) "Display info : $*.x.txt"; \152 $($(TARGET)_OBJDUMP) $($(TARGET)_OBJDUMP_OPT) $@ > $@.txt; \151 $(ECHO) "Display info : $*.x.txt"; \ 152 $($(TARGET)_OBJDUMP) $($(TARGET)_OBJDUMP_OPT) $@ > $@.txt; \ 153 153 echo $($(GREP) "l.jal 0" $@.txt); 154 154 155 155 $(DIR_OBJ)/%.o : %.s 156 156 @\ 157 $(ECHO) "Compilation : $*.s"; \157 $(ECHO) "Compilation : $*.s"; \ 158 158 $($(TARGET)_CC) $($(TARGET)_CC_OPT) -o $@ -c $^ ; 159 159 # $($(TARGET)_CC) $($(TARGET)_CC_OPT) -S -o $@.s -c $^ ; … … 161 161 $(DIR_OBJ)/%.o : %.c 162 162 @\ 163 $(ECHO) "Compilation : $*.c"; \163 $(ECHO) "Compilation : $*.c"; \ 164 164 $($(TARGET)_CC) $($(TARGET)_CC_OPT) -o $@ -c $^ ; 165 165 # $($(TARGET)_CC) $($(TARGET)_CC_OPT) -S -o $@.s -c $^ ; … … 173 173 @\ 174 174 $(ECHO) "Delete temporary files"; \ 175 $(RM) $(DIR_OBJ) \176 *~ \177 $(DIR_SRC)/*~ \178 $(DIR_C)/*~ \179 $(DIR_ASM)/*~ \180 $(DIR_SYS)/*~ \181 $(DIR_INC)/*~ \182 $(DIR_LDSCRIPT)/*~ \175 $(RM) $(DIR_OBJ) \ 176 *~ \ 177 $(DIR_SRC)/*~ \ 178 $(DIR_C)/*~ \ 179 $(DIR_ASM)/*~ \ 180 $(DIR_SYS)/*~ \ 181 $(DIR_INC)/*~ \ 182 $(DIR_LDSCRIPT)/*~ 183 183 184 clean_all 184 clean_all : clean 185 185 $(RM) $(DIR_BIN) 186 186 … … 188 188 help : 189 189 @\ 190 $(ECHO) ""; \191 $(ECHO) "List of directive : "; \192 $(ECHO) " * all : Compile the software"; \193 $(ECHO) " * clean : Erase all files generates"; \194 $(ECHO) " * clean_all : Erase all files generates"; \190 $(ECHO) ""; \ 191 $(ECHO) "List of directive : "; \ 192 $(ECHO) " * all : Compile the software"; \ 193 $(ECHO) " * clean : Erase all files generates"; \ 194 $(ECHO) " * clean_all : Erase all files generates"; \ 195 195 $(ECHO) "";
Note: See TracChangeset
for help on using the changeset viewer.