Ignore:
Timestamp:
Jun 1, 2016, 10:25:43 AM (9 years ago)
Author:
meunier
Message:

In rosenfeld:

  • Updated nrio0, nrio1, nrio2, nrio1f, nrio2f, nrio1x, nrbool1, nrbool2 and nralloc1 in the nrc2 lib in order to use macro-typed functions
  • Updated the simulation script to include performance evaluation with random images, and a script to generate graphs
  • Updated the clock.h to use 64-bit integers, which potentially breaks the printing on the giet
File:
1 edited

Legend:

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

    r821 r822  
    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, 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, nrio0.c, nrio1.c, nrio1x.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
     10FILE := $(FILE), nrio1f.c, nrio1xf.c, nrio2f.c # comment if giet
    1011
    1112
     
    1617OBJ_PATH = obj
    1718INC_PATH = include
     19PRODUCT = libnrc2x.a
     20
     21all: checktarget $(PRODUCT)
    1822
    1923ifeq ($(TARGET),giet-vm)
     
    3640CFLAGSCPU := -mips32 -EL -G0 -mhard-float
    3741
     42checktarget:
     43        @if [ -f $(PRODUCT) ] && objdump -f $(PRODUCT) | grep "little" > /dev/null ; then \
     44                echo -ne "" ; \
     45        else \
     46                rm -f $(OBJS) $(PRODUCT) ;\
     47        fi
    3848endif
    3949
     
    5060C_CONFIG_FLAGS = -DCLI
    5161C_INC_FLAGS = -I$(INC_PATH)
     62
     63checktarget:
     64        @if [ -f $(PRODUCT) ] && objdump -f  $(PRODUCT) | grep "86" > /dev/null ; then \
     65                echo -ne "" ; \
     66        else \
     67                rm -f $(OBJS) $(PRODUCT) ;\
     68        fi
    5269
    5370endif
     
    6683
    6784
    68 PRODUCT = libnrc2x.a
    6985
    7086OBJS = $(addprefix $(OBJ_PATH)/, $(addsuffix .o, $(basename $(FILE))))
    7187
    72 all: $(PRODUCT)
    7388
    74 $(OBJ_PATH)/%.o: $(SRC_PATH)/%.c
     89$(OBJ_PATH)/%.o: $(SRC_PATH)/%.c $(INC_PATH)/*.h
    7590        $(CC) -c $(CFLAGS) -o $@ $<
    7691
Note: See TracChangeset for help on using the changeset viewer.