kopia lustrzana https://github.com/stlink-org/stlink
29 wiersze
403 B
Makefile
29 wiersze
403 B
Makefile
|
CFLAGS+=-g
|
||
|
CFLAGS+=-DCONFIG_USE_LIBUSB
|
||
|
CFLAGS+=-DCONFIG_USE_LIBSG
|
||
|
CFLAGS+=-DDEBUG
|
||
|
CFLAGS+=-std=gnu99
|
||
|
CFLAGS+=-Wall -Wextra
|
||
|
CFLAGS+=-I../src
|
||
|
|
||
|
LDFLAGS=-L.. -lstlink -lusb-1.0 -lsgutils2
|
||
|
|
||
|
SRCS=main.c
|
||
|
OBJS=$(SRCS:.c=.o)
|
||
|
|
||
|
NAME=flash
|
||
|
|
||
|
all: $(NAME)
|
||
|
|
||
|
$(NAME): $(OBJS)
|
||
|
$(CC) $(CFLAGS) -o $(NAME) $(OBJS) $(LDFLAGS)
|
||
|
|
||
|
%.o: %.c
|
||
|
$(CC) $(CFLAGS) -c $^ -o $@
|
||
|
|
||
|
clean:
|
||
|
rm -f $(OBJS)
|
||
|
rm -f $(NAME)
|
||
|
|
||
|
.PHONY: clean all
|