source: to-imperative/trunk/samples/Convert/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.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  tochars \
12  tolower \
13  toupper \
14  bytes_to_chars \
15  bytes_to_chars_inval \
16  chars_to_bytes \
17  to_int \
18  to_int_inval \
19  to_int.bug1 \
20  to_int.bug2 \
21  to_int.bug3
22
23
24SAMPLES_SOURCES  = $(SAMPLES:=.cc)
25SAMPLES_SOURCES += $(SAMPLES:=.rf)
26DEPS = $(SAMPLES:=.dep)
27
28DISTFILES = Makefile
29DISTFILES += $(SAMPLES_SOURCES)
30
31all:: $(SAMPLES)
32
33RFPC = $(TOPDIR)/compiler/rfpc
34LIBRF = $(TOPDIR)/library/librf.a
35LIBRFRT = $(TOPDIR)/runtime/librfrt.a
36LIBPXX = $(TOPDIR)/libp++/libp++.a
37
38#$(SAMPLES): $(LIBRFRT)
39
40LDFLAGS += -L$(TOPDIR)/library -L$(TOPDIR)/runtime
41LDFLAGS += -L$(TOPDIR)/libp++ -L$(TOPDIR)/libstdc++-stub
42LDLIBS += -lrf -lrfrt -lp++ -lsupc++
43
44%.cc: %.rf
45        $(RFPC) -cc $<
46
47%.o: %.cc
48#       $(RFPC) -cc $<
49        $(CXX) $(CPPFLAGS) $(CFLAGS) -c -o $@ $(<:.rf=.cc)
50
51$(SAMPLES): %: %.o $(LIBRF) $(LIBRFRT) $(LIBPXX)
52        $(CXX) -o $@ $< $(LDFLAGS) $(LDLIBS)
53       
54clean::
55        rm -f $(SAMPLES) *.o *.dep
56
57-include $(DEPS)
Note: See TracBrowser for help on using the repository browser.