Ignore:
Timestamp:
Apr 29, 2003, 7:55:27 PM (18 years ago)
Author:
pooh
Message:
  • Samples makefiles structure simplified.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • to-imperative/trunk/samples/Arithm/Makefile

    r594 r695  
    22
    33include $(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
    94
    105SAMPLES = \
     
    1712  gcd
    1813
    19 SAMPLES_SOURCES  = $(SAMPLES:=.cc)
    20 SAMPLES_SOURCES += $(SAMPLES:=.rf)
    21 DEPS = $(SAMPLES:=.dep)
    22 
    23 DISTFILES = Makefile
    24 DISTFILES += $(SAMPLES_SOURCES)
    25 
    26 all:: $(SAMPLES)
    27 
    28 RFPC = $(TOPDIR)/compiler/rfpc
    29 LIBRF = $(TOPDIR)/library/librf.a
    30 LIBRFRT = $(TOPDIR)/runtime/librfrt.a
    31 LIBPXX = $(TOPDIR)/libp++/libp++.a
    32 
    33 #$(SAMPLES): $(LIBRFRT)
    34 
    35 LDFLAGS += -L$(TOPDIR)/library -L$(TOPDIR)/runtime
    36 LDFLAGS += -L$(TOPDIR)/libp++ -L$(TOPDIR)/libstdc++-stub
    37 LDLIBS += -lrf -lrfrt -lp++ -lsupc++
    38 
    39 %.cc: %.rf
    40         $(RFPC) -cc $<
    41 
    42 %.o: %.cc
    43 #       $(RFPC) -cc $<
    44         $(CXX) $(CPPFLAGS) $(CFLAGS) -c -o $@ $(<:.rf=.cc)
    45 
    46 $(SAMPLES): %: %.o $(LIBRF) $(LIBRFRT) $(LIBPXX)
    47         $(CXX) -o $@ $< $(LDFLAGS) $(LDLIBS)
    48        
    49 clean::
    50         rm -f $(SAMPLES) *.o *.dep
     14include $(TOPDIR)/samples/samples.mk
    5115
    5216-include $(DEPS)
Note: See TracChangeset for help on using the changeset viewer.