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.''
16
# $Id: Makefile,v 1.1 2008/12/17 09:53:37 mikpe Exp $
18
include $(ERL_TOP)/make/target.mk
21
ERL_COMPILE_FLAGS += -Ddebug -W
24
include $(ERL_TOP)/make/$(TARGET)/otp.mk
26
# ----------------------------------------------------
28
# ----------------------------------------------------
32
# ----------------------------------------------------
33
# Release directory specification
34
# ----------------------------------------------------
35
RELSYSDIR = $(RELEASE_PATH)/lib/mnesia-$(VSN)
37
# ----------------------------------------------------
39
# ----------------------------------------------------
45
mnesia_checkpoint_sup \
51
mnesia_frag_old_hash \
73
ERL_FILES= $(MODULES:%=%.erl)
75
TARGET_FILES= $(MODULES:%=$(EBIN)/%.$(EMULATOR)) $(APP_TARGET) $(APPUP_TARGET)
79
APP_SRC= $(APP_FILE).src
80
APP_TARGET= $(EBIN)/$(APP_FILE)
82
APPUP_FILE= mnesia.appup
84
APPUP_SRC= $(APPUP_FILE).src
85
APPUP_TARGET= $(EBIN)/$(APPUP_FILE)
89
# ----------------------------------------------------
91
# ----------------------------------------------------
93
ERL_COMPILE_FLAGS += \
95
+'{parse_transform,sys_pre_attributes}' \
96
+'{attribute,insert,vsn,"mnesia_$(MNESIA_VSN)"}' \
99
# ----------------------------------------------------
101
# ----------------------------------------------------
109
rm -f $(TARGET_FILES)
114
# ----------------------------------------------------
115
# Special Build Targets
116
# ----------------------------------------------------
118
$(APP_TARGET): $(APP_SRC) ../vsn.mk
119
sed -e 's;%VSN%;$(VSN);' $< > $@
121
$(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk
122
sed -e 's;%VSN%;$(VSN);' $< > $@
125
# ----------------------------------------------------
127
# ----------------------------------------------------
128
include $(ERL_TOP)/make/otp_release_targets.mk
131
$(INSTALL_DIR) $(RELSYSDIR)/src
132
$(INSTALL_DATA) $(HRL_FILES) $(ERL_FILES) $(RELSYSDIR)/src
133
$(INSTALL_DIR) $(RELSYSDIR)/ebin
134
$(INSTALL_DATA) $(TARGET_FILES) $(RELSYSDIR)/ebin