Changeset 822 for soft/giet_vm/applications/rosenfeld/nrc2/Makefile
- Timestamp:
- Jun 1, 2016, 10:25:43 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/rosenfeld/nrc2/Makefile
r821 r822 7 7 8 8 # -- 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 9 FILE = 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 10 FILE := $(FILE), nrio1f.c, nrio1xf.c, nrio2f.c # comment if giet 10 11 11 12 … … 16 17 OBJ_PATH = obj 17 18 INC_PATH = include 19 PRODUCT = libnrc2x.a 20 21 all: checktarget $(PRODUCT) 18 22 19 23 ifeq ($(TARGET),giet-vm) … … 36 40 CFLAGSCPU := -mips32 -EL -G0 -mhard-float 37 41 42 checktarget: 43 @if [ -f $(PRODUCT) ] && objdump -f $(PRODUCT) | grep "little" > /dev/null ; then \ 44 echo -ne "" ; \ 45 else \ 46 rm -f $(OBJS) $(PRODUCT) ;\ 47 fi 38 48 endif 39 49 … … 50 60 C_CONFIG_FLAGS = -DCLI 51 61 C_INC_FLAGS = -I$(INC_PATH) 62 63 checktarget: 64 @if [ -f $(PRODUCT) ] && objdump -f $(PRODUCT) | grep "86" > /dev/null ; then \ 65 echo -ne "" ; \ 66 else \ 67 rm -f $(OBJS) $(PRODUCT) ;\ 68 fi 52 69 53 70 endif … … 66 83 67 84 68 PRODUCT = libnrc2x.a69 85 70 86 OBJS = $(addprefix $(OBJ_PATH)/, $(addsuffix .o, $(basename $(FILE)))) 71 87 72 all: $(PRODUCT)73 88 74 $(OBJ_PATH)/%.o: $(SRC_PATH)/%.c 89 $(OBJ_PATH)/%.o: $(SRC_PATH)/%.c $(INC_PATH)/*.h 75 90 $(CC) -c $(CFLAGS) -o $@ $< 76 91
Note: See TracChangeset
for help on using the changeset viewer.