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 | |
---|
1 | TOPDIR = ../.. |
---|
2 | |
---|
3 | include $(TOPDIR)/rules.mk |
---|
4 | |
---|
5 | CPPFLAGS += -I$(TOPDIR)/runtime -I$(TOPDIR)/libp++ |
---|
6 | CPPFLAGS += -I$(TOPDIR)/library/include |
---|
7 | CPPFLAGS += -DALL_INLINE #-DRFRT_DISABLE_TAIL_RECURSION |
---|
8 | #CFLAGS += -finline-limit=10000 -march=pentium3 |
---|
9 | |
---|
10 | SAMPLES = \ |
---|
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 | |
---|
23 | SAMPLES_SOURCES = $(SAMPLES:=.cc) |
---|
24 | SAMPLES_SOURCES += $(SAMPLES:=.rf) |
---|
25 | DEPS = $(SAMPLES:=.dep) |
---|
26 | |
---|
27 | DISTFILES = Makefile |
---|
28 | DISTFILES += $(SAMPLES_SOURCES) |
---|
29 | |
---|
30 | all:: $(SAMPLES) |
---|
31 | |
---|
32 | RFPC = $(TOPDIR)/compiler/rfpc |
---|
33 | LIBRF = $(TOPDIR)/library/librf.a |
---|
34 | LIBRFRT = $(TOPDIR)/runtime/librfrt.a |
---|
35 | LIBPXX = $(TOPDIR)/libp++/libp++.a |
---|
36 | |
---|
37 | #$(SAMPLES): $(LIBRFRT) |
---|
38 | |
---|
39 | LDFLAGS += -L$(TOPDIR)/library -L$(TOPDIR)/runtime |
---|
40 | LDFLAGS += -L$(TOPDIR)/libp++ -L$(TOPDIR)/libstdc++-stub |
---|
41 | LDLIBS += -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 | |
---|
53 | clean:: |
---|
54 | rm -f $(SAMPLES) *.o *.dep |
---|
55 | |
---|
56 | -include $(DEPS) |
---|
Note: See
TracBrowser
for help on using the repository browser.