Changeset 695


Ignore:
Timestamp:
Apr 29, 2003, 7:55:27 PM (18 years ago)
Author:
pooh
Message:
  • Samples makefiles structure simplified.
Location:
to-imperative/trunk/samples
Files:
1 added
4 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)
  • 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)
  • to-imperative/trunk/samples/Convert/Makefile

    r685 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  to_int.bug3
    2217
    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
     18include $(TOPDIR)/samples/samples.mk
    5619
    5720-include $(DEPS)
  • 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.