Merge pull request #352 from mkj/static-urjtag

mw_debug: Add STATIC_URJTAG flag
fpu-constant
Michael Neuling 3 years ago committed by GitHub
commit f01f3d233a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,10 +1,16 @@
CFLAGS = -O2 -g -Wall -std=c99 CFLAGS = -O2 -g -Wall -std=c99
# CFLAGS += -I urjtag/urjtag/include/ -L urjtag/urjtag/src/.libs/ # 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 all: mw_debug


mw_debug: mw_debug.c mw_debug: mw_debug.c
$(CC) -o $@ $^ $(CFLAGS) -Wl,-Bstatic -lurjtag -Wl,-Bdynamic -lftdi1 -lusb-1.0 -lreadline $(CC) -o $@ $^ $(CFLAGS) $(LIBURJTAG)


clean: clean:
rm -f mw_debug rm -f mw_debug

Loading…
Cancel
Save