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/Access/Makefile

    r689 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 = \
     
    2116  length
    2217
    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
     18include $(TOPDIR)/samples/samples.mk
    5519
    5620-include $(DEPS)
Note: See TracChangeset for help on using the changeset viewer.