1 ##########################################################################
3 # makefile_pc for use with PC mksnt tools dink32/drivers/i2c
5 # Copyright Motorola, Inc. 1997
8 # You are hereby granted a copyright license to use, modify, and
9 # distribute the SOFTWARE so long as this entire notice is retained
10 # without alteration in any modified and/or redistributed versions,
11 # and that such modified versions are clearly identified as such.
12 # No licenses are granted by implication, estoppel or otherwise under
13 # any patents or trademarks of Motorola, Inc.
15 # The SOFTWARE is provided on an "AS IS" basis and without warranty.
16 # To the maximum extent permitted by applicable law, MOTOROLA DISCLAIMS
17 # ALL WARRANTIES WHETHER EXPRESS OR IMPLIED, INCLUDING IMPLIED
18 # WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR
19 # PURPOSE AND ANY WARRANTY AGAINST INFRINGEMENT WITH
20 # REGARD TO THE SOFTWARE (INCLUDING ANY MODIFIED VERSIONS
21 # THEREOF) AND ANY ACCOMPANYING WRITTEN MATERIALS.
23 # To the maximum extent permitted by applicable law, IN NO EVENT SHALL
24 # MOTOROLA BE LIABLE FOR ANY DAMAGES WHATSOEVER
25 # (INCLUDING WITHOUT LIMITATION, DAMAGES FOR LOSS OF
26 # BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS
27 # INFORMATION, OR OTHER PECUNIARY LOSS) ARISING OF THE USE OR
28 # INABILITY TO USE THE SOFTWARE.
30 ############################################################################
37 CC = m:/old_tools/tools/hcppc/bin/hcppc
38 CFLAGS = -Hnocopyr -c -Hsds -Hon=Char_default_unsigned -Hon=Char_is_rep -I../inc -I/risc/tools/pkgs/metaware/inc
39 CCobj = $(CC) $(CFLAGS) $(DEBUG) $(OPTIM)
40 PREP = $(CC) $(CFLAGS) -P
42 # Assembler used to build the .s files (for the board version)
46 AS = m:/old_tools/tools/hcppc/bin/asppc
48 # Linker to bring .o files together into an executable.
50 LKOPT = -Bbase=0 -q -Qn -r
52 LINK = m:/old_tools/tools/hcppc/bin/ldppc $(LKCMD) $(LKOPT)
60 OBJECTS = i2c1.o i2c2.o
67 $(LINK) $(OBJECTS) -o $@
70 $(DEL) -f *.o *.i *.map *.lst $(TARGET) $(OBJECTS)
76 # $(AS) $(ASOPT) $(ASDEBUG) $*.i > $*.lst
84 i2c1.o: i2c_export.h i2c.h i2c1.c