| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 | ## Copyright (c) 2015 the Civetweb developers## License http://opensource.org/licenses/mit-license.php MIT License#ifndef WITH_DUKTAPE  $(error WITH_DUKTAPE is not defined)endif# Duktape default version is 1.3.0 (103)WITH_DUKTAPE_VERSION ?= 103DUKTAPE_VERSION_KNOWN = 0# Select src and header according to the Duktape versionifeq ($(WITH_DUKTAPE_VERSION), 103)  $(info Duktape: Using version 1.3.0)  DUKTAPE_DIR = src/third_party/duktape-1.3.0/src  DUKTAPE_SHARED_LIB_FLAG = -lduktape1.3  DUKTAPE_CFLAGS = -DDUKTAPE_VERSION_MAKEFILE=501  DUKTAPE_VERSION_KNOWN = 1endififneq ($(DUKTAPE_VERSION_KNOWN), 1)  $(error Duktape: Unknwon version - $(WITH_DUKTAPE_VERSION))endif# Add flags for all Duktape versionsDUKTAPE_CFLAGS += -I$(DUKTAPE_DIR) -DUSE_DUKTAPEifneq ($(TARGET_OS),WIN32)#  DUKTAPE_CFLAGS += endififdef WITH_DUKTAPE_SHARED  DUKTAPE_SOURCE_FILES =  $(info Duktape: using dynamic linking)else  DUKTAPE_SOURCE_FILES = duktape.cifeq ($(WITH_DUKTAPE_VERSION), 104)#    DUKTAPE_SOURCE_FILES +=endif  $(info Duktape: using static library)endifDUKTAPE_SOURCES = $(addprefix $(DUKTAPE_DIR)/, $(DUKTAPE_SOURCE_FILES))DUKTAPE_OBJECTS = $(DUKTAPE_SOURCES:.c=.o)OBJECTS += $(DUKTAPE_OBJECTS)CFLAGS += $(DUKTAPE_CFLAGS)SOURCE_DIRS = $(DUKTAPE_DIR)
 |