mirror of https://github.com/Desuuuu/klipper.git
21 lines
400 B
Makefile
21 lines
400 B
Makefile
CC=gcc
|
|
CFLAGS=-c -Wall -ggdb
|
|
LDFALGS=
|
|
SOURCES=main.c picoboot_connection.c
|
|
OBJECTS=$(SOURCES:.c=.o)
|
|
LIBS=`pkg-config libusb-1.0 --libs`
|
|
INCLUDE_DIRS+=-I../rp2040/ `pkg-config libusb-1.0 --cflags`
|
|
|
|
EXECUTABLE=rp2040_flash
|
|
|
|
all: $(EXECUTABLE)
|
|
|
|
$(EXECUTABLE): $(OBJECTS)
|
|
$(CC) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@
|
|
|
|
.c.o:
|
|
$(CC) $(CFLAGS) $(INCLUDE_DIRS) $< -o $@
|
|
|
|
clean:
|
|
rm -f $(OBJECTS) $(EXECUTABLE)
|