wdenk | 327f7a0 | 2001-11-28 17:49:55 +0000 | [diff] [blame] | 1 | ########################################################################## |
| 2 | # |
| 3 | # Copyright Motorola, Inc. 1997 |
| 4 | # ALL RIGHTS RESERVED |
| 5 | # |
| 6 | # You are hereby granted a copyright license to use, modify, and |
| 7 | # distribute the SOFTWARE so long as this entire notice is retained |
| 8 | # without alteration in any modified and/or redistributed versions, |
| 9 | # and that such modified versions are clearly identified as such. |
| 10 | # No licenses are granted by implication, estoppel or otherwise under |
| 11 | # any patents or trademarks of Motorola, Inc. |
| 12 | # |
| 13 | # The SOFTWARE is provided on an "AS IS" basis and without warranty. |
| 14 | # To the maximum extent permitted by applicable law, MOTOROLA DISCLAIMS |
| 15 | # ALL WARRANTIES WHETHER EXPRESS OR IMPLIED, INCLUDING IMPLIED |
| 16 | # WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR |
| 17 | # PURPOSE AND ANY WARRANTY AGAINST INFRINGEMENT WITH |
| 18 | # REGARD TO THE SOFTWARE (INCLUDING ANY MODIFIED VERSIONS |
| 19 | # THEREOF) AND ANY ACCOMPANYING WRITTEN MATERIALS. |
| 20 | # |
| 21 | # To the maximum extent permitted by applicable law, IN NO EVENT SHALL |
| 22 | # MOTOROLA BE LIABLE FOR ANY DAMAGES WHATSOEVER |
| 23 | # (INCLUDING WITHOUT LIMITATION, DAMAGES FOR LOSS OF |
| 24 | # BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS |
| 25 | # INFORMATION, OR OTHER PECUNIARY LOSS) ARISING OF THE USE OR |
| 26 | # INABILITY TO USE THE SOFTWARE. |
| 27 | # |
| 28 | ############################################################################ |
| 29 | TARGET = libi2o.a |
| 30 | |
| 31 | #DEBUG = -g |
| 32 | DEBUG = |
| 33 | LST = -Hanno -S |
| 34 | OPTIM = |
| 35 | CC = /risc/tools/pkgs/metaware/bin/hcppc |
| 36 | CFLAGS = -Hnocopyr -c -Hsds -Hon=Char_default_unsigned -Hon=Char_is_rep -I../inc -I/risc/tools/pkgs/metaware/inc |
| 37 | CCobj = $(CC) $(CFLAGS) $(DEBUG) $(OPTIM) |
| 38 | PREP = $(CC) $(CFLAGS) -P |
| 39 | |
| 40 | # Assembler used to build the .s files (for the board version) |
| 41 | |
| 42 | ASOPT = -big_si -c |
| 43 | ASDEBUG = -l -fm |
| 44 | AS = /risc/tools/pkgs/metaware/bin/asppc |
| 45 | |
| 46 | # Linker to bring .o files together into an executable. |
| 47 | |
| 48 | LKOPT = -Bbase=0 -Qn -q -r |
| 49 | LKCMD = |
| 50 | LINK = /risc/tools/pkgs/metaware/bin/ldppc $(LKCMD) $(LKOPT) |
| 51 | |
| 52 | # DOS Utilities |
| 53 | |
| 54 | DEL = rm |
| 55 | COPY = cp |
| 56 | LIST = ls |
| 57 | |
| 58 | OBJECTS = i2o1.o i2o2.o |
| 59 | |
| 60 | all: $(TARGET) |
| 61 | |
| 62 | $(TARGET): $(OBJECTS) |
| 63 | $(LINK) $(OBJECTS) -o $@ |
| 64 | |
| 65 | objects: i2o1.o |
| 66 | |
| 67 | clean: |
| 68 | $(DEL) -f *.o *.i *.map *.lst $(TARGET) $(OBJECTS) |
| 69 | |
| 70 | .s.o: |
| 71 | $(DEL) -f $*.i |
| 72 | $(PREP) -Hasmcpp $< |
| 73 | $(AS) $(ASOPT) $*.i |
| 74 | # $(AS) $(ASOPT) $(ASDEBUG) $*.i > $*.lst |
| 75 | |
| 76 | .c.o: |
| 77 | $(CCobj) $< |
| 78 | |
| 79 | .c.s: |
| 80 | $(CCobj) $(LST) $< |
| 81 | |
| 82 | i2o1.o: i2o.h i2o1.c |
| 83 | |
| 84 | i2o2.o: i2o.h i2o2.s |