source: to-imperative/trunk/samples/Access/Makefile @ 685

Last change on this file since 685 was 685, checked in by orlov, 18 years ago
  • Removed *.cc files. All of them can be generated by new compiler version.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.0 KB
Line 
1TOPDIR = ../..
2
3include $(TOPDIR)/rules.mk
4
5CPPFLAGS += -I$(TOPDIR)/runtime -I$(TOPDIR)/libp++
6CPPFLAGS += -I$(TOPDIR)/library/include
7CPPFLAGS += -DALL_INLINE #-DRFRT_DISABLE_TAIL_RECURSION
8#CFLAGS += -finline-limit=10000 -march=pentium3
9
10SAMPLES = \
11  l1 \
12  l_inval1 \
13  r1 \
14  r_inval1 \
15  left \
16  right \
17  middle \
18  length
19
20SAMPLES_SOURCES  = $(SAMPLES:=.cc)
21SAMPLES_SOURCES += $(SAMPLES:=.rf)
22DEPS = $(SAMPLES:=.dep)
23
24DISTFILES = Makefile
25DISTFILES += $(SAMPLES_SOURCES)
26
27all:: $(SAMPLES)
28
29RFPC = $(TOPDIR)/compiler/rfpc
30LIBRF = $(TOPDIR)/library/librf.a
31LIBRFRT = $(TOPDIR)/runtime/librfrt.a
32LIBPXX = $(TOPDIR)/libp++/libp++.a
33
34#$(SAMPLES): $(LIBRFRT)
35
36LDFLAGS += -L$(TOPDIR)/library -L$(TOPDIR)/runtime
37LDFLAGS += -L$(TOPDIR)/libp++ -L$(TOPDIR)/libstdc++-stub
38LDLIBS += -lrf -lrfrt -lp++ -lsupc++
39
40%.cc: %.rf
41        $(RFPC) -cc $<
42
43%.o: %.cc
44#       $(RFPC) -cc $<
45        $(CXX) $(CPPFLAGS) $(CFLAGS) -c -o $@ $(<:.rf=.cc)
46
47$(SAMPLES): %: %.o $(LIBRF) $(LIBRFRT) $(LIBPXX)
48        $(CXX) -o $@ $< $(LDFLAGS) $(LDLIBS)
49       
50clean::
51        rm -f $(SAMPLES) *.o *.dep
52
53-include $(DEPS)
Note: See TracBrowser for help on using the repository browser.