hi marvin,
so sieht das makefile für das letzte projekt das ich compiliert habe aus:
/Code:############################################################################### # Makefile for the project test_lib_2_7 ############################################################################### ## General Flags PROJECT = test_lib_2_7 MCU = atmega8 TARGET = test_lib_2_7.elf CC = avr-gcc.exe ## Options common to compile, link and assembly rules COMMON = -mmcu=$(MCU) ## Compile options common for all C compilation units. CFLAGS = $(COMMON) CFLAGS += -Wall -gdwarf-2 -DF_CPU=8000000UL -Os -fsigned-char CFLAGS += -MD -MP -MT $(*F).o -MF dep/$(@F).d ## Assembly specific flags ASMFLAGS = $(COMMON) ASMFLAGS += -x assembler-with-cpp -Wa,-gdwarf2 ## Linker flags LDFLAGS = $(COMMON) LDFLAGS += ## Intel Hex file production flags HEX_FLASH_FLAGS = -R .eeprom HEX_EEPROM_FLAGS = -j .eeprom HEX_EEPROM_FLAGS += --set-section-flags=.eeprom="alloc,load" HEX_EEPROM_FLAGS += --change-section-lma .eeprom=0 ## Include Directories INCLUDES = -I"Y:\georg\hobby\roboter\asuro\_asuro_lib\2_7_rc3\AsuroLib\lib\inc" ## Objects that must be built in order to link OBJECTS = test_lib_2_7.o asuro.o switches.o time.o inka.o leds.o encoder.o globals.o motor_low.o motor.o encoder_low.o print.o uart.o ## Objects explicitly added by the user LINKONLYOBJECTS = ## Build all: $(TARGET) test_lib_2_7.hex test_lib_2_7.eep size ## Compile test_lib_2_7.o: ../test_lib_2_7.c $(CC) $(INCLUDES) $(CFLAGS) -c $< asuro.o: ../../../_asuro_lib/2_7_rc3/AsuroLib/lib/asuro.c $(CC) $(INCLUDES) $(CFLAGS) -c $< switches.o: ../../../_asuro_lib/2_7_rc3/AsuroLib/lib/switches.c $(CC) $(INCLUDES) $(CFLAGS) -c $< time.o: ../../../_asuro_lib/2_7_rc3/AsuroLib/lib/time.c $(CC) $(INCLUDES) $(CFLAGS) -c $< inka.o: ../../../_asuro_lib/2_7_rc3/AsuroLib/lib/inka.c $(CC) $(INCLUDES) $(CFLAGS) -c $< leds.o: ../../../_asuro_lib/2_7_rc3/AsuroLib/lib/leds.c $(CC) $(INCLUDES) $(CFLAGS) -c $< encoder.o: ../../../_asuro_lib/2_7_rc3/AsuroLib/lib/encoder.c $(CC) $(INCLUDES) $(CFLAGS) -c $< globals.o: ../../../_asuro_lib/2_7_rc3/AsuroLib/lib/globals.c $(CC) $(INCLUDES) $(CFLAGS) -c $< motor_low.o: ../../../_asuro_lib/2_7_rc3/AsuroLib/lib/motor_low.c $(CC) $(INCLUDES) $(CFLAGS) -c $< motor.o: ../../../_asuro_lib/2_7_rc3/AsuroLib/lib/motor.c $(CC) $(INCLUDES) $(CFLAGS) -c $< encoder_low.o: ../../../_asuro_lib/2_7_rc3/AsuroLib/lib/encoder_low.c $(CC) $(INCLUDES) $(CFLAGS) -c $< print.o: ../../../_asuro_lib/2_7_rc3/AsuroLib/lib/print.c $(CC) $(INCLUDES) $(CFLAGS) -c $< uart.o: ../../../_asuro_lib/2_7_rc3/AsuroLib/lib/uart.c $(CC) $(INCLUDES) $(CFLAGS) -c $< ##Link $(TARGET): $(OBJECTS) $(CC) $(LDFLAGS) $(OBJECTS) $(LINKONLYOBJECTS) $(LIBDIRS) $(LIBS) -o $(TARGET) %.hex: $(TARGET) avr-objcopy -O ihex $(HEX_FLASH_FLAGS) $< $@ %.eep: $(TARGET) avr-objcopy $(HEX_EEPROM_FLAGS) -O ihex $< $@ %.lss: $(TARGET) avr-objdump -h -S $< > $@ size: ${TARGET} @echo @avr-size -C --mcu=${MCU} ${TARGET} ## Clean target .PHONY: clean clean: -rm -rf $(OBJECTS) test_lib_2_7.elf dep/* test_lib_2_7.hex test_lib_2_7.eep ## Other dependencies -include $(shell mkdir dep 2>/dev/null) $(wildcard dep*)
da weiss ich aber auch nicht wo ich die änderungen machen sollte![]()







Zitieren

Lesezeichen