Changeset 716 for to-imperative/trunk/samples/Syntax/Makefile
- Timestamp:
- May 3, 2003, 2:12:35 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
to-imperative/trunk/samples/Syntax/Makefile
r691 r716 3 3 include $(TOPDIR)/rules.mk 4 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 5 SAMPLES = \ 6 assign2 \ 7 const4 9 8 10 SAMPLES = \ 11 assign1 \ 12 assign2 \ 13 static1 14 15 16 SAMPLES_SOURCES = $(SAMPLES:=.cc) 17 SAMPLES_SOURCES += $(SAMPLES:=.rf) 18 DEPS = $(SAMPLES:=.dep) 19 20 DISTFILES = Makefile 21 DISTFILES += $(SAMPLES_SOURCES) 22 23 all:: $(SAMPLES) 24 25 RFPC = $(TOPDIR)/compiler/rfpc 26 LIBRF = $(TOPDIR)/library/librf.a 27 LIBRFRT = $(TOPDIR)/runtime/librfrt.a 28 LIBPXX = $(TOPDIR)/libp++/libp++.a 29 30 #$(SAMPLES): $(LIBRFRT) 31 32 LDFLAGS += -L$(TOPDIR)/library -L$(TOPDIR)/runtime 33 LDFLAGS += -L$(TOPDIR)/libp++ -L$(TOPDIR)/libstdc++-stub 34 LDLIBS += -lrf -lrfrt -lp++ -lsupc++ 9 include $(TOPDIR)/samples/samples.mk 35 10 36 11 %.cc: %.rf 37 12 $(RFPC) -cc -no $< 38 13 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 48 clean:: 49 rm -f $(SAMPLES) *.o *.dep 50 51 #-include $(DEPS) 14 -include $(DEPS)
Note: See TracChangeset
for help on using the changeset viewer.