diff options
author | XANTRONIX Development | 2022-02-23 00:20:42 -0500 |
---|---|---|
committer | XANTRONIX Development | 2022-02-23 00:20:42 -0500 |
commit | 561b87224f8a474563ee70d33d148f0daf735249 (patch) | |
tree | 35cdd3577b087fef661ab4193c8b53e0f338d1df /examples | |
parent | b87df0764dfe36e3ecd9fa1c3c105758c8c28e05 (diff) | |
download | xas-561b87224f8a474563ee70d33d148f0daf735249.tar.gz xas-561b87224f8a474563ee70d33d148f0daf735249.tar.bz2 xas-561b87224f8a474563ee70d33d148f0daf735249.zip |
Make examples/ rebuild on src/libxas.a change
Diffstat (limited to 'examples')
-rw-r--r-- | examples/Makefile | 5 |
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) |