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

    r693 r695  
    33include $(TOPDIR)/rules.mk
    44
    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
     5SUBDIRS = \
     6  Access \
     7  Arithm \
     8  Convert \
     9  Syntax
    910
    1011SAMPLES = \
     
    1617  select3
    1718
    18 SUBDIRS = \
    19   Access \
    20   Arithm \
    21   Convert \
    22   Syntax
    23 
    24 SAMPLES_SOURCES  = $(SAMPLES:=.cc)
    25 SAMPLES_SOURCES += $(SAMPLES:=.rf)
    26 DEPS = $(SAMPLES:=.dep)
    27 
    28 DISTFILES = Makefile
    29 DISTFILES += $(SAMPLES_SOURCES)
    30 
    31 all:: $(SAMPLES)
    32 
    33 RFPC = $(TOPDIR)/compiler/rfpc
    34 LIBRF = $(TOPDIR)/library/librf.a
    35 LIBRFRT = $(TOPDIR)/runtime/librfrt.a
    36 LIBPXX = $(TOPDIR)/libp++/libp++.a
    37 
    38 #$(SAMPLES): $(LIBRFRT)
    39 
    40 LDFLAGS += -L$(TOPDIR)/library -L$(TOPDIR)/runtime
    41 LDFLAGS += -L$(TOPDIR)/libp++ -L$(TOPDIR)/libstdc++-stub
    42 LDLIBS += -lrf -lrfrt -lp++ -lsupc++
    43 
    44 %.cc: %.rf
    45         $(RFPC) -cc $<
    46 
    47 %.o: %.cc
    48 #       $(RFPC) -cc $<
    49         $(CXX) $(CPPFLAGS) $(CFLAGS) -c -o $@ $(<:.rf=.cc)
    50 
    51 $(SAMPLES): %: %.o $(LIBRF) $(LIBRFRT) $(LIBPXX)
    52         $(CXX) -o $@ $< $(LDFLAGS) $(LDLIBS)
    53 
    54 clean::
    55         rm -f $(SAMPLES) *.o *.dep
     19include $(TOPDIR)/samples/samples.mk
    5620
    5721-include $(DEPS)
Note: See TracChangeset for help on using the changeset viewer.