Ignore:
Timestamp:
Jun 7, 2004, 9:58:21 AM (17 years ago)
Author:
orlov
Message:
  • Improved makefiles.
File:
1 edited

Legend:

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

    r1414 r1429  
    1 CPPFLAGS += $(RFRTLIB_CFLAGS) $(RFLIB_CFLAGS)
    2 #CPPFLAGS += -DALL_INLINE #-DRFRT_DISABLE_TAIL_RECURSION
    3 #CFLAGS += -finline-limit=10000 -march=pentium3
    4 
    51SAMPLES_SOURCES  = $(SAMPLES:=.cc)
    62SAMPLES_SOURCES += $(SAMPLES:=.rf)
     
    128DISTFILES += $(SAMPLES_SOURCES)
    139
    14 #$(SAMPLES): $(LIBRFRT)
    15 
    16 %.cc: %.rf $(RFPC)
    17         $(RFPC) -cc $<
    18 
    19 %.hh: %.rfi
    20         $(RFPC) $<
    21 
    22 %.o: %.cc %.rf
    23 #       $(RFPC) -cc $<
    24         $(CXX) $(CPPFLAGS) $(CFLAGS) -c -o $@ $(<:.rf=.cc)
     10CPPFLAGS += $(RFRTLIB_CFLAGS) $(RFLIB_CFLAGS)
    2511
    2612$(SAMPLES): %: %.o $(LIBRF) $(LIBRFRT) $(LIBPXX)
    27         $(CXX) -o $@ $< $(RF_LDFLAGS) $(RF_LDLIBS)
    2813
    2914$(TESTS): %: %.o $(LIBRF) $(LIBRFRT) $(LIBPXX)
    30         $(CXX) -o $@ $< $(RF_LDFLAGS) $(RF_LDLIBS)
    3115
    3216clean::
    33         rm -f $(SAMPLES_EXE) $(TESTS_EXE) *.o *.dep
     17        rm -f $(SAMPLES_EXE) $(SAMPLES:=.cc) \
     18              $(TESTS_EXE) $(TESTS:=.cc) *.o *.dep
    3419
    3520check:: $(TESTS)
Note: See TracChangeset for help on using the changeset viewer.