Ignore:
Timestamp:
May 6, 2016, 3:06:29 PM (8 years ago)
Author:
meunier
Message:
  • Added several versions of rosenfeld: { SLOW, FAST } x { FEATURES, NO_FEATURES }
  • Added native linux compilation support
  • Added a script to check results natively
  • Started to refactor nrc code
File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/applications/rosenfeld/nrc2/Makefile

    r798 r821  
    77
    88# -- File list ----------
    9 FILE = nralloc1.c, nralloc2.c, nralloc2x.c, nrarith0.c, nrarith1.c, nrarith2.c, nrarith2x.c, nrbool1.c, nrbool2.c, nrhisto.c, nrio0.c, nrio1.c, nrio2.c, nrkernel.c, nrlinalg.c, nrlut.c, nrmem1.c, nrmem1x.c, nrmem2.c, nrmem2x.c, nrset1.c, nrset2.c, nrset2x.c, nrsort1.c, nrsort2.c, nrwrap1.c, nrwrap2.c
     9FILE = nralloc1.c, nralloc2.c, nralloc2x.c, nrarith0.c, nrarith1.c, nrarith2.c, nrarith2x.c, nrbool1.c, nrbool2.c, nrhisto.c, nrio0.c, nrio1.c, nrio2.c, nrlinalg.c, nrlut.c, nrmem1.c, nrmem1x.c, nrmem2.c, nrmem2x.c, nrset1.c, nrset2.c, nrset2x.c, nrsort1.c, nrsort2.c, nrwrap1.c, nrwrap2.c
    1010
    1111
     12TARGET ?= linux
    1213
    1314# -- Paths ----------
     
    1516OBJ_PATH = obj
    1617INC_PATH = include
     18
     19ifeq ($(TARGET),giet-vm)
     20
     21CC      = mipsel-unknown-elf-gcc
     22AR      = mipsel-unknown-elf-ar
     23RANLIB  = mipsel-unknown-elf-ranlib
     24AS      = mipsel-unknown-elf-as
     25OD      = mipsel-unknown-elf-objdump
     26OCPY    = mipsel-unknown-elf-objcopy
     27LD      = mipsel-unknown-elf-ld
     28NM      = mipsel-unknown-elf-nm
    1729
    1830
     
    2234C_CONFIG_FLAGS = -DCLI
    2335C_INC_FLAGS = -I$(INC_PATH) -I../../.. -I../../../giet_libs
     36CFLAGSCPU := -mips32 -EL -G0 -mhard-float
     37
     38endif
     39
     40ifeq ($(TARGET),linux)
     41
     42CC = gcc
     43LD = gcc
     44AR = ar
     45RANLIB = ranlib
     46
     47C_DEBUG_FLAGS = -O0
     48C_OPTIMISATION_FLAGS = -std=c99 -O2 -fstrict-aliasing
     49C_OS_FLAGS = -DGTODay -DTARGET_OS=LINUX
     50C_CONFIG_FLAGS = -DCLI
     51C_INC_FLAGS = -I$(INC_PATH)
     52
     53endif
     54
    2455
    2556# -- Flags ----------
     
    3061# CC tools and parameters
    3162#------------------------------------------------------------------------------
    32 CC      = mipsel-unknown-elf-gcc
    33 AR      = mipsel-unknown-elf-ar -cr
    34 RANLIB  = mipsel-unknown-elf-ranlib
    35 AS      = mipsel-unknown-elf-as
    36 OD      = mipsel-unknown-elf-objdump
    37 OCPY    = mipsel-unknown-elf-objcopy
    38 LD      = mipsel-unknown-elf-ld
    39 NM      = mipsel-unknown-elf-nm
    4063
    4164CFLAGSW := -Wredundant-decls -Wdisabled-optimization -Winline -Wpointer-arith -Wsign-compare -Wendif-labels
    42 CFLAGSCPU := -mips32 -EL -G0 -mhard-float
    4365CFLAGS := $(CFLAGS) -g -Wall -fomit-frame-pointer $(CFLAGSW) $(CFLAGSCPU) -fno-builtin -ffreestanding
    4466
     
    5577
    5678$(PRODUCT): $(OBJS)
    57         $(AR) $@ $^
     79        $(AR) -cr $@ $^
    5880        $(RANLIB) $@
    5981
Note: See TracChangeset for help on using the changeset viewer.