source: to-imperative/trunk/compiler/Makefile @ 3575

Last change on this file since 3575 was 3575, checked in by orlov, 13 years ago
  • Corrected Makefile (compiler sources are in src dir nowdays).
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.3 KB
Line 
1TOPDIR = ../c++
2include $(TOPDIR)/rules.mk
3
4RFPC = $(TOPDIR)/compiler/rfpc
5RFLAGS = -B ../lib -I src -I ../java/wrappers -e rfpc.Main
6
7PROGRAMS = rfpc
8
9all:: $(PROGRAMS)
10
11RFPC_MODULES = \
12  rfpc \
13  rfp_lex \
14  rfp_parse \
15  rfp_compile \
16  rfp_err \
17  rfp_src \
18  rfp_asail \
19  rfp_asail_cpp \
20  rfp_asail_java \
21  rfp_asail_jbc \
22  rfp_asail_tpp \
23  rfp_as2as \
24  rfp_check \
25  rfp_format \
26  rfp_helper \
27  rfp_vars \
28  rfp_const \
29  rfp_clashes \
30  rfp_asail2asail \
31  rfp_debug \
32  NativeJava
33
34RFPC_SOURCES = $(addprefix src/,$(RFPC_MODULES:=.rf))
35RFPC_OBJECTS = $(addprefix src/,$(RFPC_MODULES:=.o))
36RFPC_CC_SOURCES = $(addprefix src/,$(RFPC_MODULES:=.cc))
37
38PROGRAMS_EXE = $(PROGRAMS:=$(EXE_SUFFIX))
39
40ALL_SOURCES = $(sort $(RFPC_SOURCES))
41ALL_INCLUDES = $(ALL_SOURCES:.rf=.rfi)
42
43DISTFILES = Makefile
44DISTFILES += gendeps.sh
45DISTFILES += $(ALL_SOURCES) $(ALL_INCLUDES)
46
47DEPS = $(ALL_SOURCES:.rf=.dep)
48
49#ifndef NODEPS
50#
51#%.dep: %.rf
52#       @echo Generating dependencies for $<
53#       @./gendeps.sh $<
54#
55#endif
56#
57#ifeq ($(RFP),rfp)
58#LDFLAGS=
59#LDLIBS=
60#endif
61
62CPPFLAGS += $(RFRTLIB_CFLAGS) $(RFLIB_CFLAGS)
63
64rfpc: $(RFPC_OBJECTS) $(LIBRF) $(LIBRFRT) $(LIBPXX)
65        $(CC) -o rfpc $(LDFLAGS) $(RFPC_OBJECTS) $(LIBRF) $(LIBRFRT) $(LIBPXX) $(LOADLIBES) $(LDLIBS)
66
67clean::
68        rm -f $(PROGRAMS_EXE) $(RFPC_CC_SOURCES) $(RFPC_OBJECTS) $(DEPS)
69
70-include $(DEPS)
Note: See TracBrowser for help on using the repository browser.