4
# Copyright Ericsson AB 2009. All Rights Reserved.
6
# The contents of this file are subject to the Erlang Public License,
7
# Version 1.1, (the "License"); you may not use this file except in
8
# compliance with the License. You should have received a copy of the
9
# Erlang Public License along with this software. If not, it can be
10
# retrieved online at http://www.erlang.org/.
12
# Software distributed under the License is distributed on an "AS IS"
13
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14
# the License for the specific language governing rights and limitations
21
include ../../config.mk
25
ERLINC = $(TOPDIR)/include
28
TESTTARGETS = $(TESTMODS:%=%.beam)
29
TESTSRC = $(TESTMODS:%=%.erl)
31
RESOURCEFILES = appicon.ico basicdlg.xpm custclas.xpm fileopen.gif menu.xrc \
32
resource.xrc uncenter.xpm variable.xrc appicon.xpm basicdlg.xrc \
33
custclas.xrc filesave.gif platform.xpm stop.xpm uncenter.xrc \
34
artprov.xpm controls.xpm derivdlg.xpm frame.xrc platform.xrc \
35
throbber.gif update.gif artprov.xrc controls.xrc derivdlg.xrc \
36
fuzzy.gif quotes.gif toolbar.xrc variable.xpm
38
TESTRESOURCE = $(RESOURCEFILES:%=rc/%)
41
opt debug: $(TESTTARGETS)
44
rm -f *~ core erl_crash.dump
49
erl -smp -detached -pa $(TOPDIR)/ebin -s xrc
51
ifneq ($(INSIDE_ERLSRC),true)
54
$(ERLC) -W -I$(ERLINC) -bbeam -o$(BIN) $<
57
EXRELSYSDIR = $(RELSYSDIR)/examples/xrc
58
include $(ERL_TOP)/make/otp_release_targets.mk
63
$(INSTALL_DIR) $(EXRELSYSDIR)
64
$(INSTALL_DATA) $(TESTSRC) $(EXRELSYSDIR)
65
$(INSTALL_DATA) $(TESTTARGETS) $(EXRELSYSDIR)
66
$(INSTALL_DIR) $(EXRELSYSDIR)/rc
67
$(INSTALL_DATA) $(TESTRESOURCE) $(EXRELSYSDIR)/rc