Ignore:
Timestamp:
Apr 26, 2004, 9:47:54 PM (17 years ago)
Author:
orlov
Message:
  • Improved makefiles.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • to-imperative/trunk/samples/samples.mk

    r1010 r1407  
    1 CPPFLAGS += -I$(TOPDIR)/runtime -I$(TOPDIR)/libp++
    2 CPPFLAGS += -I$(TOPDIR)/library/include
    3 CPPFLAGS += -DALL_INLINE #-DRFRT_DISABLE_TAIL_RECURSION
     1CPPFLAGS += $(RFRTLIB_CFLAGS) $(RFLIB_CFLAGS)
     2#CPPFLAGS += -DALL_INLINE #-DRFRT_DISABLE_TAIL_RECURSION
    43#CFLAGS += -finline-limit=10000 -march=pentium3
    54
    65SAMPLES_SOURCES  = $(SAMPLES:=.cc)
    76SAMPLES_SOURCES += $(SAMPLES:=.rf)
    8 DEPS = $(SAMPLES:=.dep)
    97
    108DISTFILES = Makefile
    119DISTFILES += $(SAMPLES_SOURCES)
    1210
    13 RFPC = $(TOPDIR)/compiler/rfpc
    14 LIBRF = $(TOPDIR)/library/librf.a
    15 LIBRFRT = $(TOPDIR)/runtime/librfrt.a
    16 LIBPXX = $(TOPDIR)/libp++/libp++.a
    17 
    1811#$(SAMPLES): $(LIBRFRT)
    19 
    20 LDFLAGS += -L$(TOPDIR)/library -L$(TOPDIR)/runtime
    21 LDFLAGS += -L$(TOPDIR)/libp++ -L$(TOPDIR)/libstdc++-stub
    22 LDLIBS += -lrf -lrfrt -lp++ -lsupc++ -lgmp
    2312
    2413%.cc: %.rf $(RFPC)
    2514        $(RFPC) -cc $<
    26        
     15
    2716%.hh: %.rfi
    2817        $(RFPC) $<
     
    3322
    3423$(SAMPLES): %: %.o $(LIBRF) $(LIBRFRT) $(LIBPXX)
    35         $(CXX) -o $@ $< $(LDFLAGS) $(LDLIBS)
     24        $(CXX) -o $@ $< $(RF_LDFLAGS) $(RF_LDLIBS)
    3625
    3726$(TESTS): %: %.o $(LIBRF) $(LIBRFRT) $(LIBPXX)
    38         $(CXX) -o $@ $< $(LDFLAGS) $(LDLIBS)
     27        $(CXX) -o $@ $< $(RF_LDFLAGS) $(RF_LDLIBS)
    3928
    4029clean::
Note: See TracChangeset for help on using the changeset viewer.