# # $Id: makefile_gcc,v 1.1 1999/10/30 01:41:42 ecueva Exp $ # # Copyright Motorola, Inc. 1993, 1994 # ALL RIGHTS RESERVED # # You are hereby granted a copyright license to use, modify, and # distribute the SOFTWARE so long as this entire notice is retained # without alteration in any modified and/or redistributed versions, # and that such modified versions are clearly identified as such. # No licenses are granted by implication, estoppel or otherwise under # any patents or trademarks of Motorola, Inc. # # The SOFTWARE is provided on an "AS IS" basis and without warranty. # To the maximum extent permitted by applicable law, MOTOROLA DISCLAIMS # ALL WARRANTIES WHETHER EXPRESS OR IMPLIED, INCLUDING IMPLIED # WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR # PURPOSE AND ANY WARRANTY AGAINST INFRINGEMENT WITH # REGARD TO THE SOFTWARE (INCLUDING ANY MODIFIED VERSIONS # THEREOF) AND ANY ACCOMPANYING WRITTEN MATERIALS. # # To the maximum extent permitted by applicable law, IN NO EVENT SHALL # MOTOROLA BE LIABLE FOR ANY DAMAGES WHATSOEVER # (INCLUDING WITHOUT LIMITATION, DAMAGES FOR LOSS OF # BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS # INFORMATION, OR OTHER PECUNIARY LOSS) ARISING OF THE USE OR # INABILITY TO USE THE SOFTWARE. Motorola assumes no responsibility # for the maintenance and support of the SOFTWARE. # SUBDIR=i2c epic dma i2o MAKE = make -f makefile_gcc PREFIX = /usr/local/AltiVec/bin CC = $(PREFIX)powerpc-eabisim-gcc #LINK = $(CC) -fnobuiltin -T ld.script OBJECTS = i2c/i2c1.o i2c/i2c2.o epic/epic1.o epic/epic2.o dma/dma1.o i2o/i2o1.o all: for i in $(SUBDIR); \ do \ ( cd $$i; $(MAKE) all ); \ done driver: rm -f all$@.o @if [ ! -f dma_export.h ]; \ then \ ln -s dma/dma_export.h dma_export.h; \ fi @if [ ! -f epic.h ]; \ then \ ln -s epic/epic.h epic.h; \ fi @if [ ! -f i2c_export.h ]; \ then \ ln -s i2c/i2c_export.h i2c_export.h; \ fi @if [ ! -f i2o.h ]; \ then \ ln -s i2o/i2o.h i2o.h; \ fi @for i in $(SUBDIR); \ do \ ( cd $$i; $(MAKE) objects ); \ done # We are not linking these object files together here. We will # do it in the main makefile. dma: alldma alldma: ( cd dma; $(MAKE) all ) epic: allepic allepic: ( cd epic; $(MAKE) all ) all: alli2c alli2c: ( cd i2c; $(MAKE) all ) i2o: alli2o alli2o: ( cd i2o; $(MAKE) all ) clean: @for i in $(SUBDIR); \ do \ ( cd $$i; $(MAKE) clean ); \ done