Advertisement
Guest User

makefile

a guest
Nov 4th, 2011
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 4.52 KB | None | 0 0
  1. # Hey Emacs, this is a -*- makefile -*-
  2. # Hey Emacs, this is a -*- makefile -*-
  3. # Hey Emacs, this is a -*- makefile -*-
  4. #----------------------------------------------------------------------------
  5. # WinAVR Makefile Template written by Eric B. Weddington, J�rg Wunsch, et al.
  6. #
  7. # Released to the Public Domain
  8. #
  9. # Additional material for this makefile was written by:
  10. # Peter Fleury
  11. # Tim Henigan
  12. # Colin O'Flynn
  13. # Reiner Patommel
  14. # Markus Pfaff
  15. # Sander Pool
  16. # Frederik Rouleau
  17. # Carlos Lamas
  18. #
  19. #----------------------------------------------------------------------------
  20. # On command line:
  21. #
  22. # make all = Make software.
  23. #
  24. # make clean = Clean out built project files.
  25. #
  26. # make coff = Convert ELF to AVR COFF.
  27. #
  28. # make extcoff = Convert ELF to AVR Extended COFF.
  29. #
  30. # make program = Download the hex file to the device, using avrdude.
  31. #                Please customize the avrdude settings below first!
  32. #
  33. # make debug = Start either simulavr or avarice as specified for debugging,
  34. #              with avr-gdb or avr-insight as the front end for debugging.
  35. #
  36. # make filename.s = Just compile filename.c into the assembler code only.
  37. #
  38. # make filename.i = Create a preprocessed source file for use in submitting
  39. #                   bug reports to the GCC project.
  40. #
  41. # To rebuild project do "make clean" then "make all".
  42. #----------------------------------------------------------------------------
  43.  
  44.  
  45. # MCU name
  46. MCU = atmega128
  47.  
  48.  
  49. # Processor frequency.
  50. #     This will define a symbol, F_CPU, in all source code files equal to the
  51. #     processor frequency. You can then use this symbol in your source code to
  52. #     calculate timings. Do NOT tack on a 'UL' at the end, this will be done
  53. #     automatically to create a 32-bit value in your source code.
  54. #     Typical values are:
  55. #         F_CPU =  1000000
  56. #         F_CPU =  1843200
  57. #         F_CPU =  2000000
  58. #         F_CPU =  3686400
  59. #         F_CPU =  4000000
  60. #         F_CPU =  7372800
  61. #         F_CPU =  8000000
  62. #         F_CPU = 11059200
  63. #         F_CPU = 14745600
  64. #         F_CPU = 16000000
  65. #         F_CPU = 18432000
  66. #         F_CPU = 20000000
  67. F_CPU = 4000000
  68.  
  69. # Target file name (without extension).
  70. TARGET = st298
  71.  
  72. # List C source files here. (C dependencies are automatically generated.)
  73. SRC =
  74.  
  75. # List C++ source files here. (C dependencies are automatically generated.)
  76.  
  77. CPPSRC = st7565.cpp\
  78.          st298.cpp\
  79.          imgData.cpp\
  80.          CStateST293.cpp\
  81.          CMainInterrupt.cpp\
  82.          myClasses/CTimer.cpp\
  83.          napisy.cpp\
  84.          font.cpp\
  85.          KS108ClassWraper.cpp\
  86.          myClasses/CBuzzer.cpp\
  87.          myClasses/CSwitch.cpp\
  88.          CSwitch5Buttons.cpp\
  89.          CMenu.cpp\
  90.          CSubMenu.cpp\
  91.          menu.cpp\
  92.          CScreenHander.cpp\
  93.          extraCppOperators.cpp\
  94.          CGrid.cpp\
  95.          oneWire.cpp\
  96.          CDS1820.cpp\
  97.          CData.cpp\
  98.          MenuScreen.cpp\
  99.          MainScreen.cpp\
  100.          TWI.cpp\
  101.          PCF8563.cpp\
  102.          relay.cpp\
  103.          CWeekControl.cpp\
  104.          WeekEditScreen.cpp\
  105.          CMenuLaunchers.cpp\
  106.          TimeEditScreen.cpp\
  107.          CTimeController.cpp\
  108.          TempEditScreen.cpp\
  109.          THourEdit.cpp\
  110.          HourEditScreens.cpp\
  111.          CAlarms.cpp\
  112.          AlarmScreen.cpp\
  113.          TConfirmScreen.cpp\
  114.          CMenuBoolStorage.cpp\
  115.          WakeupScreen.cpp\
  116.          LogoScreen.cpp\
  117.          GraphMenuScreen.cpp\
  118.          CGraphMenu.cpp\
  119.          CGraphSubMenu.cpp\
  120.          CCommWrapper.cpp\
  121.  
  122.  
  123. # List Assembler source files here.
  124. #     Make them always end in a capital .S.  Files ending in a lowercase .s
  125. #     will not be considered source files but generated files (assembler
  126. #     output from the compiler), and will be deleted upon "make clean"!
  127. #     Even though the DOS/Win* filesystem matches both .s and .S the same,
  128. #     it will preserve the spelling of the filenames, and gcc itself does
  129. #     care about how the name is spelled on its command-line.
  130. ASRC =
  131.  
  132. # List any extra directories to look for include files here.
  133. #     Each directory must be seperated by a space.
  134. #     Use forward slashes for directory separators.
  135. #     For a directory that has spaces, enclose it in quotes.
  136. EXTRAINCDIRS = . hrdDefs myClasses
  137.  
  138. # List any extra directories to look for libraries here.
  139. #     Each directory must be seperated by a space.
  140. #     Use forward slashes for directory separators.
  141. #     For a directory that has spaces, enclose it in quotes.
  142. EXTRALIBDIRS =
  143.  
  144. # Lista dodatkowych plik�w *.o, kt�re maj� by� zlinkowane do
  145. # wynikowego kodu.
  146. EXTRAOBJFILES =
  147.  
  148. AVRDUDE_FUSES = -Ulfuse:w:0x23:m -Uhfuse:w:0xd1:m -Uefuse:w:0xff:m -Ulock:w:0x3c:m
  149. AVRDUDE_PORT = /dev/parport0    # programmer connected to serial device
  150.  
  151.  
  152. include Makerules
  153.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement