NOTE => NOTES
[AROS.git] / arch / m68k-all / libgcc1 / Makefile
blob68ed602b518400eb9a0a3a6b09c2c9f09eeb6f9e
2 # Makefile pour construire une cross-librairie libgcc1 pour
3 # gcc sur 68000.
6 # $Id$
7 # $Log$
8 # Revision 1.1 2002/01/13 00:27:32 bergers
9 # Renamed target to m68k-pp-native and did some cleanups.
11 # Revision 1.1 2001/07/07 16:51:04 bergers
12 # Libgcc1 as needed for gcc for m68000 targets since the compiler itself does not know the code for certain 32 bit operations that are not part of the m68000 instruction set. Found this library on http://rpmfind.net/pub/CROSS-68000. I contacted the author (Daniel Veillard) and he said it is alright for us to use the code.
14 # Revision 1.2 1994/06/30 09:55:20 veillard
15 # Changed to use gcc68 as the interface for the com\x7f\x7f\x7fassembler
17 # Revision 1.1 1993/07/21 14:25:56 veillard
18 # Initial revision
21 SRCSS= _addsubdf3.s _addsubsf3.s _divdf3.s _divmodsi3.s _divsf3.s _eqdf2.s \
22 _eqsf2.s _extend.s _extendsfdf2.s _fixdfsi.s _fixsfsi.s _floatsidf.s \
23 _floatsisf.s _gedf2.s _gesf2.s _gtdf2.s _gtsf2.s _ledf2.s _lesf2.s _ltdf2.s \
24 _ltsf2.s _muldf3.s _mulsf3.s _mulsi3.s _nedf2.s _negdf2.s _negsf2.s _nesf2.s \
25 _normdf.s _normsf.s _truncdfsf2.s _udivmodsi3.s
27 SRCS= Makefile $(SRCSS)
28 OBJS= _addsubdf3.o _addsubsf3.o _divdf3.o _divmodsi3.o _divsf3.o _eqdf2.o \
29 _eqsf2.o _extend.o _extendsfdf2.o _fixdfsi.o _fixsfsi.o _floatsidf.o \
30 _floatsisf.o _gedf2.o _gesf2.o _gtdf2.o _gtsf2.o _ledf2.o _lesf2.o _ltdf2.o \
31 _ltsf2.o _muldf3.o _mulsf3.o _mulsi3.o _nedf2.o _negdf2.o _negsf2.o _nesf2.o \
32 _normdf.o _normsf.o _truncdfsf2.o _udivmodsi3.o
33 LIB= libgcc1.a
35 AR=m68k-linux-ar
36 AS=m68k-linux-as
37 CC=m68k-linux-gcc
39 SUBDIRS= # pas de sous repertoires
42 # regle principale
45 all : $(LIB)
48 # definitions liees a RCS
50 CO= co -q
51 CI= ci -q -r
52 RLOG= rlog -q
53 RCSDIFF= rcsdiff -q
54 RCS_UNLOCK= rcs -U -q
55 RCS_LOCK= rcs -L -q
56 RM=rm -f
60 # regle de recuperation automatique des fichiers
61 # sources necessaires a la compilation.
63 $(SRCS) :
64 @echo $@ "<--- RCS"
65 @$(CO) $@
68 # regle de restoration des fichier depuis la base RCS
70 restore :
71 @echo "***** restoring from RCS for " $(COMPONENT)
72 @for i in $(SRCS) ; do echo $$i ; $(RM) $$i ; $(CO) $$i ; \
73 done ; exit 0
74 @if [ "$(SUBDIRS)" != "" ] ; then make restore_subdir ; fi ; \
75 exit 0
76 restore_subdir :
77 @for i in $(SUBDIRS) ; do echo $$i ; cd $$i ; make restore ; \
78 cd .. ; done
81 # regle de sauvegarde des fichier dans la base RCS
83 rcs :
84 @echo "unlocking RCS files"
85 @for i in $(SRCS) ; do if [ -f $$i ] ; then \
86 $(RCS_UNLOCK) $$i ; fi ; done ; exit 0
87 @echo "saving RCS version"
88 @(for i in $(SRCS) ; do if [ -f $$i ] ; then \
89 echo $$i "---> RCS" ; \
90 $(RCSDIFF) $$i || test $$? -ne 0 ; \
91 $(CI) $$i || test $$? -ne 0 ; fi ; \
92 if [ "$$i" = "Makefile" ] ; then $(CO) Makefile ; fi ; \
93 done ; exit 0)
94 @if [ "$(SUBDIRS)" != "" ] ; then make rcs_subdir ; fi ; exit 0
95 rcs_subdir:
96 @for i in $(SUBDIRS) ; do echo $$i ; cd $$i ; make rcs ; \
97 cd .. ; done
100 # dependances
102 .s.o:
103 $(AS) $< -o $@
105 $(LIB) : $(OBJS)
106 $(AR) rv $(LIB) $(OBJS)
108 clean :
109 rm -f $(LIB) $(OBJS)