source: to-imperative/trunk/samples/Syntax/Makefile @ 691

Last change on this file since 691 was 691, checked in by orlov, 18 years ago
  • Test for assignments of function results.
  • 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  assign1 \
12  assign2 \
13  static1
14
15
16SAMPLES_SOURCES  = $(SAMPLES:=.cc)
17SAMPLES_SOURCES += $(SAMPLES:=.rf)
18DEPS = $(SAMPLES:=.dep)
19
20DISTFILES = Makefile
21DISTFILES += $(SAMPLES_SOURCES)
22
23all:: $(SAMPLES)
24
25RFPC = $(TOPDIR)/compiler/rfpc
26LIBRF = $(TOPDIR)/library/librf.a
27LIBRFRT = $(TOPDIR)/runtime/librfrt.a
28LIBPXX = $(TOPDIR)/libp++/libp++.a
29
30#$(SAMPLES): $(LIBRFRT)
31
32LDFLAGS += -L$(TOPDIR)/library -L$(TOPDIR)/runtime
33LDFLAGS += -L$(TOPDIR)/libp++ -L$(TOPDIR)/libstdc++-stub
34LDLIBS += -lrf -lrfrt -lp++ -lsupc++
35
36%.cc: %.rf
37        $(RFPC) -cc -no $<
38
39#%.o: %.cc
40##      $(RFPC) -cc $<
41#       $(CXX) $(CPPFLAGS) $(CFLAGS) -c -o $@ $(<:.rf=.cc)
42
43#$(SAMPLES): %: %.o $(LIBRF) $(LIBRFRT) $(LIBPXX)
44#       $(CXX) -o $@ $< $(LDFLAGS) $(LDLIBS)
45
46$(SAMPLES): %: %.cc ;
47
48clean::
49        rm -f $(SAMPLES) *.o *.dep
50
51#-include $(DEPS)
Note: See TracBrowser for help on using the repository browser.