1#
2#  Example Makefile for building the eventloop example
3#
4
5evloop:
6	@echo "NOTE: The eventloop is example is intended to be used on Linux"
7	@echo "      or other common UNIX variants.  It is not fully portable."
8	@echo ""
9
10	gcc -o $@ -std=c99 -Wall -Wextra -O2 -Isrc \
11		examples/eventloop/main.c \
12		examples/eventloop/c_eventloop.c \
13		examples/eventloop/poll.c \
14		examples/eventloop/socket.c \
15		examples/eventloop/fileio.c \
16		examples/eventloop/ncurses.c \
17		src/duktape.c \
18		-lm -lncurses
19
20	@echo ""
21	@echo "NOTE: You must 'cd examples/eventloop' before you execute the"
22	@echo "      eventloop binary: it relies on finding .js files in CWD"
23