blob: 8df2a3cb79f5ee31e42085483ad6f7b7949cb57e [file] [log] [blame]
wdenk327f7a02001-11-28 17:49:55 +00001##########################################################################
2#
3# makefile_pc for use with mksnt tools drivers/dma
4#
5# Copyright Motorola, Inc. 1997
6# ALL RIGHTS RESERVED
7#
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.
14#
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.
22#
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.
29#
30############################################################################
31TARGET = libdma.a
32
33DEBUG = -DDMADBG
34LST = -Hanno -S
35OPTIM =
36CC = m:/old_tools/tools/hcppc/bin/hcppc
37CFLAGS = -Hnocopyr -c -Hsds -Hon=Char_default_unsigned -Hon=Char_is_rep -I../inc -I/risc/tools/pkgs/metaware/inc
38CCobj = $(CC) $(CFLAGS) $(DEBUG) $(OPTIM)
39PREP = $(CC) $(CFLAGS) -P
40
41# Assembler used to build the .s files (for the board version)
42
43ASOPT = -big_si -c
44ASDEBUG = -l -fm
45AS = m:/old_tools/tools/hcppc/bin/asppc
46
47# Linker to bring .o files together into an executable.
48
49LKOPT = -Bbase=0 -q -r -Qn
50LKCMD =
51LINK = m:/old_tools/tools/hcppc/bin/ldppc $(LKCMD) $(LKOPT)
52
53# DOS Utilities
54
55DEL = rm
56COPY = cp
57LIST = ls
58
59OBJECTS = dma1.o dma2.o
60
61all: $(TARGET)
62
63$(TARGET): $(OBJECTS)
64 $(LINK) $(OBJECTS) -o $@
65
66objects: dma1.o
67
68clean:
69 $(DEL) -f *.o *.i *.map *.lst $(TARGET) $(OBJECTS)
70
71.s.o:
72 $(DEL) -f $*.i
73 $(PREP) -Hasmcpp $<
74 $(AS) $(ASOPT) $*.i
75# $(AS) $(ASOPT) $(ASDEBUG) $*.i > $*.lst
76
77.c.o:
78 $(CCobj) $<
79
80.c.s:
81 $(CCobj) $(LST) $<
82
83dma1.o: dma_export.h dma.h dma1.c
84 $(CCobj) $<
85
86dma2.o: dma.h dma2.s
87 $(DEL) -f $*.i
88 $(PREP) -Hasmcpp $<
89 $(AS) $(ASOPT) $*.i