ich habe jetzt das original makefile aus dem beispiel "move_10_fast" genommen, an meine pfade angepasst und das hexfile wurde erzeugt. Vergleiche die änderungen zwischen dem original und meinem file...
Code:# Hey Emacs, this is a -*- makefile -*- ############################################################################### # RP6 MAKEFILE FOR WinAVR # Based on WinAVR Sample makefile written by Eric B. Weddington, # Jörg Wunsch, et al. # # # YOU NEED TO EDIT SOME SMALL THINGS IN THIS FILE IF YOU WANT TO USE # IT FOR YOUR OWN PROJECTS! # THESE LINES ARE ALL AT THE TOP OF THIS FILE AND MARKED VERY CLEARLY ! # BETTER DO NOT EDIT ANYTHING ELSE! # # To compile everything you can simply type "make all" on a command line in # this directory or simply use the supplied batch files! # To remove all the temporary files the compiler has generated you can use # "make clean" # See end of this file and "make" user manual for more details! # # # Note: Everything behind a '#' is interpreted as a comment in this file! # ############################################################################### ############################################################################### # Target file name (without extension). # This is the name of your main C source file! Do NOT append the ".c"! # Example: Let's assume your main source file is "RP6Base_MyProgram.c", then # you would write: TARGET = RP6Base_MyProgram TARGET = RP6Control_10_Move2_fast ############################################################################### ############################################################################### # Specify relative path to RP6 library files here. # This is "../../RP6lib" or "../RP6lib" usually. RP6_LIB_PATH=../../../RP6Lib RP6_LIB_PATH_OTHERS= $(RP6_LIB_PATH)/RP6control $(RP6_LIB_PATH)/RP6common $(RP6_LIB_PATH)/RP6mio $(RP6_LIB_PATH)/RP6servo #RP6_LIB_PATH=../../2012_lib_komplett #RP6_LIB_PATH_OTHERS= ../../2012_lib_komplett ############################################################################### #------------------------------------------------ # Main Source file is _automatically_ added here: SRC = $(TARGET).c # DO NOT EDIT THIS! ############################################################################### # If there is more than one source file, append them here separated by spaces. # Usually you have to add the Library files here! (ONLY add c files "*.c" here, # NO header files "*.h"!) # Don't forget to add relative paths! SRC += $(RP6_LIB_PATH)/RP6control/RP6ControlLib.c SRC += $(RP6_LIB_PATH)/RP6control/RP6Control_I2CMasterLib.c SRC += $(RP6_LIB_PATH)/RP6common/RP6uart.c #SRC += $(RP6_LIB_PATH)/RP6common/RP6I2CslaveTWI.c SRC += $(RP6_LIB_PATH)/RP6common/RP6I2CmasterTWI.c SRC += $(RP6_LIB_PATH)/RP6mio/RP6Control_OrientationLib.c # You can also wrap lines by appending a backslash to the end of the line # like this: #SRC += xyz.c \ #abc.c \ #asdf.c # ###############################################################################







Zitieren

Lesezeichen