[go: up one dir, main page]

File: Makefile.eventloop

package info (click to toggle)
duktape 2.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 20,496 kB
  • sloc: ansic: 203,676; python: 5,856; makefile: 476; cpp: 205
file content (24 lines) | stat: -rw-r--r-- 663 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
#  Example Makefile for building the eventloop example
#

CC = gcc

evloop:
	@echo "NOTE: The eventloop is example is intended to be used on Linux"
	@echo "      or other common UNIX variants.  It is not fully portable."
	@echo ""

	$(CC) -o $@ -std=c99 -Wall -Wextra -O2 -Isrc \
		examples/eventloop/main.c \
		examples/eventloop/c_eventloop.c \
		examples/eventloop/poll.c \
		examples/eventloop/socket.c \
		examples/eventloop/fileio.c \
		examples/eventloop/ncurses.c \
		src/duktape.c \
		-lm -lncurses

	@echo ""
	@echo "NOTE: You must 'cd examples/eventloop' before you execute the"
	@echo "      eventloop binary: it relies on finding .js files in CWD"