Makefile_pc 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. ##########################################################################
  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. ############################################################################
  31. TARGET = libdma.a
  32. DEBUG = -DDMADBG
  33. LST = -Hanno -S
  34. OPTIM =
  35. CC = m:/old_tools/tools/hcppc/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. # Assembler used to build the .s files (for the board version)
  40. ASOPT = -big_si -c
  41. ASDEBUG = -l -fm
  42. AS = m:/old_tools/tools/hcppc/bin/asppc
  43. # Linker to bring .o files together into an executable.
  44. LKOPT = -Bbase=0 -q -r -Qn
  45. LKCMD =
  46. LINK = m:/old_tools/tools/hcppc/bin/ldppc $(LKCMD) $(LKOPT)
  47. # DOS Utilities
  48. DEL = rm
  49. COPY = cp
  50. LIST = ls
  51. OBJECTS = dma1.o dma2.o
  52. all: $(TARGET)
  53. $(TARGET): $(OBJECTS)
  54. $(LINK) $(OBJECTS) -o $@
  55. objects: dma1.o
  56. clean:
  57. $(DEL) -f *.o *.i *.map *.lst $(TARGET) $(OBJECTS)
  58. .s.o:
  59. $(DEL) -f $*.i
  60. $(PREP) -Hasmcpp $<
  61. $(AS) $(ASOPT) $*.i
  62. # $(AS) $(ASOPT) $(ASDEBUG) $*.i > $*.lst
  63. .c.o:
  64. $(CCobj) $<
  65. .c.s:
  66. $(CCobj) $(LST) $<
  67. dma1.o: dma_export.h dma.h dma1.c
  68. $(CCobj) $<
  69. dma2.o: dma.h dma2.s
  70. $(DEL) -f $*.i
  71. $(PREP) -Hasmcpp $<
  72. $(AS) $(ASOPT) $*.i