diff options
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) | 
 
    