Commit 79360b8a authored by jhugues's avatar jhugues

* Use gcc instead of ld for the LD macro



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/po-hi-c@6274 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent 5037f229
......@@ -5,10 +5,10 @@
## To use and compile examples for DSLinux, get the
## toolchain at http://www.dslinux.org.
CC = ucfront-gcc arm-linux-elf-gcc
CC = ucfront-gcc arm-linux-elf-gcc
CPP = ucfront-gcc arm-linux-elf-g++
TARGET_CFLAGS = -O2 -g -fomit-frame-pointer -fno-common -fno-builtin -Wall -mswp-byte-writes -DCONFIG_NDS_ROM8BIT -mcpu=arm946e-s -mfpu=fpe3 -DEMBED -D__PIC__ -fpic -msingle-pic-base -Dlinux -D__linux__ -Dunix -D__uClinux__ -DPOSIX=1 $(GCC_GENERIC_FLAGS)
LD = arm-linux-elf-ld
TARGET_CFLAGS = -O2 -g -fomit-frame-pointer -fno-common -fno-builtin -Wall -mswp-byte-writes -DCONFIG_NDS_ROM8BIT -mcpu=arm946e-s -mfpu=fpe3 -DEMBED -D__PIC__ -fpic -msingle-pic-base -Dlinux -D__linux__ -Dunix -D__uClinux__ -DPOSIX=1 $(GCC_GENERIC_FLAGS)
LD = arm-linux-elf-gcc
TARGET_LDFLAGS = -Wl,-elf2flt -D__PIC__ -fpic -msingle-pic-base -mswp-byte-writes -lpthread -lrt
target-clean:
......
......@@ -9,7 +9,7 @@
CC = arm-linux-gcc
CPP = arm-linux-g++
TARGET_CFLAGS = -DPOSIX=1 $(GCC_GENERIC_FLAGS)
LD = arm-linux-ld
LD = arm-linux-gcc
TARGET_LDFLAGS = -lpthread -lrt
target-clean:
......
......@@ -2,7 +2,7 @@ TARGET_CFLAGS = -DPOSIX -D_POSIX_SOURCE -D_GNU_SOURCE $(GCC_GENERIC_FLAGS) -D_
TARGET_LDFLAGS = -lpthread -lrt -L$(RUNTIME_PATH)/libs/linux32/ -L$(RUNTIME_PATH)/libs/linux64/ -llua -lm
SIMULINK_LDFLAGS = -lm
CC = gcc
LD = ld
LD = gcc
GPROF = gprof
......
......@@ -11,16 +11,16 @@ CPP = arm-rtems4.10-g++
GPROF = arm-rtems4.10-gprof
TARGET_SOURCES =
TARGET_SOURCES =
#TARGET_TRANSPORT_SOURCES = $(RUNTIME_PATH)/config/leon-rtems/config.c
TARGET_TRANSPORT_SOURCES =
TARGET_TRANSPORT_SOURCES =
TARGET_CFLAGS = -DRTEMS_PURE -DGUMSTIX_RTEMS -mstructure-size-boundary=8 -mcpu=xscale -mfpu=vfp -mfloat-abi=soft $(GCC_GENERIC_FLAGS)
TARGET_INCLUDE =
TARGET_INCLUDE =
LD = arm-rtems4.10-gcc
TARGET_LDFLAGS =
LD = arm-rtems4.10-ld
TARGET_LDFLAGS =
target-clean:
rm -f $(BINARY).ralf
rm -f flash.img
......@@ -54,5 +54,3 @@ define bsp-post-link
$(SIZE) $@
cp $@ $(basename $@).ralf
endef
......@@ -2,7 +2,7 @@ TARGET_CFLAGS = -DPOSIX -m32 -D_POSIX_SOURCE -D_GNU_SOURCE $(GCC_GENERIC_FL
TARGET_LDFLAGS = -lpthread -lrt -m32 -L$(RUNTIME_PATH)/libs/linux32/ -llua -lm
SIMULINK_LDFLAGS = -lm
CC = gcc
LD = ld
LD = gcc
GPROF = gprof
USE_USB_BRICK=$(shell grep __PO_HI_NEED_DRIVER_SPACEWIRE_USB_BRICK deployment.h 2>/dev/null|wc -l)
......
......@@ -12,7 +12,7 @@ TARGET_LDFLAGS += -L$(RUNTIME_PATH)/libs/linux32/ -llua -lm
SIMULINK_LDFLAGS = -lm
CC = gcc
LD = ld
LD = gcc
GPROF = gprof
......
......@@ -12,7 +12,7 @@ TARGET_LDFLAGS += -L$(RUNTIME_PATH)/libs/linux32/ -llua -lm
SIMULINK_LDFLAGS = -lm
CC = gcc
LD = ld
LD = gcc
GPROF = gprof
......
......@@ -2,7 +2,7 @@ TARGET_CFLAGS = -DPOSIX -m64 -D_POSIX_SOURCE -D_GNU_SOURCE $(GCC_GENERIC_FLAGS
TARGET_LDFLAGS = -lpthread -lrt -m64 -L$(RUNTIME_PATH)/libs/linux64/ -llua -lm
SIMULINK_LDFLAGS = -lm
CC = gcc
LD = ld
LD = gcc
GPROF = gprof
......
......@@ -2,7 +2,7 @@ TARGET_CFLAGS = -D_WIN32 -D_GNU_SOURCE $(GCC_GENERIC_FLAGS) -std=c99 -m32
TARGET_LDFLAGS = -m32
SIMULINK_LDFLAGS = -lm
CC = i686-w64-mingw32-gcc
LD = i686-w64-mingw32-ld
LD = i686-w64-mingw32-gcc
GPROF = gprof
ifdef USE_GPROF
......
......@@ -9,16 +9,16 @@ CPP = i386-linux-cpp
GPROF =
TARGET_SOURCES =
TARGET_TRANSPORT_SOURCES =
TARGET_SOURCES =
TARGET_TRANSPORT_SOURCES =
TARGET_CFLAGS = -I$(LINUXTASTE_PATH)/output/target/usr/local/include -DPOSIX -D_POSIX_SOURCE -D_GNU_SOURCE -D__PO_HI_PLATFORM_LINUXTASTE $(GCC_GENERIC_FLAGS)
TARGET_INCLUDE =
LD = i386-linux-ld
TARGET_LDFLAGS = -L$(LINUXTASTE_PATH)/output/target/usr/local/lib -lrt -lpthread -lcomedi -lm
LD = i386-linux-gcc
TARGET_LDFLAGS = -L$(LINUXTASTE_PATH)/output/target/usr/local/lib -lrt -lpthread -lcomedi -lm
target-clean:
target-objects:
......@@ -21,15 +21,15 @@ CPP = i386-rtems4.8-g++
GPROF = i386-rtems4.8-gprof
TARGET_SOURCES =
TARGET_TRANSPORT_SOURCES =
TARGET_SOURCES =
TARGET_TRANSPORT_SOURCES =
TARGET_CFLAGS = -DRTEMS_PURE -DX86_RTEMS $(GCC_GENERIC_FLAGS)
TARGET_INCLUDE = -I $(RUNTIME_PATH)/config/
LD = i386-rtems4.8-ld
LD = i386-rtems4.8-gcc
TARGET_LDFLAGS = -lrtemsbsp -lc -lm
target-clean:
-include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
......@@ -53,5 +53,3 @@ target-objects:
else
target-objects:
endif
......@@ -21,15 +21,15 @@ CPP = i386-rtems4.8-g++
GPROF = i386-rtems4.8-gprof
TARGET_SOURCES =
TARGET_TRANSPORT_SOURCES =
TARGET_SOURCES =
TARGET_TRANSPORT_SOURCES =
TARGET_CFLAGS = -DRTEMS_POSIX -DX86_RTEMS $(GCC_GENERIC_FLAGS)
TARGET_INCLUDE = -I $(RUNTIME_PATH)/config/
LD = i386-rtems4.8-ld
LD = i386-rtems4.8-gcc
TARGET_LDFLAGS = -lrtemsbsp -lc -lm
target-clean:
-include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
......@@ -53,5 +53,3 @@ target-objects:
else
target-objects:
endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment