summaryrefslogtreecommitdiffstats
path: root/examples/Makefile
blob: b167416a9e86d851fc596c8a976b8b8701ee4683 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
include ../mk/build.mk

CC		= $(CROSS)cc

INCLUDE_PATH	= ../include
LIBNAME		= xas

CFLAGS		+= -I$(INCLUDE_PATH)
LDFLAGS		+= -L../src -l$(LIBNAME) -lm

EXAMPLES	= test open say spatial script

all: $(EXAMPLES)

$(EXAMPLES): %: %.c ../src/$(STATIC)
	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)

clean:
	$(RM) -f $(EXAMPLES)