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

CC		= $(CROSS)cc

INCLUDE_PATH	= ../include

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

EXAMPLES	= test open

all: $(EXAMPLES)

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

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