forked from EvoLogics/evins
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (27 loc) · 1.09 KB
/
Makefile
File metadata and controls
37 lines (27 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
PROJECT = evins
DEPS = cowboy jsx parse_trans edown
dep_jsx = git https://github.com/talentdeficit/jsx 2.8.0
dep_cowboy = git https://github.com/extend/cowboy 1.0.4
dep_cowlib = git https://github.com/extend/cowlib 1.3.0
dep_ranch = git https://github.com/extend/ranch 1.2.1
dep_parse_trans = git https://github.com/uwiger/parse_trans
dep_edown = git https://github.com/uwiger/edown.git 0.8
CT_SUITES = share
C_SRC_TYPE = executable
C_SRC_OUTPUT ?= $(CURDIR)/priv/evo_serial
CFLAGS ?= -std=gnu99 -O3 -finline-functions -Wall -Wmissing-prototypes
LDFLAGS ?= -lm
otp_release = $(shell erl -noshell -eval 'io:format("~s", [erlang:system_info(otp_release)]), init:stop()')
otp_20plus = $(shell test $(otp_release) -ge 20; echo $$?)
ifeq ($(otp_20plus),0)
ERLC_OPTS += -Dfloor_bif=1
TEST_ERLC_OPTS += -Dfloor_bif=1
endif
include erlang.mk
APP_VERSION = $(shell cat $(RELX_OUTPUT_DIR)/$(RELX_REL_NAME)/version)
AR_NAME = $(RELX_OUTPUT_DIR)/$(RELX_REL_NAME)/$(RELX_REL_NAME)-$(APP_VERSION).tar.gz
EVINS_DIR ?= /opt/evins
.PHONY: install
install:: all
@mkdir -p $(EVINS_DIR)
@tar -xzf $(AR_NAME) -C $(EVINS_DIR)