-
Artikel
Beispiel Makefile
LDFLAGS) -o $@ $^ $(LIBS) clean: rm -rf *.o $(PRG).elf *.eps *.png *.pdf *.bak rm -rf *.lst *.map *.tmp lst: $(PRG).lst %.lst: %.elf avr-objdump -h -S $ $@ Rules for building the .text rom images text: hex hex: $(PRG).hex %.hex: %.elf avr-objcopy -j .text -j .data -O ihex $< $@ Compile the main program
./$(PRG).cpp @echo compiling special input=$< output=$@ $(CC) -S -c $(HJH_IDIR) $(CFLAGS) $< -o $@.tmp $(CC) -c $(HJH_IDIR) $(CFLAGS) $< -o $@ Warning for Windows Users: For the %s, %S and %.cpp to work, all files in the ../../../lq directory must have lower case file names (use total commander to do