diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-09-23 16:16:29 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-09-23 16:16:29 +0000 |
commit | 23c7eb58e71ec3b6a18367713d6863bddba66988 (patch) | |
tree | bbe797b1af73ca9c239c7ae4126a0d86d349e61d /include | |
parent | e2c45134ee588d84f8e929ba2e4e3f397b81b827 (diff) | |
download | ATCD-23c7eb58e71ec3b6a18367713d6863bddba66988.tar.gz |
ChangeLogTag: Thu Sep 23 11:13:38 1999 Wei Chiang <wei.chiang@nokia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/makeinclude/platform_chorus.GNU | 45 | ||||
-rw-r--r-- | include/makeinclude/rules.bin.GNU | 29 |
2 files changed, 55 insertions, 19 deletions
diff --git a/include/makeinclude/platform_chorus.GNU b/include/makeinclude/platform_chorus.GNU index d0c2a428fa2..83ec4941d8d 100644 --- a/include/makeinclude/platform_chorus.GNU +++ b/include/makeinclude/platform_chorus.GNU @@ -12,10 +12,25 @@ shared_libs = static_libs = 1 # -# The following file includes definitions such as $(CC), $(XDIR), etc. +# Directory where the Chorus Development System is installed # -include $(MERGEDIR)/dtool/htgt-cf.rf -CLASSIXDIR=$(MERGEDIR) +ifndef CLX_CDSPATH + CLX_CDSPATH = /vob/k_bbansw/chorus_r321_bin/CDS +endif #CLX_CDSPATH +ifndef CLX_CDSVERSION + CLX_CDSVERSION = 4.3 +endif #CLX_CDSVERSION +ifndef CLX_CDSHOST + CLX_CDSHOST = solaris +endif #CLX_CDSHOST +ifndef CLASSIXDIR + CLASSIXDIR=$(MERGEDIR) +endif #CLASSIXDIR + +XROOT = $(CLX_CDSPATH)/powerpc/$(CLX_CDSHOST)/$(CLX_CDSVERSION) +XDIR = $(XROOT)/powerpc-elf +CC = $(XDIR)/bin/gcc -B$(XROOT)/lib/gcc-lib/ + # # Tool PATH # @@ -36,8 +51,19 @@ CCFLAGS += $(CFLAGS) -fno-implicit-templates \ -nostdinc \ -pipe \ -fno-rtti \ + -mstrict-align \ + -fwritable-strings \ + -fsigned-char \ + "-msoft-float" \ + -mno-sdata \ -D_POSIX_THREADS \ - -D_POSIX_THREAD_SAFE_FUNCTIONS + -D_POSIX_THREAD_SAFE_FUNCTIONS \ + "-DNO_FPU_SUPPORT" + +ifeq ($(exceptions),1) +else # ! exceptions + CCFLAGS += -fno-exceptions +endif # ! exceptions #DCFLAGS += -gstabs+ INCLDIRS += -I$(INC_DIR)/posix \ @@ -47,7 +73,7 @@ INCLDIRS += -I$(INC_DIR)/posix \ -I$(INC_DIR)/CC DLD = LD = $(XDIR)/bin/ld -LDFLAGS += -r $(CLASSIXDIR)/lib/CC/libC.a $(CLASSIXDIR)/lib/classix/libcx.u.a +#LDFLAGS += -r $(CLASSIXDIR)/lib/CC/libC.a $(CLASSIXDIR)/lib/classix/libcx.u.a MATHLIB = -L$(CLASSIXDIR)/lib/libm -lm LINK.cc.override = $(LD) -u _main -u _premain @@ -64,6 +90,15 @@ CHORUSLINK=true # $(RM) helloCxx_u.xp.o # $(RM) helloCxx_u.ct.o +POSTLINK= -r $(CLASSIXDIR)/lib/CC/libC.a $(CLASSIXDIR)/lib/classix/libcx.u.a; \ + mv $@ $@.xp.o; \ + $(CLASSIXDIR)/dtool/mkctors $@.xp.o > $@.ct.s; \ + $(CXX) -c $@.ct.s; \ + $(RM) $@.ct.s; \ + $(LD) $(LDOPTIONS) -e _start -o $@ $(MERGEDIR)/lib/crt/crth.u.o $(MERGEDIR)/lib/crt/crt0.o $(MERGEDIR)/lib/crt/crti.o $@.xp.o $@.ct.o $(MERGEDIR)/lib/crt/crtn.o -dn -T $(MERGEDIR)/src/act/slots/act_u.ld; \ + $(RM) $@.xp.o; \ + $(RM) $@.ct.o + OCFLAGS += -O PIC = -fPIC diff --git a/include/makeinclude/rules.bin.GNU b/include/makeinclude/rules.bin.GNU index d3d2d9f2bc9..dc03ff9eaa0 100644 --- a/include/makeinclude/rules.bin.GNU +++ b/include/makeinclude/rules.bin.GNU @@ -1,26 +1,27 @@ #---------------------------------------------------------------------------- -# $Id$ +# $Id$ # -# Build binaries -# GNU version -# Requires GNU make +# Build binaries +# GNU version +# Requires GNU make #---------------------------------------------------------------------------- ifndef OBJEXT -OBJEXT=o -endif + OBJEXT=o +endif # ! OBJEXT -VOBJS = $(subst .cpp,.$(OBJEXT),$(foreach file,$(SRC),$(VDIR)$(notdir $(file)))) +VOBJS = \ + $(subst .cpp,.$(OBJEXT),$(foreach file,$(SRC),$(VDIR)$(notdir $(file)))) ifeq ($(CHORUSLINK),true) $(BIN): %: $(VDIR)%.o $(VOBJS) - $(LINK.cc) -o $@.xp.o $^ -u _main -u _premain $(VLDLIBS) $(LDFLAGS)$(POSTLINK) - $(MERGEDIR)/dtool/mkctors $@.xp.o > $@.ct.s - $(CXX) -c $@.ct.s - $(RM) $@.ct.s - $(LD) $(LDOPTIONS) -e _start -o $@ $(MERGEDIR)/lib/crt/crth.u.o $(MERGEDIR)/lib/crt/crt0.o $(MERGEDIR)/lib/crt/crti.o $@.xp.o $@.ct.o $(MERGEDIR)/lib/crt/crtn.o -dn -T $(MERGEDIR)/src/act/slots/act_u.ld - $(RM) $@.xp.o - $(RM) $@.ct.o + $(LINK.cc) -o $@ $^ $(VLDLIBS) $(LDFLAGS) $(POSTLINK) +# $(MERGEDIR)/dtool/mkctors $@.xp.o > $@.ct.s +# $(CXX) -c $@.ct.s +# $(RM) $@.ct.s +# $(LD) $(LDOPTIONS) -e _start -o $@ $(MERGEDIR)/lib/crt/crth.u.o $(MERGEDIR)/lib/crt/crt0.o $(MERGEDIR)/lib/crt/crti.o $@.xp.o $@.ct.o $(MERGEDIR)/lib/crt/crtn.o -dn -T $(MERGEDIR)/src/act/slots/act_u.ld +# $(RM) $@.xp.o +# $(RM) $@.ct.o else $(BIN): %: $(VDIR)%.o $(VOBJS) $(LINK.cc) -o $@ $^ $(LDFLAGS) $(VLDLIBS) $(POSTLINK) |