source: rtems/testsuites/libtests/tar02/Makefile.am @ 8091f24

4.11
Last change on this file since 8091f24 was 8091f24, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 29, 2010 at 8:56:02 PM

2010-07-29 Joel Sherrill <joel.sherrilL@…>

  • tar01/Makefile.am, tar02/Makefile.am: Fix dependencies for parallel build.
  • Property mode set to 100644
File size: 1.4 KB
Line 
1##
2## $Id$
3##
4
5rtems_tests_PROGRAMS = tar02
6tar02_SOURCES = init.c ../../psxtests/psxfile01/test_cat.c \
7  initial_filesystem_tar.c initial_filesystem_tar.h
8
9dist_rtems_tests_DATA = tar02.scn
10
11include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
12include $(top_srcdir)/../automake/compile.am
13include $(top_srcdir)/../automake/leaf.am
14
15AM_CPPFLAGS += -I$(top_srcdir)/include
16AM_CPPFLAGS += -I$(top_srcdir)/../support/include
17AM_CPPFLAGS += -I$(top_srcdir)/../psxtests/include
18
19LINK_OBJS = $(tar02_OBJECTS) $(tar02_LDADD)
20LINK_LIBS = $(tar02_LDLIBS)
21
22tar02$(EXEEXT): $(tar02_OBJECTS) $(tar02_DEPENDENCIES)
23        @rm -f tar02$(EXEEXT)
24        $(make-exe)
25
26init.o: init.c initial_filesystem_tar.h
27
28initial_filesystem_tar.c: stamp-initial-fs-source
29
30initial_filesystem_tar.h: stamp-initial-fs-source
31
32stamp-initial-fs-source: stamp-fs-tar
33        $(BIN2C) initial_filesystem.tar initial_filesystem_tar
34        touch stamp-initial-fs-source
35
36stamp-filesystem:
37        rm -rf initial_fs
38        $(MKDIR_P) initial_fs/home
39        (echo "This is a test of loading an RTEMS filesystem from an" ; \
40        echo "initial tar image.") >initial_fs/home/test_file
41        cd initial_fs && ln -s home/test_file symlink
42        touch stamp-filesystem
43
44stamp-fs-tar: stamp-filesystem
45        cd initial_fs ; pax -w -f ../initial_filesystem.tar home symlink
46        touch stamp-fs-tar
47
48CLEANFILES = initial_filesystem* stamp-filesystem \
49            stamp-fs-tar stamp-initial-fs-source
50
51include $(top_srcdir)/../automake/local.am
Note: See TracBrowser for help on using the repository browser.