[270434cc] | 1 | ## |
---|
| 2 | ## $Id$ |
---|
| 3 | ## |
---|
| 4 | |
---|
| 5 | rtems_tests_PROGRAMS = tar02 |
---|
| 6 | tar02_SOURCES = init.c ../../psxtests/psxfile01/test_cat.c \ |
---|
[48b2c10e] | 7 | initial_filesystem_tar.c initial_filesystem_tar.h |
---|
[270434cc] | 8 | |
---|
| 9 | dist_rtems_tests_DATA = tar02.scn |
---|
| 10 | |
---|
| 11 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
| 12 | include $(top_srcdir)/../automake/compile.am |
---|
| 13 | include $(top_srcdir)/../automake/leaf.am |
---|
| 14 | |
---|
| 15 | AM_CPPFLAGS += -I$(top_srcdir)/include |
---|
| 16 | AM_CPPFLAGS += -I$(top_srcdir)/../support/include |
---|
| 17 | AM_CPPFLAGS += -I$(top_srcdir)/../psxtests/include |
---|
| 18 | |
---|
| 19 | LINK_OBJS = $(tar02_OBJECTS) $(tar02_LDADD) |
---|
| 20 | LINK_LIBS = $(tar02_LDLIBS) |
---|
| 21 | |
---|
[48b2c10e] | 22 | tar02$(EXEEXT): $(tar02_OBJECTS) $(tar02_DEPENDENCIES) |
---|
[270434cc] | 23 | @rm -f tar02$(EXEEXT) |
---|
| 24 | $(make-exe) |
---|
| 25 | |
---|
[8091f24] | 26 | init.o: init.c initial_filesystem_tar.h |
---|
| 27 | |
---|
[270434cc] | 28 | initial_filesystem_tar.c: stamp-initial-fs-source |
---|
| 29 | |
---|
| 30 | initial_filesystem_tar.h: stamp-initial-fs-source |
---|
| 31 | |
---|
[8091f24] | 32 | stamp-initial-fs-source: stamp-fs-tar |
---|
[270434cc] | 33 | $(BIN2C) initial_filesystem.tar initial_filesystem_tar |
---|
| 34 | touch stamp-initial-fs-source |
---|
| 35 | |
---|
| 36 | stamp-filesystem: |
---|
| 37 | rm -rf initial_fs |
---|
[18130481] | 38 | $(MKDIR_P) initial_fs/home |
---|
[270434cc] | 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 | |
---|
[8091f24] | 44 | stamp-fs-tar: stamp-filesystem |
---|
[270434cc] | 45 | cd initial_fs ; pax -w -f ../initial_filesystem.tar home symlink |
---|
[8091f24] | 46 | touch stamp-fs-tar |
---|
[270434cc] | 47 | |
---|
| 48 | CLEANFILES = initial_filesystem* stamp-filesystem \ |
---|
[8091f24] | 49 | stamp-fs-tar stamp-initial-fs-source |
---|
[270434cc] | 50 | |
---|
| 51 | include $(top_srcdir)/../automake/local.am |
---|