diff options
author | XANTRONIX Development | 2022-01-31 10:53:09 -0500 |
---|---|---|
committer | XANTRONIX Development | 2022-01-31 10:53:09 -0500 |
commit | d8e3d3fc0fb6e4f88f3e3c789575e38a74a01299 (patch) | |
tree | 1dfecdcb3f273df1933a5a1e2eda179eef9c97fa /examples/Makefile | |
parent | 6a280b4d4555000071356e754afe1b686a5bb434 (diff) | |
download | xas-d8e3d3fc0fb6e4f88f3e3c789575e38a74a01299.tar.gz xas-d8e3d3fc0fb6e4f88f3e3c789575e38a74a01299.tar.bz2 xas-d8e3d3fc0fb6e4f88f3e3c789575e38a74a01299.zip |
Add examples/
Diffstat (limited to 'examples/Makefile')
-rw-r--r-- | examples/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/Makefile b/examples/Makefile new file mode 100644 index 0000000..52755fd --- /dev/null +++ b/examples/Makefile @@ -0,0 +1,18 @@ +include ../mk/build.mk + +CC = $(CROSS)cc + +INCLUDE_PATH = ../include + +CFLAGS += -I$(INCLUDE_PATH) +LDFLAGS += -L../src -lxas -lm + +EXAMPLES = test + +all: $(EXAMPLES) + +$(EXAMPLES): %: %.c + $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) + +clean: + $(RM) -f $(EXAMPLES) |