Ignore:
Timestamp:
Jun 10, 2003, 7:51:31 PM (18 years ago)
Author:
pooh
Message:
  • Reorganized samples and tests making process.
  • Added new make targets samples', tests' and `check'.
File:
1 edited

Legend:

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

    r838 r842  
    1010DISTFILES = Makefile
    1111DISTFILES += $(SAMPLES_SOURCES)
    12 
    13 all:: $(SAMPLES)
    1412
    1513RFPC = $(TOPDIR)/compiler/rfpc
     
    3432        $(CXX) -o $@ $< $(LDFLAGS) $(LDLIBS)
    3533
     34$(TESTS): %: %.o $(LIBRF) $(LIBRFRT) $(LIBPXX)
     35        $(CXX) -o $@ $< $(LDFLAGS) $(LDLIBS)
     36
    3637clean::
    37         rm -f $(SAMPLES) *.o *.dep
     38        rm -f $(SAMPLES) $(TESTS) *.o *.dep
    3839
     40check:: $(TESTS)
     41        @$(foreach target,$(TESTS), \
     42          $(TOPDIR)/samples/check.sh $(target) ; \
     43        )
     44
     45DEPS = $(SAMPLES:=.dep)
     46DEPS += $(TESTS:=.dep)
Note: See TracChangeset for help on using the changeset viewer.