Ignore:
Timestamp:
Mar 2, 2016, 3:08:27 PM (9 years ago)
Author:
meunier
Message:
  • Bug fixes in Rosenfeld
File:
1 edited

Legend:

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

    r791 r798  
    66INC_PATH = include
    77
     8TARGET ?= linux
     9#
     10# -- Config ----------
     11
     12ifeq ($(TARGET),giet-vm)
     13
     14C_DEBUG_FLAGS = -O0
     15C_OPTIM_FLAGS = -std=c99 -O2 -fstrict-aliasing
     16C_OS_FLAGS = -DGTODay -DTARGET_OS=GIETVM
     17C_CONFIG_FLAGS = -DCLI
     18C_INC_FLAGS = -I$(INC_PATH) -Inrc2/include -I../.. -I../../giet_libs -I../../giet_xml/
     19CFLAGSCPU := -mips32 -EL -G0 -mhard-float -fomit-frame-pointer -fno-builtin -ffreestanding
     20
     21LDFLAGS := -Lnrc2 -L../../build/libs -Trosenfeld.ld --start-group -lnrc2x -luser -lmath --end-group
     22
     23endif
     24
     25ifeq ($(TARGET),linux)
     26
     27CC = gcc
     28LD = gcc
    829
    930# -- Config ----------
    1031C_DEBUG_FLAGS = -O0
    1132C_OPTIM_FLAGS = -std=c99 -O2 -fstrict-aliasing
    12 C_OS_FLAGS = -DGTODay
     33C_OS_FLAGS = -DGTODay -DTARGET_OS=LINUX
    1334C_CONFIG_FLAGS = -DCLI
    14 C_INC_FLAGS = -I$(INC_PATH) -Inrc2/include -I../.. -I../../giet_libs -I../../giet_xml/
     35C_INC_FLAGS = -I$(INC_PATH) -Inrc2/include
     36CFLAGSCPU =
     37
     38LDFLAGS := -Lnrc2 -Wl,--start-group -lnrc2x -lm -Wl,--end-group
     39
     40endif
     41
     42
     43
     44CFLAGSW := -Wredundant-decls -Wdisabled-optimization -Winline -Wpointer-arith -Wsign-compare -Wendif-labels -Wno-unused-function
    1545
    1646# -- Flags ----------
    1747#CFLAGS = $(C_DEBUG_FLAGS) $(C_OS_FLAGS) $(C_INC_FLAGS) $(C_CONFIG_FLAGS)
    18 CFLAGS = $(C_OPTIM_FLAGS) $(C_OS_FLAGS) $(C_INC_FLAGS) $(C_CONFIG_FLAGS)
     48CFLAGS = $(C_OPTIM_FLAGS) $(C_OS_FLAGS) $(C_INC_FLAGS) $(C_CONFIG_FLAGS) -g -Wall $(CFLAGSW) $(CFLAGSCPU)
    1949
    2050
     
    2858
    2959
    30 CFLAGSW := -Wredundant-decls -Wdisabled-optimization -Winline -Wpointer-arith -Wsign-compare -Wendif-labels
    31 CFLAGSCPU := -mips32 -EL -G0 -mhard-float
    32 CFLAGS := $(CFLAGS) -g -Wall -fomit-frame-pointer $(CFLAGSW) $(CFLAGSCPU) -I$(INC_PATH) -fno-builtin -ffreestanding
    3360
    34 LDFLAGS := -Lnrc2 -L../../build/libs -Trosenfeld.ld --start-group -lnrc2x -luser -lmath --end-group
    3561
    3662
Note: See TracChangeset for help on using the changeset viewer.