source: soft/giet_vm/applications/rosenfeld/nrc2/Makefile @ 811

Last change on this file since 811 was 798, checked in by meunier, 9 years ago
  • Bug fixes in Rosenfeld
File size: 1.8 KB
RevLine 
[772]1# ------------------ #
2# -- NRC Makefile -- #
3# ------------------ #
4
5# Copyright (c) 2000-2007 Lionel Lacassagne
6# with a little help of Stephane Piskorski and Joel Falcou
7
8# -- File list ----------
[798]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, 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
[772]10
11
12
13# -- Paths ----------
14SRC_PATH = src
15OBJ_PATH = obj
16INC_PATH = include
17
18
19C_DEBUG_FLAGS = -O0
20C_OPTIMISATION_FLAGS = -std=c99 -O2 -fstrict-aliasing
[798]21C_OS_FLAGS = -DGTODay -DTARGET_OS=GIETVM
[772]22C_CONFIG_FLAGS = -DCLI
23C_INC_FLAGS = -I$(INC_PATH) -I../../.. -I../../../giet_libs
24
25# -- Flags ----------
26CFLAGS = $(C_OPTIMISATION_FLAGS) $(C_OS_FLAGS) $(C_INC_FLAGS)
27
28
29#------------------------------------------------------------------------------
30# CC tools and parameters
31#------------------------------------------------------------------------------
32CC      = mipsel-unknown-elf-gcc
33AR      = mipsel-unknown-elf-ar -cr
[793]34RANLIB  = mipsel-unknown-elf-ranlib
[772]35AS      = mipsel-unknown-elf-as
36OD      = mipsel-unknown-elf-objdump
37OCPY    = mipsel-unknown-elf-objcopy
38LD      = mipsel-unknown-elf-ld
39NM      = mipsel-unknown-elf-nm
40
41CFLAGSW := -Wredundant-decls -Wdisabled-optimization -Winline -Wpointer-arith -Wsign-compare -Wendif-labels
42CFLAGSCPU := -mips32 -EL -G0 -mhard-float
[798]43CFLAGS := $(CFLAGS) -g -Wall -fomit-frame-pointer $(CFLAGSW) $(CFLAGSCPU) -fno-builtin -ffreestanding
[772]44
45
46PRODUCT = libnrc2x.a
47
48OBJS = $(addprefix $(OBJ_PATH)/, $(addsuffix .o, $(basename $(FILE))))
49
50all: $(PRODUCT)
51
52$(OBJ_PATH)/%.o: $(SRC_PATH)/%.c
53        $(CC) -c $(CFLAGS) -o $@ $<
54
55
56$(PRODUCT): $(OBJS)
57        $(AR) $@ $^
[793]58        $(RANLIB) $@ 
[772]59
60clean:
61        rm -f $(OBJS)
62        rm -f $(PRODUCT)
63
Note: See TracBrowser for help on using the repository browser.