[WikiItic] [TitleIndex] [WordIndex

Aleix Basullas

Email: <aleix_b AT SPAMFREE hotmail DOT com>

Treballs

Utils

Makefiles

C99, warnings, clean

CC=gcc
CFLAGS=-std=c99 -Wall -g
LDLIBS=

.PHONY: clean

main: object1.o objectn.o

clean:
        rm main *.o

C99, AVR, warnings, clean

CC=avr-gcc
CFLAGS=-std=c99 -Wall -Os -mmcu=atmega328p -fshort-enums -DF_CPU=16000000UL
LDLIBS=

.PHONY: clean avr

main: objecte1.o objecten.o

clean:
        rm main main.hex *.o

avr:
        avr-objcopy -Oihex main main.hex
        avrdude -c arduino -p atmega328p -P /dev/ttyACM0 -U main.hex


CategoryHomepage


2023-07-03 11:37