summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXANTRONIX Development2022-02-23 00:20:42 -0500
committerXANTRONIX Development2022-02-23 00:20:42 -0500
commit561b87224f8a474563ee70d33d148f0daf735249 (patch)
tree35cdd3577b087fef661ab4193c8b53e0f338d1df
parentb87df0764dfe36e3ecd9fa1c3c105758c8c28e05 (diff)
downloadxas-561b87224f8a474563ee70d33d148f0daf735249.tar.gz
xas-561b87224f8a474563ee70d33d148f0daf735249.tar.bz2
xas-561b87224f8a474563ee70d33d148f0daf735249.zip
Make examples/ rebuild on src/libxas.a change
-rw-r--r--examples/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/Makefile b/examples/Makefile
index 5604297..6aae7f2 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -3,13 +3,14 @@ include ../mk/build.mk
CC = $(CROSS)cc
INCLUDE_PATH = ../include
+LIBNAME = xas
CFLAGS += -I$(INCLUDE_PATH)
-LDFLAGS += -L../src -lxas -lm
+LDFLAGS += -L../src -l$(LIBNAME) -lm
EXAMPLES = test open say spatial
-all: $(EXAMPLES)
+all: $(EXAMPLES) ../src/$(STATIC)
$(EXAMPLES): %: %.c
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)