source: to-imperative/trunk/c++/compiler/Makefile @ 2744

Last change on this file since 2744 was 2744, checked in by orlov, 14 years ago
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1009 bytes
Line 
1TOPDIR = ..
2include $(TOPDIR)/rules.mk
3
4PROGRAMS = rfpc
5
6all:: $(PROGRAMS)
7
8RFPC_MODULES = \
9  rfpc \
10  rfp_lex \
11  rfp_parse \
12  rfp_compile \
13  rfp_err \
14  rfp_src \
15  rfp_asail_cpp \
16  rfp_asail_tpp \
17  rfp_asail_java \
18  rfp_asail_jbc \
19  rfp_as2as \
20  rfp_asail2asail \
21  rfp_check \
22  rfp_format \
23  rfp_helper \
24  rfp_vars \
25  rfp_const \
26  rfp_clashes \
27  rfp_debug
28
29RFPC_SOURCES = $(RFPC_MODULES:=.cc)
30RFPC_OBJECTS = $(RFPC_MODULES:=.o)
31
32PROGRAMS_EXE = $(PROGRAMS:=$(EXE_SUFFIX))
33
34ALL_SOURCES = $(sort $(RFPC_SOURCES))
35
36DISTFILES = Makefile
37DISTFILES += $(ALL_SOURCES)
38
39CPPFLAGS += $(RFRTLIB_CFLAGS) $(RFLIB_CFLAGS)
40
41rfpc.cc: Makefile $(CONFIG)
42        sed 's?\(.*RFP_Default_Boot_Path =\).*?\1 (Char::create_expr ("$(INSTALL_DIR)/lib/refal-plus")) ();?' \
43        $@ > $@.tmp
44        mv $@.tmp $@
45
46rfpc: $(RFPC_OBJECTS) $(LIBRF) $(LIBRFRT) $(LIBPXX)
47
48clean::
49        rm -f $(PROGRAMS_EXE) *.o *.s *.dep
50
51install:: all
52        mkdir -p -m 0755 $(INSTALL_DIR)/bin
53        install -m 0755 $(PROGRAMS_EXE) $(INSTALL_DIR)/bin/
54
55#-include $(DEPS)
Note: See TracBrowser for help on using the repository browser.