From d8e3d3fc0fb6e4f88f3e3c789575e38a74a01299 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Mon, 31 Jan 2022 10:53:09 -0500 Subject: Add examples/ --- examples/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 examples/Makefile (limited to 'examples/Makefile') 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) -- cgit v1.2.3