Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 5e5d1fa747
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (21 sloc) 0.442 kB
CFLAGS+=-g
CFLAGS+=-DDEBUG
CFLAGS+=-std=gnu99
CFLAGS+=-Wall -Wextra
CFLAGS+=-I../src
LDFLAGS=-L.. -lstlink
# libusb location
LDFLAGS+=`pkg-config --libs libusb-1.0`
CFLAGS+=`pkg-config --cflags libusb-1.0`
SRCS=main.c
OBJS=$(SRCS:.c=.o)
NAME=flash
all: $(NAME)
$(NAME): $(OBJS) ../libstlink.a
$(CC) $(CFLAGS) -o $(NAME) $(OBJS) $(LDFLAGS)
%.o: %.c
$(CC) $(CFLAGS) -c $^ -o $@
clean:
rm -f $(OBJS)
rm -f $(NAME)
.PHONY: clean all
Jump to Line
Something went wrong with that request. Please try again.