summaryrefslogtreecommitdiff
path: root/fs/devfs/Makefile
blob: 7b7e90fdcba04973b58c59036a4471731fdf6bce (plain)
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
#
# Makefile for the linux devfs-filesystem routines.
#

export-objs := base.o util.o

obj-$(CONFIG_DEVFS_FS) += devfs.o

devfs-objs := base.o util.o

# Special case to support building documentation
ifndef TOPDIR
TOPDIR = ../..
endif

include $(TOPDIR)/Rules.make


# Rule to build documentation
doc:	base.c util.c
	@echo '$$PACKAGE devfs' > devfs.doc
	@echo '$$NAME Linux Kernel' >> devfs.doc
	@echo '$$SUMMARY devfs (Device FileSystem) functions' >> devfs.doc
	@echo '$$SYNOPSIS "#include <linux/devfs_fs.h>"' >> devfs.doc
	@echo '$$END' >> devfs.doc
	c2doc base.c util.c >> devfs.doc
	karma_doc2man -section 9 devfs.doc .
	rm devfs.doc
	gzip --best *.9
	mv *.9.gz /usr/man/man9


# Rule for test compiling
test:
	gcc -o /tmp/base.o -D__KERNEL__ -I../../include -Wall \
	-Wstrict-prototypes -O2 -fomit-frame-pointer -pipe \
	-fno-strength-reduce   -DEXPORT_SYMTAB -c base.c