1
0
mirror of https://github.com/antonblanchard/microwatt.git synced 2026-03-05 10:43:57 +00:00

Merge pull request #352 from mkj/static-urjtag

mw_debug: Add STATIC_URJTAG flag
This commit is contained in:
Michael Neuling
2022-02-28 08:17:50 +11:00
committed by GitHub

View File

@@ -1,10 +1,16 @@
CFLAGS = -O2 -g -Wall -std=c99
# CFLAGS += -I urjtag/urjtag/include/ -L urjtag/urjtag/src/.libs/
#
ifeq ($(STATIC_URJTAG), 1)
LIBURJTAG=-Wl,-Bstatic -lurjtag -Wl,-Bdynamic -lftdi1 -lusb-1.0 -lreadline
else
LIBURJTAG=-lurjtag
endif
all: mw_debug
mw_debug: mw_debug.c
$(CC) -o $@ $^ $(CFLAGS) -Wl,-Bstatic -lurjtag -Wl,-Bdynamic -lftdi1 -lusb-1.0 -lreadline
$(CC) -o $@ $^ $(CFLAGS) $(LIBURJTAG)
clean:
rm -f mw_debug