File: Makefile

package info (click to toggle)
ntfs 971218-4
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 692 kB
  • ctags: 670
  • sloc: ansic: 7,774; sh: 1,509; makefile: 232
file content (160 lines) | stat: -rw-r--r-- 3,854 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
# Generated automatically from Makefile.in by configure.
# Distribution makefile for the NT filesystem driver
#
# Copyright (C) 1997 R�gis Duchesne
# Copyright (C) 1997 Martin v. L�wis

# Makefile configuration
#  Files
#   These lists are maintained manually, to avoid distributing garbage
C_SRC = \
	linux20/fs.c \
        linux20/support.c \
        linux20/sysctl.c \
	linux21/fs.c \
        linux21/support.c \
        linux21/sysctl.c \
        44bsd/mount_ntfs.c \
        44bsd/ntfs_vfsops.c \
        44bsd/ntfs_vnops.c \
        user/dump.c \
        user/ntcat.c \
        user/ntchange.c \
        user/ntcp.c \
        user/ntdir.c \
        user/ntdump.c \
        user/ntgrep.c	\
        user/nttools.c \
        user/support.c \
        common/attr.c \
        common/dir.c \
        common/inode.c \
        common/super.c \
        common/util.c
H_SRC = \
        linux20/sysctl.h \
        linux21/sysctl.h \
	linux21/ntfs_fs.h \
        user/dump.h \
        user/nttools.h \
        common/attr.h \
        common/dir.h \
        common/inode.h \
        common/macros.h \
        common/struct.h \
        common/super.h \
        common/support.h \
        common/types.h \
        common/util.h
MK_SRC = \
        scripts/install-sh \
        scripts/config.guess \
        scripts/config.sub \
        configure.in \
        acconfig.h \
        config.h.in \
        Makefile.in \
        linux20/GNUmakefile.in \
        linux21/GNUmakefile.in \
        44bsd/Makefile.in \
        44bsd/bsd.ntfs.mk \
        user/Makefile.in \
	configure
EXTRA_SRC = \
	linux21/ntfs_fs_i.h.in \
	linux21/ntfs_fs_sb.h.in \
	linux21/kernelpatch \
	linux21/kernelmakefile \
	linux21/ntfs.txt \
        ntfs.lpm \
        COPYING \
        HACKING \
        INSTALL \
        README \
        doc/AttrDef.html \
        doc/Boot.html \
        doc/LogFile.html \
        doc/UpCase.html \
        doc/abitmap.html \
        doc/attr.html \
        doc/attrlist.html \
        doc/data.html \
        doc/dir.html \
        doc/direntry.html \
        doc/filename.html \
        doc/index.html \
        doc/indexallocation.html \
        doc/indexroot.html \
        doc/logrecord.html \
        doc/mft.html \
        doc/restart.html \
        doc/runs.html \
        doc/special.html \
        doc/standard.html \
        linux20/patch \
        ToDo
DIST = $(C_SRC) $(H_SRC) $(MK_SRC) $(EXTRA_SRC)
#   Subdirectories to build
SUBDIR = user linux20
#   Programs

ETAGS   = etags
TAR     = tar

# Note : Solaris 'make' doesn't support the -C option
all: force
	@for i in $(SUBDIR); do \
          cd $$i; \
	  $(MAKE); \
          cd ..; \
	done

install: force
	@for i in $(SUBDIR); do \
	  cd $$i; \
          $(MAKE) install DESTDIR=$(DESTDIR); \
          cd ..; \
	done

clean: force
	@for i in $(SUBDIR); do \
	  cd $$i; \
          $(MAKE) clean; \
          cd ..; \
	done; \
	rm -f core *~ config.cache config.log config.status

mount: force
	cd ./linux20;$(MAKE) mount

# Autoconf autoremake
# FIXME: consider srcdir?
configure: configure.in
	autoconf

config.h: stamp-h
stamp-h: config.h.in config.status
	./config.status

Makefile: Makefile.in config.status
	./config.status

config.status: configure
	./config.status --recheck

# This target doesn't generate a 'force' file. A target 'foo' depending on
# 'force' is therefore forced to be updated, even if a 'foo' file exists
force:

# Following rules are only used by the distribution maintainer, supposed to be
# running a GNU system :)
tags: force $(C_SRC)
	@$(ETAGS) $(C_SRC) $(H_SRC)

.tar.gz: force
	@rm -f ../ntfs.tar.gz; \
        date=`date +"%y%m%d"`; \
        sed -e "s/^#define NTFS_VERSION \"\(.*\)\"/#define NTFS_VERSION \"$$date\"/" acconfig.h > acconfig2.h; \
        mv acconfig2.h acconfig.h; \
	autoheader; \
	$(TAR) -C .. -cvzopf ntfs.tar.gz $(DIST:%=ntfs/%)