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

Last change on this file since 689 was 689, checked in by orlov, 18 years ago
  • All Words are changed to Chars sequences, so tests work with the current runtime version.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 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  left_inval \
17  right \
18  right_inval \
19  middle \
20  middle_inval \
21  length
22
23SAMPLES_SOURCES  = $(SAMPLES:=.cc)
24SAMPLES_SOURCES += $(SAMPLES:=.rf)
25DEPS = $(SAMPLES:=.dep)
26
27DISTFILES = Makefile
28DISTFILES += $(SAMPLES_SOURCES)
29
30all:: $(SAMPLES)
31
32RFPC = $(TOPDIR)/compiler/rfpc
33LIBRF = $(TOPDIR)/library/librf.a
34LIBRFRT = $(TOPDIR)/runtime/librfrt.a
35LIBPXX = $(TOPDIR)/libp++/libp++.a
36
37#$(SAMPLES): $(LIBRFRT)
38
39LDFLAGS += -L$(TOPDIR)/library -L$(TOPDIR)/runtime
40LDFLAGS += -L$(TOPDIR)/libp++ -L$(TOPDIR)/libstdc++-stub
41LDLIBS += -lrf -lrfrt -lp++ -lsupc++
42
43%.cc: %.rf
44        $(RFPC) -cc $<
45
46%.o: %.cc
47#       $(RFPC) -cc $<
48        $(CXX) $(CPPFLAGS) $(CFLAGS) -c -o $@ $(<:.rf=.cc)
49
50$(SAMPLES): %: %.o $(LIBRF) $(LIBRFRT) $(LIBPXX)
51        $(CXX) -o $@ $< $(LDFLAGS) $(LDLIBS)
52       
53clean::
54        rm -f $(SAMPLES) *.o *.dep
55
56-include $(DEPS)
Note: See TracBrowser for help on using the repository browser.