Codebase list duktape / 2148063d-1548-4818-8e5a-bd9f57cc3c09/main Makefile.eventloop
2148063d-1548-4818-8e5a-bd9f57cc3c09/main

Tree @2148063d-1548-4818-8e5a-bd9f57cc3c09/main (Download .tar.gz)

Makefile.eventloop @2148063d-1548-4818-8e5a-bd9f57cc3c09/mainraw · history · blame

#
#  Example Makefile for building the eventloop example
#

CC ?= gcc
CC := $(CC)

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

	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -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 \
		src/duktape.c \
		-lm

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