This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Can't compile server_test.c
- To: "'Gary Thomas'" <gthomas at cambridge dot redhat dot com>
- Subject: RE: [ECOS] Can't compile server_test.c
- From: "Trenton D. Adams" <tadams at extremeeng dot com>
- Date: Mon, 18 Jun 2001 14:39:59 -0600
- Cc: "'eCos'" <ecos-discuss at sources dot redhat dot com>
- Organization: Extreme Engineering
That didn't work either.
Sorry, I neglected to post the Makefile that I used.
# You must also set XCC to the name of your cross-compiler, including
any
# options it needs.
# Uncomment one of the below, or invoke make with the name of the
compiler
# you want, e.g.:
# make XCC="sparclite-elf-gcc -mcpu=sparclite -msoft-float"
# You can also set XCC in your environment
#XCC = mn10300-elf-gcc # MN10300/AM31
#XCC = mn10300-elf-gcc -mam33 # AM33
#XCC = mips-tx39-elf-gcc # MIPS TX39
#XCC = mips64vr4300-elf-gcc -mgp32 -EB # MIPS VR4300
#XCC = sh-elf-gcc -m3 -mb # SH3 BIG-ENDIAN
#XCC = sh-elf-gcc -m3 -ml # SH3
LITTLE-ENDIAN
#XCC = powerpc-eabi-gcc -msoft-float -mcpu=860 # POWERPC
#XCC = arm-elf-gcc -mcpu=arm7di # AEB
#XCC = arm-elf-gcc -mcpu=arm7tdmi # PID7
#XCC = arm-elf-gcc -mcpu=arm7tdmi -mbig-endian # PID7 BIG-ENDIAN
#XCC = arm-elf-gcc -mcpu=arm9 # PID9
#XCC = thumb-elf-gcc -mthumb-interwork # PID7 THUMB
#XCC = thumb-elf-gcc -mthumb-interwork -mbig-endian # PID7 THUMB
BIG-ENDIAN
#XCC = arm-elf-gcc -mcpu=arm710c -D__CL7111 # CIRRUS LOGIC
CL7111
XCC = arm-elf-gcc -mcpu=arm7tdmi -D__EDB7211 # CIRRUS LOGIC
EDB7211
#XCC = arm-elf-gcc -mcpu=arm7tdmi -D__EDB7209 # CIRRUS LOGIC
EDB7209
#XCC = arm-elf-gcc -mcpu=arm7tdmi -D__EDB7209 -D__EDB7212 # CIRRUS LOGIC
EDB7212
#XCC = arm-elf-gcc -mcpu=arm7tdmi # ARM COGENT
CMA230
#XCC = arm-elf-gcc -mcpu=arm7tdmi -D__CMA222 # ARM COGENT
CMA222
#XCC = thumb-elf-gcc # ARM COGENT
CMA230 THUMB
#XCC = arm-elf-gcc -mcpu=strongarm # EBSA285
#XCC = sparclite-elf-gcc -msoft-float -mcpu=sparclite # SPARCLITE
#XCC = i686-pc-linux-gnu-gcc # SYNTHETIC LINUX
#XCC = i386-elf-gcc # i386 PC
###### VARIABLES
# Any of these can be overriden on the command-line or in your
environment
ifeq ($(XCC),sh-elf-gcc)
CFLAGS = -ggdb
else
CFLAGS = -g
endif
CXXFLAGS = $(CFLAGS)
EXTRACFLAGS = -Wall
-I/c/MyDocuments/eCosDevelopment/RAMSupport_install/include
-ffunction-sections -fdata-sections
EXTRACXXFLAGS = $(EXTRACFLAGS) -fno-exceptions -fno-rtti -fvtable-gc
-finit-priority
LDFLAGS = -nostartfiles
-L/c/MyDocuments/eCosDevelopment/RAMSupport_install/lib
-Wl,--gc-sections
LIBS = -Ttarget.ld -nostdlib
LD = $(XCC)
XCXX = $(XCC)
###### RULES
.PHONY: all clean CCCHECK
all: devlist
clean:
-rm -f devlist.exe devlist.o
-rm -f pccontroller.exe pccontroller.o
-rm -f server_test.exe server_test.o
CCCHECK:
ifeq ($(XCC),)
@echo You must set XCC to the name of your cross-compiler
@false
endif
%.o: %.c
$(XCC) -c -o $*.o $(CFLAGS) $(EXTRACFLAGS) $<
%.o: %.cxx
$(XCXX) -c -o $*.o $(CXXFLAGS) $(EXTRACXXFLAGS) $<
%.o: %.C
$(XCXX) -c -o $*.o $(CXXFLAGS) $(EXTRACXXFLAGS) $<
%.o: %.cc
$(XCXX) -c -o $*.o $(CXXFLAGS) $(EXTRACXXFLAGS) $<
devlist: CCCHECK devlist.o
$(LD) $(LDFLAGS) -o $@ $@.o $(LIBS)
pccontroller: CCCHECK pccontroller.o
$(LD) $(LDFLAGS) -o $@ $@.o $(LIBS)
server_test: CCCHECK server_test.o
$(LD) $(LDFLAGS) -o $@ $@.o $(LIBS)
> -----Original Message-----
> From: gary@chez-thomas.org [mailto:gary@chez-thomas.org] On
> Behalf Of Gary Thomas
> Sent: Monday, June 18, 2001 2:32 PM
> To: Trenton D. Adams
> Cc: eCos
> Subject: RE: [ECOS] Can't compile server_test.c
>
>
>
> On 18-Jun-2001 Trenton D. Adams wrote:
> > I'm having trouble compiling server_test.c It says all the files
> > below are missing. Anyone have any idea why this might happen?
> >
> > $ make server_test
>
> You can't build tests like this. To build this simple test, use:
> % make -C net/tcpip/current tests TESTS=tests/server_test
>