Changeset 137 for trunk/Softwares


Ignore:
Timestamp:
Feb 16, 2010, 1:35:48 PM (14 years ago)
Author:
rosiere
Message:

Various modif (add test, and vhdl)

Location:
trunk/Softwares
Files:
1 added
26 edited

Legend:

Unmodified
Added
Removed
  • trunk/Softwares/Basic_test/Makefile

    r100 r137  
    1515DIR_LDSCRIPT                    = ../Common/ldscript/
    1616
    17 INCDIR                          = -I$(DIR_INC) -I$(DIR_COMMON_INC) $(NEWLIB_INCDIR)
    18 LIBDIR                          = $(NEWLIB_LIBDIR)
    19 LIBNAME                         = $(NEWLIB_LIBNAME)
     17INCDIR                          = -I$(DIR_INC) -I$(DIR_COMMON_INC) $($(OS)_INCDIR)
     18LIBDIR                          = $($(OS)_LIBDIR)
     19LIBNAME                         = $($(OS)_LIBNAME)
    2020
    2121#-----[ Files ]-------------------------------------------------------------------
  • trunk/Softwares/Dhrystone/Makefile

    r130 r137  
    1717DIR_SYS                         = $(DIR_SRC)/sys
    1818DIR_INC                         = $(DIR_SRC)/include
    19 DIR_LDSCRIPT                    = $(NEWLIB)/lib/
     19DIR_LDSCRIPT                    = $($(OS)_DIR_LDSCRIPT)
    2020
    21 INCDIR                          = $(NEWLIB_INCDIR) -I$(DIR_INC)
    22 LIBDIR                          = $(NEWLIB_LIBDIR)
    23 LIBNAME                         = $(NEWLIB_LIBNAME)
     21INCDIR                          = $($(OS)_INCDIR) -I$(DIR_INC)
     22LIBDIR                          = $($(OS)_LIBDIR)
     23LIBNAME                         = $($(OS)_LIBNAME)
    2424
    2525FLAGS                           = -DDHRYSTONE_NB_RUNS=$(DHRYSTONE_NB_RUNS)
    2626
    2727#-----[ Files ]-------------------------------------------------------------------
    28 OBJECTS                         =       $(NEWLIB)/lib/*.o \
     28OBJECTS                         =       $($(OS)_OBJECTS) \
    2929                                        $(patsubst $(DIR_ASM)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_ASM)/*.s))    \
    3030                                        $(patsubst $(DIR_SYS)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SYS)/*.s))    \
  • trunk/Softwares/Makefile.Software

    r136 r137  
    1313endif
    1414
     15include                         $(MORPHEO_TOPLEVEL)/Softwares/Makefile.defs
     16
    1517#-----[ Directory ]---------------------------------------------------------------
     18
    1619DIR_OBJ                         = obj
    1720DIR_BIN                         = bin
     
    1922EXE                             = soft
    2023
    21 DIR_COMMON              = $(MORPHEO_TOPLEVEL)/Softwares/Common
    22 DIR_COMMON_C            = $(DIR_COMMON)/src/c
    23 DIR_COMMON_ASM          = $(DIR_COMMON)/src/asm
    24 DIR_COMMON_SYS          = $(DIR_COMMON)/src/sys
    25 DIR_COMMON_INC          = $(DIR_COMMON)/include
     24DIR_COMMON                      = $(MORPHEO_TOPLEVEL)/Softwares/Common
     25DIR_COMMON_C                    = $(DIR_COMMON)/src/c
     26DIR_COMMON_ASM                  = $(DIR_COMMON)/src/asm
     27DIR_COMMON_SYS                  = $(DIR_COMMON)/src/sys
     28DIR_COMMON_INC                  = $(DIR_COMMON)/include
    2629
    27 OBJECTS_COMMON          =       $(patsubst $(DIR_COMMON_SYS)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_COMMON_SYS)/*.s))      \
    28                                 $(patsubst $(DIR_COMMON_ASM)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_COMMON_ASM)/*.s))      \
    29                                 $(patsubst $(DIR_COMMON_C)/%.c,$(DIR_OBJ)/%.o,$(wildcard $(DIR_COMMON_C)/*.c))
     30OBJECTS_COMMON                  =       $(patsubst $(DIR_COMMON_SYS)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_COMMON_SYS)/*.s))\
     31                                        $(patsubst $(DIR_COMMON_ASM)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_COMMON_ASM)/*.s))\
     32                                        $(patsubst $(DIR_COMMON_C)/%.c,$(DIR_OBJ)/%.o,$(wildcard $(DIR_COMMON_C)/*.c))
    3033
    3134
    3235#-----[ To the compilation ]------------------------------------------------------
    33 OPTIMIZE                        = -O3 -std=c99 -fomit-frame-pointer -fdelayed-branch -mror -mcmov -msext -mhard-mul -msoft-div -msoft-float
     36
     37#~~~~~[ OS : Newlib ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     38NEWLIB_DIR_LDSCRIPT                     = $(NEWLIB)/lib/
     39#NEWLIB_INCDIR
     40#NEWLIB_LIBDIR
     41#NEWLIB_LIBNAME
     42NEWLIB_OBJECTS                          = $(NEWLIB)/lib/*.o
     43
     44#~~~~~[ OS : UNIX ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     45UNIX_DIR_LDSCRIPT                       =
     46UNIX_INCDIR                             =
     47UNIX_LIBDIR                             =
     48UNIX_LIBNAME                            = -lm
     49UNIX_OBJECTS                            =
     50
     51
     52#~~~~~[ TARGET : MORPHEO ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     53
     54MORPHEO_OPTIMIZE                        = -O3 -std=c99 -fomit-frame-pointer -fdelayed-branch -mror -mcmov -msext -mhard-mul -msoft-div -msoft-float
    3455
    3556#Option :
     
    4869
    4970# Tools
    50 OR32_CC                         = $(OR1K_BIN)/or32-elf-gcc
    51 OR32_AS                         = $(OR1K_BIN)/or32-elf-as
    52 OR32_LD                         = $(OR1K_BIN)/or32-elf-ld
    53 OR32_OBJDUMP                    = $(OR1K_BIN)/or32-elf-objdump
    54 OR32_NM                         = $(OR1K_BIN)/or32-elf-nm
     71MORPHEO_CC                      = $(OR1K_BIN)/or32-elf-gcc
     72MORPHEO_AS                      = $(OR1K_BIN)/or32-elf-as
     73MORPHEO_LD                      = $(OR1K_BIN)/or32-elf-ld
     74MORPHEO_OBJDUMP                 = $(OR1K_BIN)/or32-elf-objdump
     75MORPHEO_NM                      = $(OR1K_BIN)/or32-elf-nm
    5576
    5677# Tools's option
    57 OR32_CC_OPT                     = -Wall $(INCDIR) $(OPTIMIZE) -Wlong-long -DMorpheo $(FLAGS)
     78MORPHEO_CC_OPT                  = -Wall $(INCDIR) $(MORPHEO_OPTIMIZE) -Wlong-long -DMorpheo $(FLAGS)
    5879# -DHAVE_LIBC
    59 OR32_AS_OPT                     =
    60 OR32_LD_OPT                     = -T$(DIR_LDSCRIPT)/or32.ld $(LIBDIR) $(LIBNAME) $(OR1K_LIBDIR) $(OR1K_LIBNAME)
    61 OR32_OBJDUMP_OPT                = -D
    62 OR32_NM_OPT                     = -n
     80MORPHEO_AS_OPT                  =
     81MORPHEO_LD_OPT                  = -T$(DIR_LDSCRIPT)/or32.ld $(LIBDIR) $(LIBNAME) $(OR1K_LIBDIR) $(OR1K_LIBNAME)
     82MORPHEO_OBJDUMP_OPT             = -D
     83MORPHEO_NM_OPT                  = -n
     84
     85#~~~~~[ TARGET : x86 ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     86
     87x86_OPTIMIZE                    = -O3 -std=c99
     88
     89x86_CC                          = gcc
     90x86_AS                          = as
     91x86_LD                          = gcc
     92x86_OBJDUMP                     = objdump
     93x86_NM                          = nm
     94
     95x86_CC_OPT                      = -Wall $(INCDIR) $(x86_OPTIMIZE) -Wlong-long -DUNIX $(FLAGS) -g3
     96x86_AS_OPT                      =
     97x86_LD_OPT                      = $(LIBDIR) $(LIBNAME) -g3
     98x86_OBJDUMP_OPT                 = -D
     99x86_NM_OPT                      = -n
    63100
    64101#-----[ Rules ]-------------------------------------------------------------------
     
    77114                                $(MAKE) $(OBJECTS);                             \
    78115                                $(ECHO) "Linkage            : $*.x";            \
    79                                 $(OR32_LD) -o $@ $(OBJECTS) $(OR32_LD_OPT);     \
     116                                $($(TARGET)_LD) -o $@ $(OBJECTS) $($(TARGET)_LD_OPT);   \
    80117                                $(ECHO) "List symbols       : $*.x.nm";         \
    81                                 $(OR32_NM)      $(OR32_NM_OPT)      $@ > $@.nm; \
     118                                $($(TARGET)_NM)      $($(TARGET)_NM_OPT)      $@ > $@.nm;       \
    82119                                $(ECHO) "Display info       : $*.x.txt";        \
    83                                 $(OR32_OBJDUMP) $(OR32_OBJDUMP_OPT) $@ > $@.txt;\
     120                                $($(TARGET)_OBJDUMP) $($(TARGET)_OBJDUMP_OPT) $@ > $@.txt;\
    84121                                echo $($(GREP) "l.jal 0" $@.txt);
    85122
     
    87124                                @\
    88125                                $(ECHO) "Compilation        : $*.s";            \
    89                                 $(OR32_CC) $(OR32_CC_OPT)     -o $@   -c $^ ;
    90 #                               $(OR32_CC) $(OR32_CC_OPT)  -S -o $@.s -c $^ ;
     126                                $($(TARGET)_CC) $($(TARGET)_CC_OPT)     -o $@   -c $^ ;
     127#                               $($(TARGET)_CC) $($(TARGET)_CC_OPT)  -S -o $@.s -c $^ ;
    91128
    92129$(DIR_OBJ)/%.o                  : %.c
    93130                                @\
    94131                                $(ECHO) "Compilation        : $*.c";            \
    95                                 $(OR32_CC) $(OR32_CC_OPT)     -o $@   -c $^ ;
    96 #                               $(OR32_CC) $(OR32_CC_OPT)  -S -o $@.s -c $^ ;
     132                                $($(TARGET)_CC) $($(TARGET)_CC_OPT)     -o $@   -c $^ ;
     133#                               $($(TARGET)_CC) $($(TARGET)_CC_OPT)  -S -o $@.s -c $^ ;
    97134
    98135$(DIR_BIN) $(DIR_OBJ)           :
  • trunk/Softwares/MiBench/Makefile

    r129 r137  
    1717DIR_SYS                         = $(DIR_SRC)/sys
    1818DIR_INC                         = $(DIR_SRC)/include
    19 DIR_LDSCRIPT                    = $(NEWLIB)/lib/
     19DIR_LDSCRIPT                    = $($(OS)_DIR_LDSCRIPT)
    2020
    21 INCDIR                          = $(NEWLIB_INCDIR) -I$(DIR_INC)
    22 LIBDIR                          = $(NEWLIB_LIBDIR)
    23 LIBNAME                         = $(NEWLIB_LIBNAME)
     21INCDIR                          = $($(OS)_INCDIR) -I$(DIR_INC)
     22LIBDIR                          = $($(OS)_LIBDIR)
     23LIBNAME                         = $($(OS)_LIBNAME)
    2424
    2525MIBENCH_DATA_PATH               = $(MORPHEO_TOPLEVEL)/Softwares/MiBench/data
     
    2828
    2929#-----[ Files ]-------------------------------------------------------------------
    30 OBJECTS                         =       $(NEWLIB)/lib/*.o \
     30OBJECTS                         =       $($(OS)_OBJECTS) \
    3131                                        $(patsubst $(DIR_ASM)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_ASM)/*.s))    \
    3232                                        $(patsubst $(DIR_SYS)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SYS)/*.s))    \
  • trunk/Softwares/MiBench/Makefile.defs

    r130 r137  
    1010
    1111BENCHS                  = \
    12                         automative.basicmath\
    13                         automative.bitcount \
    14                         automative.qsort    \
    15                         automative.susan    \
    16                         network.dijkstra    \
    17                         office.stringsearch \
    18                         security.sha        \
     12                        automative.basicmath            \
     13                        automative.bitcount             \
     14                        automative.qsort                \
     15                        automative.susan                \
     16                        automative.susan_edges          \
     17                        automative.susan_corners        \
     18                        automative.susan_smoothing      \
     19                        network.dijkstra                \
     20                        office.stringsearch             \
     21                        security.sha                    \
     22                        all                             \
    1923                        none
    2024
    21 BENCHS_TYPE             = -DMIBENCH_LARGE
     25BENCHS_TYPE             = -DMIBENCH_SMALL
    2226
    2327# MIBENCH_SMALL
  • trunk/Softwares/MiBench/src/c/benchmark.c

    r129 r137  
    148148    free(argv[i]);
    149149  free(argv);
     150  free(filename);
    150151}
    151152#endif
     
    175176    free(argv[i]);
    176177  free(argv);
     178  free(filename);
    177179}
    178180#endif
     
    193195
    194196//=======================================================================================
    195 //                                                       [ run_automative_susan ]
    196 //=======================================================================================
    197 #ifdef MIBENCH_SMALL
    198 void main_susan_small (void)
     197//                                                   [ run_automative_susan_egdes ]
     198//=======================================================================================
     199#ifdef MIBENCH_SMALL
     200void main_susan_edges_small (void)
    199201{
    200202  int     argc = 4;
     
    205207  char  * filename_input  = (char *) malloc(strlen(MIBENCH_DATA_PATH)+strlen(_filename_input));
    206208  strcpy(filename_input,MIBENCH_DATA_PATH); strcat(filename_input,_filename_input);
     209  char  * filename_output = "output_small.edges.pgm";
     210  char  * option          = "-e";                   
    207211 
    208212  argv    = (char **)malloc ((argc) * sizeof(char *));
     
    214218  argv[1] = memcpy(argv[1],filename_input ,strlen(filename_input ));
    215219
    216   char  * filename_output = "output_small.smoothing.pgm";
    217   char  * option          = "-s";
    218 
    219220  argv[2] = (char *) malloc (strlen(filename_output));
    220221  argv[2] = memcpy(argv[2],filename_output,strlen(filename_output));
     
    225226  main_susan(argc, argv);
    226227
    227   for (int i=2; i<argc; ++i)
    228     free(argv[i]);
    229 
    230   filename_output = "output_small.edges.pgm";
    231   option          = "-e";
    232 
    233   argv[2] = (char *) malloc (strlen(filename_output));
    234   argv[2] = memcpy(argv[2],filename_output,strlen(filename_output));
    235 
    236   argv[3] = (char *) malloc (strlen(option         ));
    237   argv[3] = memcpy(argv[3],option         ,strlen(option         ));
    238 
    239   main_susan(argc, argv);
    240 
    241   for (int i=2; i<argc; ++i)
    242     free(argv[i]);
    243 
    244   for (int i=2; i<argc; ++i)
    245     free(argv[i]);
    246 
    247   filename_output = "output_small.cornes.pgm";
    248   option          = "-c";
    249 
    250   argv[2] = (char *) malloc (strlen(filename_output));
    251   argv[2] = memcpy(argv[2],filename_output,strlen(filename_output));
    252 
    253   argv[3] = (char *) malloc (strlen(option         ));
    254   argv[3] = memcpy(argv[3],option         ,strlen(option         ));
    255 
    256   main_susan(argc, argv);
    257    
    258   for (int i=0; i<argc; ++i)
    259     free(argv[i]);
    260   free(argv);
    261 }
    262 #endif
    263 
    264 #ifdef MIBENCH_LARGE
    265 void main_susan_large (void)
     228  for (int i=0; i<argc; ++i)
     229    free(argv[i]);
     230  free(argv);
     231  free(filename_input);
     232}
     233#endif
     234
     235#ifdef MIBENCH_LARGE
     236void main_susan_edges_large (void)
    266237{
    267238  int     argc = 4;
     
    272243  char  * filename_input  = (char *) malloc(strlen(MIBENCH_DATA_PATH)+strlen(_filename_input));
    273244  strcpy(filename_input,MIBENCH_DATA_PATH); strcat(filename_input,_filename_input);
     245  char  * filename_output = "output_large.edges.pgm";
     246  char  * option          = "-e";                   
    274247 
    275248  argv    = (char **)malloc ((argc) * sizeof(char *));
     
    281254  argv[1] = memcpy(argv[1],filename_input ,strlen(filename_input ));
    282255
     256  argv[2] = (char *) malloc (strlen(filename_output));
     257  argv[2] = memcpy(argv[2],filename_output,strlen(filename_output));
     258
     259  argv[3] = (char *) malloc (strlen(option         ));
     260  argv[3] = memcpy(argv[3],option         ,strlen(option         ));
     261
     262  main_susan(argc, argv);
     263
     264  for (int i=0; i<argc; ++i)
     265    free(argv[i]);
     266  free(argv);
     267  free(filename_input);
     268}
     269#endif
     270
     271void run_automative_susan_edges (void)
     272{
     273  printf("***** automative.susan.edges - Begin *****\n");
     274 
     275#ifdef MIBENCH_SMALL
     276  main_susan_edges_small     ();
     277#endif
     278#ifdef MIBENCH_LARGE
     279  main_susan_edges_large     ();
     280#endif
     281
     282  printf("***** automative.susan.edges - End   *****\n");
     283}
     284
     285//=======================================================================================
     286//                                                  [ run_automative_susan_corners ]
     287//=======================================================================================
     288#ifdef MIBENCH_SMALL
     289void main_susan_corners_small (void)
     290{
     291  int     argc = 4;
     292  char ** argv;
     293
     294  char  * execname        = "./susan";
     295  char  *_filename_input  = "/susan-input_small.pgm";
     296  char  * filename_input  = (char *) malloc(strlen(MIBENCH_DATA_PATH)+strlen(_filename_input));
     297  strcpy(filename_input,MIBENCH_DATA_PATH); strcat(filename_input,_filename_input);
     298  char  * filename_output = "output_small.corners.pgm";
     299  char  * option          = "-c";
     300 
     301  argv    = (char **)malloc ((argc) * sizeof(char *));
     302 
     303  argv[0] = (char *) malloc (strlen(execname       ));
     304  argv[0] = memcpy(argv[0],execname       ,strlen(execname       ));
     305
     306  argv[1] = (char *) malloc (strlen(filename_input ));
     307  argv[1] = memcpy(argv[1],filename_input ,strlen(filename_input ));
     308
     309  argv[2] = (char *) malloc (strlen(filename_output));
     310  argv[2] = memcpy(argv[2],filename_output,strlen(filename_output));
     311
     312  argv[3] = (char *) malloc (strlen(option         ));
     313  argv[3] = memcpy(argv[3],option         ,strlen(option         ));
     314
     315  main_susan(argc, argv);
     316   
     317  for (int i=0; i<argc; ++i)
     318    free(argv[i]);
     319  free(argv);
     320  free(filename_input);
     321}
     322#endif
     323
     324#ifdef MIBENCH_LARGE
     325void main_susan_corners_large (void)
     326{
     327  int     argc = 4;
     328  char ** argv;
     329
     330  char  * execname        = "./susan";
     331  char  *_filename_input  = "/susan-input_large.pgm";
     332  char  * filename_input  = (char *) malloc(strlen(MIBENCH_DATA_PATH)+strlen(_filename_input));
     333  strcpy(filename_input,MIBENCH_DATA_PATH); strcat(filename_input,_filename_input);
     334  char  * filename_output = "output_small.corners.pgm";
     335  char  * option          = "-c";
     336 
     337  argv    = (char **)malloc ((argc) * sizeof(char *));
     338 
     339  argv[0] = (char *) malloc (strlen(execname       ));
     340  argv[0] = memcpy(argv[0],execname       ,strlen(execname       ));
     341
     342  argv[1] = (char *) malloc (strlen(filename_input ));
     343  argv[1] = memcpy(argv[1],filename_input ,strlen(filename_input ));
     344
     345  argv[2] = (char *) malloc (strlen(filename_output));
     346  argv[2] = memcpy(argv[2],filename_output,strlen(filename_output));
     347
     348  argv[3] = (char *) malloc (strlen(option         ));
     349  argv[3] = memcpy(argv[3],option         ,strlen(option         ));
     350
     351  main_susan(argc, argv);
     352   
     353  for (int i=0; i<argc; ++i)
     354    free(argv[i]);
     355  free(argv);
     356  free(filename_input);
     357}
     358#endif
     359
     360void run_automative_susan_corners (void)
     361{
     362  printf("***** automative.susan.corners - Begin *****\n");
     363 
     364#ifdef MIBENCH_SMALL
     365  main_susan_corners_small   ();
     366#endif
     367#ifdef MIBENCH_LARGE
     368  main_susan_corners_large   ();
     369#endif
     370
     371  printf("***** automative.susan.corners - End   *****\n");
     372}
     373
     374//=======================================================================================
     375//                                                [ run_automative_susan_smoothing ]
     376//=======================================================================================
     377#ifdef MIBENCH_SMALL
     378void main_susan_smoothing_small (void)
     379{
     380  int     argc = 4;
     381  char ** argv;
     382
     383  char  * execname        = "./susan";
     384  char  *_filename_input  = "/susan-input_small.pgm";
     385  char  * filename_input  = (char *) malloc(strlen(MIBENCH_DATA_PATH)+strlen(_filename_input));
     386  strcpy(filename_input,MIBENCH_DATA_PATH); strcat(filename_input,_filename_input);
     387  char  * filename_output = "output_small.smoothing.pgm";
     388  char  * option          = "-s";
     389 
     390  argv    = (char **)malloc ((argc) * sizeof(char *));
     391 
     392  argv[0] = (char *) malloc (strlen(execname       ));
     393  argv[0] = memcpy(argv[0],execname       ,strlen(execname       ));
     394
     395  argv[1] = (char *) malloc (strlen(filename_input ));
     396  argv[1] = memcpy(argv[1],filename_input ,strlen(filename_input ));
     397
     398  argv[2] = (char *) malloc (strlen(filename_output));
     399  argv[2] = memcpy(argv[2],filename_output,strlen(filename_output));
     400
     401  argv[3] = (char *) malloc (strlen(option         ));
     402  argv[3] = memcpy(argv[3],option         ,strlen(option         ));
     403
     404  main_susan(argc, argv);
     405
     406  for (int i=0; i<argc; ++i)
     407    free(argv[i]);
     408  free(argv);
     409  free(filename_input);
     410}
     411#endif
     412
     413#ifdef MIBENCH_LARGE
     414void main_susan_smoothing_large (void)
     415{
     416  int     argc = 4;
     417  char ** argv;
     418
     419  char  * execname        = "./susan";
     420  char  *_filename_input  = "/susan-input_large.pgm";
     421  char  * filename_input  = (char *) malloc(strlen(MIBENCH_DATA_PATH)+strlen(_filename_input));
     422  strcpy(filename_input,MIBENCH_DATA_PATH); strcat(filename_input,_filename_input);
    283423  char  * filename_output = "output_large.smoothing.pgm";
    284424  char  * option          = "-s";
    285425
     426  argv    = (char **)malloc ((argc) * sizeof(char *));
     427 
     428  argv[0] = (char *) malloc (strlen(execname       ));
     429  argv[0] = memcpy(argv[0],execname       ,strlen(execname       ));
     430
     431  argv[1] = (char *) malloc (strlen(filename_input ));
     432  argv[1] = memcpy(argv[1],filename_input ,strlen(filename_input ));
    286433  argv[2] = (char *) malloc (strlen(filename_output));
    287434  argv[2] = memcpy(argv[2],filename_output,strlen(filename_output));
     
    291438
    292439  main_susan(argc, argv);
    293 
    294   for (int i=2; i<argc; ++i)
    295     free(argv[i]);
    296 
    297   filename_output = "output_large.edges.pgm";
    298   option          = "-e";
    299 
    300   argv[2] = (char *) malloc (strlen(filename_output));
    301   argv[2] = memcpy(argv[2],filename_output,strlen(filename_output));
    302 
    303   argv[3] = (char *) malloc (strlen(option         ));
    304   argv[3] = memcpy(argv[3],option         ,strlen(option         ));
    305 
    306   main_susan(argc, argv);
    307 
    308   for (int i=2; i<argc; ++i)
    309     free(argv[i]);
    310 
    311   for (int i=2; i<argc; ++i)
    312     free(argv[i]);
    313 
    314   filename_output = "output_large.cornes.pgm";
    315   option          = "-c";
    316 
    317   argv[2] = (char *) malloc (strlen(filename_output));
    318   argv[2] = memcpy(argv[2],filename_output,strlen(filename_output));
    319 
    320   argv[3] = (char *) malloc (strlen(option         ));
    321   argv[3] = memcpy(argv[3],option         ,strlen(option         ));
    322 
    323   main_susan(argc, argv);
    324    
    325   for (int i=0; i<argc; ++i)
    326     free(argv[i]);
    327   free(argv);
    328 }
    329 #endif
     440   
     441  for (int i=0; i<argc; ++i)
     442    free(argv[i]);
     443  free(argv);
     444  free(filename_input);
     445}
     446#endif
     447
     448void run_automative_susan_smoothing (void)
     449{
     450  printf("***** automative.susan.smoothing - Begin *****\n");
     451 
     452#ifdef MIBENCH_SMALL
     453  main_susan_smoothing_small ();
     454#endif
     455#ifdef MIBENCH_LARGE
     456  main_susan_smoothing_large ();
     457#endif
     458
     459  printf("***** automative.susan.smoothing - End   *****\n");
     460}
     461
     462//=======================================================================================
     463//                                                       [ run_automative_susan ]
     464//=======================================================================================
    330465
    331466void run_automative_susan (void)
     
    333468  printf("***** automative.susan - Begin *****\n");
    334469 
    335 #ifdef MIBENCH_SMALL
    336   main_susan_small ();
    337 #endif
    338 #ifdef MIBENCH_LARGE
    339   main_susan_large ();
    340 #endif
     470  run_automative_susan_edges     ();
     471  run_automative_susan_corners   ();
     472  run_automative_susan_smoothing ();
     473
     474  /*
     475#ifdef MIBENCH_SMALL
     476  main_susan_edges_small     ();
     477  main_susan_corners_small   ();
     478  main_susan_smoothing_small ();
     479#endif
     480#ifdef MIBENCH_LARGE
     481  main_susan_edges_large     ();
     482  main_susan_corners_large   ();
     483  main_susan_smoothing_large ();
     484#endif
     485  */
    341486
    342487  printf("***** automative.susan - End   *****\n");
     
    376521    free(argv[i]);
    377522  free(argv);
     523  free(filename);
    378524}
    379525#endif
     
    409555    free(argv[i]);
    410556  free(argv);
     557  free(filename);
    411558}
    412559#endif
     
    470617    free(argv[i]);
    471618  free(argv);
     619  free(filename);
    472620}
    473621#endif
     
    497645    free(argv[i]);
    498646  free(argv);
     647  free(filename);
    499648}
    500649#endif
     
    513662  printf("***** security.sha - End   *****\n");
    514663}
     664
     665
     666//=======================================================================================
     667//                                                                       [ run_all ]     
     668//=======================================================================================
     669void run_all (void)
     670{
     671  printf("***** all *****\n");
     672
     673  run_automative_basicmath       ();
     674  run_automative_bitcount        ();
     675  run_automative_qsort           ();
     676  run_automative_susan_edges     ();
     677  run_automative_susan_corners   ();
     678  run_automative_susan_smoothing ();
     679 
     680  run_network_dijkstra           ();
     681 
     682  run_office_stringsearch        ();
     683 
     684  run_security_sha               ();
     685
     686  return;
     687}
  • trunk/Softwares/MiBench/src/c/main.c

    r117 r137  
    1616int main()
    1717{
     18#ifdef Morpheo
    1819  int pid = (int)getpid();
    1920 
     
    2526  else
    2627    printf("The number of function in the workload is %d. (maximum of thread is : %d)\n",(int)NB_WORKLOAD,NB_THREAD_MAX);
    27    
     28#endif
     29
     30#ifdef UNIX
     31  for (int i=0; i<(int)NB_WORKLOAD; ++i)
     32    (*WorkLoad[i])();
     33#endif
     34
    2835  exit (0);
    2936
  • trunk/Softwares/MiBench/src/include/benchmark.h

    r124 r137  
    44#define benchmark_h
    55
    6 void run_none                 (void);
     6void run_none                       (void);
     7void run_all                        (void);
     8                                   
     9void run_automative_basicmath       (void);
     10void run_automative_bitcount        (void);
     11void run_automative_qsort           (void);
     12void run_automative_susan           (void);
     13void run_automative_susan_edges     (void);
     14void run_automative_susan_corners   (void);
     15void run_automative_susan_smoothing (void);
    716
    8 void run_automative_basicmath (void);
    9 void run_automative_bitcount  (void);
    10 void run_automative_qsort     (void);
    11 void run_automative_susan     (void);
    12 
    13 void run_network_dijkstra     (void);
    14 
    15 void run_office_stringsearch  (void);
    16 
    17 void run_security_sha         (void);
     17void run_network_dijkstra           (void);
     18                                   
     19void run_office_stringsearch        (void);
     20                                   
     21void run_security_sha               (void);
    1822
    1923#endif // benchmark_h
  • trunk/Softwares/MiBench/src/include/workload.h

    r124 r137  
    1212void (*WorkLoad[])() =
    1313{
    14         (void *) run_security_sha
     14        (void *) run_automative_susan
    1515};
    1616
  • trunk/Softwares/MiBench/workload.sh

    r124 r137  
    1 echo -e "1\n1\n2\n3\n4\n5\n6\n7\n0\n" | make -s workload
     1echo -e "1\n4\n0\n" | make -s workload
  • trunk/Softwares/MiBench/workload.txt

    r124 r137  
    1 soft_0.x :  automative_basicmath
    2 soft_1.x :  automative_bitcount
    3 soft_2.x :  automative_qsort
    4 soft_3.x :  automative_susan
    5 soft_4.x :  network_dijkstra
    6 soft_5.x :  office_stringsearch
    7 soft_6.x :  security_sha
     1soft_0.x :  automative_susan
  • trunk/Softwares/SPECINT2000/Makefile

    r124 r137  
    2727DIR_SYS                         = $(DIR_SRC)/sys
    2828DIR_INC                         = $(DIR_SRC)/include
    29 DIR_LDSCRIPT                    = $(NEWLIB)/lib/
     29DIR_LDSCRIPT                    = $($(OS)_DIR_LDSCRIPT)
    3030
    31 INCDIR                          = $(NEWLIB_INCDIR) -I$(DIR_INC)
    32 LIBDIR                          = $(NEWLIB_LIBDIR)
    33 LIBNAME                         = $(NEWLIB_LIBNAME)
     31INCDIR                          = $($(OS)_INCDIR) -I$(DIR_INC)
     32LIBDIR                          = $($(OS)_LIBDIR)
     33LIBNAME                         = $($(OS)_LIBNAME)
    3434
    3535#-----[ Flags ]-------------------------------------------------------------------
     
    5151
    5252#-----[ Files ]-------------------------------------------------------------------
    53 OBJECTS                         =       $(NEWLIB)/lib/*.o \
     53OBJECTS                         =       $($(OS)_OBJECTS) \
    5454                                        $(patsubst $(DIR_ASM)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_ASM)/*.s))    \
    5555                                        $(patsubst $(DIR_SYS)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SYS)/*.s))    \
     
    6666                                @\
    6767                                $(ECHO) "Compilation        : $*.c";            \
    68                                 $(OR32_CC) $(OR32_CC_OPT) $(FLAGS_164.gzip)    -o $@   -c $^ ;
     68                                $($(TARGET)_CC) $($(TARGET)_CC_OPT) $(FLAGS_164.gzip)    -o $@   -c $^ ;
    6969
    7070$(DIR_OBJ)/175.vpr_%.o          : $(SPECINT2000_PATH)/175.vpr/src/%.c
    7171                                @\
    7272                                $(ECHO) "Compilation        : $*.c";            \
    73                                 $(OR32_CC) $(OR32_CC_OPT) $(FLAGS_175.vpr)     -o $@   -c $^ ;
     73                                $($(TARGET)_CC) $($(TARGET)_CC_OPT) $(FLAGS_175.vpr)     -o $@   -c $^ ;
    7474
    7575$(DIR_OBJ)/176.gcc_%.o          : $(SPECINT2000_PATH)/176.gcc/src/%.c
    7676                                @\
    7777                                $(ECHO) "Compilation        : $*.c";            \
    78                                 $(OR32_CC) $(OR32_CC_OPT) $(FLAGS_176.gcc)     -o $@   -c $^ ;
     78                                $($(TARGET)_CC) $($(TARGET)_CC_OPT) $(FLAGS_176.gcc)     -o $@   -c $^ ;
    7979
    8080$(DIR_OBJ)/181.mcf_%.o          : $(SPECINT2000_PATH)/181.mcf/src/%.c
    8181                                @\
    8282                                $(ECHO) "Compilation        : $*.c";            \
    83                                 $(OR32_CC) $(OR32_CC_OPT) $(FLAGS_181.mcf)     -o $@   -c $^ ;
     83                                $($(TARGET)_CC) $($(TARGET)_CC_OPT) $(FLAGS_181.mcf)     -o $@   -c $^ ;
    8484
    8585$(DIR_OBJ)/186.crafty_%.o       : $(SPECINT2000_PATH)/186.crafty/src/%.c
    8686                                @\
    8787                                $(ECHO) "Compilation        : $*.c";            \
    88                                 $(OR32_CC) $(OR32_CC_OPT) $(FLAGS_186.crafty)     -o $@   -c $^ ;
     88                                $($(TARGET)_CC) $($(TARGET)_CC_OPT) $(FLAGS_186.crafty)     -o $@   -c $^ ;
    8989
    9090$(DIR_OBJ)/255.vortex_%.o       : $(SPECINT2000_PATH)/255.vortex/src/%.c
    9191                                @\
    9292                                $(ECHO) "Compilation        : $*.c";            \
    93                                 $(OR32_CC) $(OR32_CC_OPT) $(FLAGS_255.vortex)  -o $@   -c $^ ;
     93                                $($(TARGET)_CC) $($(TARGET)_CC_OPT) $(FLAGS_255.vortex)  -o $@   -c $^ ;
    9494
    9595$(DIR_OBJ)/197.parser_%.o       : $(SPECINT2000_PATH)/197.parser/src/%.c
    9696                                @\
    9797                                $(ECHO) "Compilation        : $*.c";            \
    98                                 $(OR32_CC) $(OR32_CC_OPT) $(FLAGS_197.parser)  -o $@   -c $^ ;
     98                                $($(TARGET)_CC) $($(TARGET)_CC_OPT) $(FLAGS_197.parser)  -o $@   -c $^ ;
    9999
    100100$(DIR_OBJ)/252.eon_%.o          : $(SPECINT2000_PATH)/252.eon/src/%.c
    101101                                @\
    102102                                $(ECHO) "Compilation        : $*.c";            \
    103                                 $(OR32_CC) $(OR32_CC_OPT) $(FLAGS_252.eon)  -o $@   -c $^ ;
     103                                $($(TARGET)_CC) $($(TARGET)_CC_OPT) $(FLAGS_252.eon)  -o $@   -c $^ ;
    104104
    105105$(DIR_OBJ)/253.perlbmk_%.o      : $(SPECINT2000_PATH)/253.perlbmk/src/%.c
    106106                                @\
    107107                                $(ECHO) "Compilation        : $*.c";            \
    108                                 $(OR32_CC) $(OR32_CC_OPT) $(FLAGS_253.perlbmk)  -o $@   -c $^ ;
     108                                $($(TARGET)_CC) $($(TARGET)_CC_OPT) $(FLAGS_253.perlbmk)  -o $@   -c $^ ;
    109109
    110110$(DIR_OBJ)/254.gap_%.o          : $(SPECINT2000_PATH)/254.gap/src/%.c
    111111                                @\
    112112                                $(ECHO) "Compilation        : $*.c";            \
    113                                 $(OR32_CC) $(OR32_CC_OPT) $(FLAGS_254.gap)  -o $@   -c $^ ;
     113                                $($(TARGET)_CC) $($(TARGET)_CC_OPT) $(FLAGS_254.gap)  -o $@   -c $^ ;
    114114
    115115$(DIR_OBJ)/256.bzip2_%.o        : $(SPECINT2000_PATH)/256.bzip2/src/%.c
    116116                                @\
    117117                                $(ECHO) "Compilation        : $*.c";            \
    118                                 $(OR32_CC) $(OR32_CC_OPT) $(FLAGS_256.bzip2)   -o $@   -c $^ ;
     118                                $($(TARGET)_CC) $($(TARGET)_CC_OPT) $(FLAGS_256.bzip2)   -o $@   -c $^ ;
    119119
    120120$(DIR_OBJ)/300.twolf_%.o        : $(SPECINT2000_PATH)/300.twolf/src/%.c
    121121                                @\
    122122                                $(ECHO) "Compilation        : $*.c";            \
    123                                 $(OR32_CC) $(OR32_CC_OPT) $(FLAGS_300.twolf)   -o $@   -c $^ ;
     123                                $($(TARGET)_CC) $($(TARGET)_CC_OPT) $(FLAGS_300.twolf)   -o $@   -c $^ ;
  • trunk/Softwares/Test/Test_065/Makefile

    r111 r137  
    1616DIR_SYS                         = $(DIR_SRC)/sys
    1717DIR_INC                         = $(DIR_SRC)/include
    18 DIR_LDSCRIPT                    = $(NEWLIB)/lib/
     18DIR_LDSCRIPT                    = $($(OS)_DIR_LDSCRIPT)
    1919
    20 INCDIR                          = $(NEWLIB_INCDIR) -I$(DIR_INC)
    21 LIBDIR                          = $(NEWLIB_LIBDIR)
    22 LIBNAME                         = $(NEWLIB_LIBNAME)
     20INCDIR                          = $($(OS)_INCDIR) -I$(DIR_INC)
     21LIBDIR                          = $($(OS)_LIBDIR)
     22LIBNAME                         = $($(OS)_LIBNAME)
    2323
    2424#-----[ Files ]-------------------------------------------------------------------
    25 OBJECTS                         =       $(NEWLIB)/lib/*.o \
     25OBJECTS                         =       $($(OS)_OBJECTS) \
    2626                                        $(patsubst $(DIR_ASM)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_ASM)/*.s))    \
    2727                                        $(patsubst $(DIR_SYS)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SYS)/*.s))    \
  • trunk/Softwares/Test/Test_066/Makefile

    r111 r137  
    1616DIR_SYS                         = $(DIR_SRC)/sys
    1717DIR_INC                         = $(DIR_SRC)/include
    18 DIR_LDSCRIPT                    = $(NEWLIB)/lib/
     18DIR_LDSCRIPT                    = $($(OS)_DIR_LDSCRIPT)
    1919
    20 INCDIR                          = $(NEWLIB_INCDIR) -I$(DIR_INC)
    21 LIBDIR                          = $(NEWLIB_LIBDIR)
    22 LIBNAME                         = $(NEWLIB_LIBNAME)
     20INCDIR                          = $($(OS)_INCDIR) -I$(DIR_INC)
     21LIBDIR                          = $($(OS)_LIBDIR)
     22LIBNAME                         = $($(OS)_LIBNAME)
    2323
    2424#-----[ Files ]-------------------------------------------------------------------
    25 OBJECTS                         =       $(NEWLIB)/lib/*.o \
     25OBJECTS                         =       $($(OS)_OBJECTS) \
    2626                                        $(patsubst $(DIR_ASM)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_ASM)/*.s))    \
    2727                                        $(patsubst $(DIR_SYS)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SYS)/*.s))    \
  • trunk/Softwares/Test/Test_067/Makefile

    r112 r137  
    1616DIR_SYS                         = $(DIR_SRC)/sys
    1717DIR_INC                         = $(DIR_SRC)/include
    18 DIR_LDSCRIPT                    = $(NEWLIB)/lib/
     18DIR_LDSCRIPT                    = $($(OS)_DIR_LDSCRIPT)
    1919
    20 INCDIR                          = $(NEWLIB_INCDIR) -I$(DIR_INC)
    21 LIBDIR                          = $(NEWLIB_LIBDIR)
    22 LIBNAME                         = $(NEWLIB_LIBNAME)
     20INCDIR                          = $($(OS)_INCDIR) -I$(DIR_INC)
     21LIBDIR                          = $($(OS)_LIBDIR)
     22LIBNAME                         = $($(OS)_LIBNAME)
    2323
    2424#-----[ Files ]-------------------------------------------------------------------
    25 OBJECTS                         =       $(NEWLIB)/lib/*.o \
     25OBJECTS                         =       $($(OS)_OBJECTS) \
    2626                                        $(patsubst $(DIR_ASM)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_ASM)/*.s))    \
    2727                                        $(patsubst $(DIR_SYS)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SYS)/*.s))    \
  • trunk/Softwares/Test/Test_068/Makefile

    r114 r137  
    1616DIR_SYS                         = $(DIR_SRC)/sys
    1717DIR_INC                         = $(DIR_SRC)/include
    18 DIR_LDSCRIPT                    = $(NEWLIB)/lib/
     18DIR_LDSCRIPT                    = $($(OS)_DIR_LDSCRIPT)
    1919
    20 INCDIR                          = $(NEWLIB_INCDIR) -I$(DIR_INC)
    21 LIBDIR                          = $(NEWLIB_LIBDIR)
    22 LIBNAME                         = $(NEWLIB_LIBNAME)
     20INCDIR                          = $($(OS)_INCDIR) -I$(DIR_INC)
     21LIBDIR                          = $($(OS)_LIBDIR)
     22LIBNAME                         = $($(OS)_LIBNAME)
    2323
    2424#-----[ Files ]-------------------------------------------------------------------
    25 OBJECTS                         =       $(NEWLIB)/lib/*.o \
     25OBJECTS                         =       $($(OS)_OBJECTS) \
    2626                                        $(patsubst $(DIR_ASM)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_ASM)/*.s))    \
    2727                                        $(patsubst $(DIR_SYS)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SYS)/*.s))    \
  • trunk/Softwares/Test/Test_069/Makefile

    r114 r137  
    1616DIR_SYS                         = $(DIR_SRC)/sys
    1717DIR_INC                         = $(DIR_SRC)/include
    18 DIR_LDSCRIPT                    = $(NEWLIB)/lib/
     18DIR_LDSCRIPT                    = $($(OS)_DIR_LDSCRIPT)
    1919
    20 INCDIR                          = $(NEWLIB_INCDIR) -I$(DIR_INC)
    21 LIBDIR                          = $(NEWLIB_LIBDIR)
    22 LIBNAME                         = $(NEWLIB_LIBNAME)
     20INCDIR                          = $($(OS)_INCDIR) -I$(DIR_INC)
     21LIBDIR                          = $($(OS)_LIBDIR)
     22LIBNAME                         = $($(OS)_LIBNAME)
    2323
    2424#-----[ Files ]-------------------------------------------------------------------
    25 OBJECTS                         =       $(NEWLIB)/lib/*.o \
     25OBJECTS                         =       $($(OS)_OBJECTS) \
    2626                                        $(patsubst $(DIR_ASM)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_ASM)/*.s))    \
    2727                                        $(patsubst $(DIR_SYS)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SYS)/*.s))    \
  • trunk/Softwares/Test/Test_070/Makefile

    r114 r137  
    1616DIR_SYS                         = $(DIR_SRC)/sys
    1717DIR_INC                         = $(DIR_SRC)/include
    18 DIR_LDSCRIPT                    = $(NEWLIB)/lib/
     18DIR_LDSCRIPT                    = $($(OS)_DIR_LDSCRIPT)
    1919
    20 INCDIR                          = $(NEWLIB_INCDIR) -I$(DIR_INC)
    21 LIBDIR                          = $(NEWLIB_LIBDIR)
    22 LIBNAME                         = $(NEWLIB_LIBNAME)
     20INCDIR                          = $($(OS)_INCDIR) -I$(DIR_INC)
     21LIBDIR                          = $($(OS)_LIBDIR)
     22LIBNAME                         = $($(OS)_LIBNAME)
    2323
    2424#-----[ Files ]-------------------------------------------------------------------
    25 OBJECTS                         =       $(NEWLIB)/lib/*.o \
     25OBJECTS                         =       $($(OS)_OBJECTS) \
    2626                                        $(patsubst $(DIR_ASM)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_ASM)/*.s))    \
    2727                                        $(patsubst $(DIR_SYS)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SYS)/*.s))    \
  • trunk/Softwares/Test/Test_073/Makefile

    r119 r137  
    1616DIR_SYS                         = $(DIR_SRC)/sys
    1717DIR_INC                         = $(DIR_SRC)/include
    18 DIR_LDSCRIPT                    = $(NEWLIB)/lib/
     18DIR_LDSCRIPT                    = $($(OS)_DIR_LDSCRIPT)
    1919
    20 INCDIR                          = $(NEWLIB_INCDIR) -I$(DIR_INC)
    21 LIBDIR                          = $(NEWLIB_LIBDIR)
    22 LIBNAME                         = $(NEWLIB_LIBNAME)
     20INCDIR                          = $($(OS)_INCDIR) -I$(DIR_INC)
     21LIBDIR                          = $($(OS)_LIBDIR)
     22LIBNAME                         = $($(OS)_LIBNAME)
    2323
    2424#-----[ Files ]-------------------------------------------------------------------
    25 OBJECTS                         =       $(NEWLIB)/lib/*.o \
     25OBJECTS                         =       $($(OS)_OBJECTS) \
    2626                                        $(patsubst $(DIR_ASM)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_ASM)/*.s))    \
    2727                                        $(patsubst $(DIR_SYS)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SYS)/*.s))    \
  • trunk/Softwares/Test/Test_x000/Makefile

    r117 r137  
    1616DIR_SYS                         = $(DIR_SRC)/sys
    1717DIR_INC                         = $(DIR_SRC)/include
    18 DIR_LDSCRIPT                    = $(NEWLIB)/lib/
     18DIR_LDSCRIPT                    = $($(OS)_DIR_LDSCRIPT)
    1919
    20 INCDIR                          = $(NEWLIB_INCDIR) -I$(DIR_INC)
    21 LIBDIR                          = $(NEWLIB_LIBDIR)
    22 LIBNAME                         = $(NEWLIB_LIBNAME)
     20INCDIR                          = $($(OS)_INCDIR) -I$(DIR_INC)
     21LIBDIR                          = $($(OS)_LIBDIR)
     22LIBNAME                         = $($(OS)_LIBNAME)
    2323
    2424#-----[ Files ]-------------------------------------------------------------------
    25 OBJECTS                         =       $(NEWLIB)/lib/*.o \
     25OBJECTS                         =       $($(OS)_OBJECTS) \
    2626                                        $(patsubst $(DIR_ASM)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_ASM)/*.s))    \
    2727                                        $(patsubst $(DIR_SYS)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SYS)/*.s))    \
  • trunk/Softwares/Test/Test_x001/Makefile

    r117 r137  
    1616DIR_SYS                         = $(DIR_SRC)/sys
    1717DIR_INC                         = $(DIR_SRC)/include
    18 DIR_LDSCRIPT                    = $(NEWLIB)/lib/
     18DIR_LDSCRIPT                    = $($(OS)_DIR_LDSCRIPT)
    1919
    20 INCDIR                          = $(NEWLIB_INCDIR) -I$(DIR_INC)
    21 LIBDIR                          = $(NEWLIB_LIBDIR)
    22 LIBNAME                         = $(NEWLIB_LIBNAME)
     20INCDIR                          = $($(OS)_INCDIR) -I$(DIR_INC)
     21LIBDIR                          = $($(OS)_LIBDIR)
     22LIBNAME                         = $($(OS)_LIBNAME)
    2323
    2424#-----[ Files ]-------------------------------------------------------------------
    25 OBJECTS                         =       $(NEWLIB)/lib/*.o \
     25OBJECTS                         =       $($(OS)_OBJECTS) \
    2626                                        $(patsubst $(DIR_ASM)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_ASM)/*.s))    \
    2727                                        $(patsubst $(DIR_SYS)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SYS)/*.s))    \
  • trunk/Softwares/Test/Test_x002/Makefile

    r117 r137  
    1616DIR_SYS                         = $(DIR_SRC)/sys
    1717DIR_INC                         = $(DIR_SRC)/include
    18 DIR_LDSCRIPT                    = $(NEWLIB)/lib/
     18DIR_LDSCRIPT                    = $($(OS)_DIR_LDSCRIPT)
    1919
    20 INCDIR                          = $(NEWLIB_INCDIR) -I$(DIR_INC)
    21 LIBDIR                          = $(NEWLIB_LIBDIR)
    22 LIBNAME                         = $(NEWLIB_LIBNAME)
     20INCDIR                          = $($(OS)_INCDIR) -I$(DIR_INC)
     21LIBDIR                          = $($(OS)_LIBDIR)
     22LIBNAME                         = $($(OS)_LIBNAME)
    2323
    2424#-----[ Files ]-------------------------------------------------------------------
    25 OBJECTS                         =       $(NEWLIB)/lib/*.o \
     25OBJECTS                         =       $($(OS)_OBJECTS) \
    2626                                        $(patsubst $(DIR_ASM)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_ASM)/*.s))    \
    2727                                        $(patsubst $(DIR_SYS)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SYS)/*.s))    \
  • trunk/Softwares/Test/Test_x003/Makefile

    r117 r137  
    1616DIR_SYS                         = $(DIR_SRC)/sys
    1717DIR_INC                         = $(DIR_SRC)/include
    18 DIR_LDSCRIPT                    = $(NEWLIB)/lib/
     18DIR_LDSCRIPT                    = $($(OS)_DIR_LDSCRIPT)
    1919
    20 INCDIR                          = $(NEWLIB_INCDIR) -I$(DIR_INC)
    21 LIBDIR                          = $(NEWLIB_LIBDIR)
    22 LIBNAME                         = $(NEWLIB_LIBNAME)
     20INCDIR                          = $($(OS)_INCDIR) -I$(DIR_INC)
     21LIBDIR                          = $($(OS)_LIBDIR)
     22LIBNAME                         = $($(OS)_LIBNAME)
    2323
    2424#-----[ Files ]-------------------------------------------------------------------
    25 OBJECTS                         =       $(NEWLIB)/lib/*.o \
     25OBJECTS                         =       $($(OS)_OBJECTS) \
    2626                                        $(patsubst $(DIR_ASM)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_ASM)/*.s))    \
    2727                                        $(patsubst $(DIR_SYS)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SYS)/*.s))    \
  • trunk/Softwares/Test/Test_x004/Makefile

    r117 r137  
    1616DIR_SYS                         = $(DIR_SRC)/sys
    1717DIR_INC                         = $(DIR_SRC)/include
    18 DIR_LDSCRIPT                    = $(NEWLIB)/lib/
     18DIR_LDSCRIPT                    = $($(OS)_DIR_LDSCRIPT)
    1919
    20 INCDIR                          = $(NEWLIB_INCDIR) -I$(DIR_INC)
    21 LIBDIR                          = $(NEWLIB_LIBDIR)
    22 LIBNAME                         = $(NEWLIB_LIBNAME)
     20INCDIR                          = $($(OS)_INCDIR) -I$(DIR_INC)
     21LIBDIR                          = $($(OS)_LIBDIR)
     22LIBNAME                         = $($(OS)_LIBNAME)
    2323
    2424#-----[ Files ]-------------------------------------------------------------------
    25 OBJECTS                         =       $(NEWLIB)/lib/*.o \
     25OBJECTS                         =       $($(OS)_OBJECTS) \
    2626                                        $(patsubst $(DIR_ASM)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_ASM)/*.s))    \
    2727                                        $(patsubst $(DIR_SYS)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SYS)/*.s))    \
  • trunk/Softwares/Test/Test_x005/Makefile

    r117 r137  
    1616DIR_SYS                         = $(DIR_SRC)/sys
    1717DIR_INC                         = $(DIR_SRC)/include
    18 DIR_LDSCRIPT                    = $(NEWLIB)/lib/
     18DIR_LDSCRIPT                    = $($(OS)_DIR_LDSCRIPT)
    1919
    20 INCDIR                          = $(NEWLIB_INCDIR) -I$(DIR_INC)
    21 LIBDIR                          = $(NEWLIB_LIBDIR)
    22 LIBNAME                         = $(NEWLIB_LIBNAME)
     20INCDIR                          = $($(OS)_INCDIR) -I$(DIR_INC)
     21LIBDIR                          = $($(OS)_LIBDIR)
     22LIBNAME                         = $($(OS)_LIBNAME)
    2323
    2424#-----[ Files ]-------------------------------------------------------------------
    25 OBJECTS                         =       $(NEWLIB)/lib/*.o \
     25OBJECTS                         =       $($(OS)_OBJECTS) \
    2626                                        $(patsubst $(DIR_ASM)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_ASM)/*.s))    \
    2727                                        $(patsubst $(DIR_SYS)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SYS)/*.s))    \
  • trunk/Softwares/Test/Test_x006/Makefile

    r117 r137  
    1616DIR_SYS                         = $(DIR_SRC)/sys
    1717DIR_INC                         = $(DIR_SRC)/include
    18 DIR_LDSCRIPT                    = $(NEWLIB)/lib/
     18DIR_LDSCRIPT                    = $($(OS)_DIR_LDSCRIPT)
    1919
    20 INCDIR                          = $(NEWLIB_INCDIR) -I$(DIR_INC)
    21 LIBDIR                          = $(NEWLIB_LIBDIR)
    22 LIBNAME                         = $(NEWLIB_LIBNAME)
     20INCDIR                          = $($(OS)_INCDIR) -I$(DIR_INC)
     21LIBDIR                          = $($(OS)_LIBDIR)
     22LIBNAME                         = $($(OS)_LIBNAME)
    2323
    2424#-----[ Files ]-------------------------------------------------------------------
    25 OBJECTS                         =       $(NEWLIB)/lib/*.o \
     25OBJECTS                         =       $($(OS)_OBJECTS) \
    2626                                        $(patsubst $(DIR_ASM)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_ASM)/*.s))    \
    2727                                        $(patsubst $(DIR_SYS)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SYS)/*.s))    \
Note: See TracChangeset for help on using the changeset viewer.