1
# ``The contents of this file are subject to the Erlang Public License,
2
# Version 1.1, (the "License"); you may not use this file except in
3
# compliance with the License. You should have received a copy of the
4
# Erlang Public License along with this software. If not, it can be
5
# retrieved via the world wide web at http://www.erlang.org/.
7
# Software distributed under the License is distributed on an "AS IS"
8
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
9
# the License for the specific language governing rights and limitations
12
# The Initial Developer of the Original Code is Ericsson Utvecklings AB.
13
# Portions created by Ericsson are Copyright 1999, Ericsson Utvecklings
14
# AB. All Rights Reserved.''
19
.PHONY : debug opt release clean distclean depend
23
include $(ERL_TOP)/make/target.mk
24
include $(ERL_TOP)/make/$(TARGET)/otp.mk
27
BUILD_RX = $(PRIV)/build_rx_lib
30
ifneq ($(TARGET),win32)
32
# ====================================================
34
# ====================================================
36
SOLIBS = erl_rx_driver.so
39
CFLAGS = @RX_CFLAGS@ -I$(ERLINCL) -I$(RX)/rx
42
LDFLAGS = @RX_LDFLAGS@ -L$(RX)/rx -lrx -lc
44
ERLINCL = $(ERL_TOP)/erts/emulator/beam
50
SRC_FILES = erl_rx_driver.c
52
OBJ_FILES= $(SRC_FILES:%.c=%.o)
59
$(BUILD_RX) $(PRIV) $(MAKE)
61
erl_rx_driver.so: rx $(OBJ_FILES)
62
$(LD) $(OBJ_FILES) $(LDFLAGS) -o $@
75
# ----------------------------------------------------
77
# ----------------------------------------------------
78
include $(ERL_TOP)/make/otp_release_targets.mk
81
$(INSTALL_PROGRAM) $(SOLIBS) $(PRIV)/lib/$(TARGET)
87
# ====================================================
89
# ====================================================
103
# ----------------------------------------------------
105
# ----------------------------------------------------
106
include $(ERL_TOP)/make/otp_release_targets.mk