source: to-imperative/trunk/samples/samples.mk @ 2303

Last change on this file since 2303 was 1429, checked in by orlov, 17 years ago
  • Improved makefiles.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 583 bytes
Line 
1SAMPLES_SOURCES  = $(SAMPLES:=.cc)
2SAMPLES_SOURCES += $(SAMPLES:=.rf)
3
4SAMPLES_EXE = $(SAMPLES:=$(EXE_SUFFIX))
5TESTS_EXE = $(TESTS:=$(EXE_SUFFIX))
6
7DISTFILES = Makefile
8DISTFILES += $(SAMPLES_SOURCES)
9
10CPPFLAGS += $(RFRTLIB_CFLAGS) $(RFLIB_CFLAGS)
11
12$(SAMPLES): %: %.o $(LIBRF) $(LIBRFRT) $(LIBPXX)
13
14$(TESTS): %: %.o $(LIBRF) $(LIBRFRT) $(LIBPXX)
15
16clean::
17        rm -f $(SAMPLES_EXE) $(SAMPLES:=.cc) \
18              $(TESTS_EXE) $(TESTS:=.cc) *.o *.dep
19
20check:: $(TESTS)
21        @$(foreach target,$(TESTS), \
22          $(TOPDIR)/samples/check.sh $(target) ; \
23        )
24
25DEPS = $(SAMPLES:=.dep)
26DEPS += $(TESTS:=.dep)
Note: See TracBrowser for help on using the repository browser.