-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (25 loc) · 948 Bytes
/
Makefile
File metadata and controls
31 lines (25 loc) · 948 Bytes
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
MODULE_big = asmjit
PROJ_ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
ASMJIT_SRCS = $(wildcard $(PROJ_ROOT_DIR)/deps/asmjit/asmjit/*/*.cpp)
OBJS = asmjit.o asmjit_deform.o asmjit_expr.o
OBJS += $(ASMJIT_SRCS:.cpp=.o)
# Headers live under deps/asmjit/asmjit/, so include deps/asmjit so that
# <asmjit/...> resolves correctly. Keep deps/asmjit/src for backward
# compatibility with any remaining out-of-tree object files.
PG_CPPFLAGS += -Ideps/asmjit -Ideps/asmjit/src
# libasmjit is built in the `build` dir.
EXTRA_CLEAN = build
# We should use C++ compiler to link object files.
override COMPILER = $(CXX) $(CFLAGS)
# Disable the bitcode generation.
override with_llvm = no
ifdef USE_PGXS
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
else
subdir = contrib/pg_asmjit
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif