- Linus: drop support for old-style Makefiles entirely. Big.
[davej-history.git] / fs / devfs / Makefile
blobb551ffd093b056c88a2b4ad8a21719a13c166a82
2 # Makefile for the linux devfs-filesystem routines.
4 # Note! Dependencies are done automagically by 'make dep', which also
5 # removes any old dependencies. DON'T put your own dependencies here
6 # unless it's something special (ie not a .c file).
8 # Note 2! The CFLAGS definitions are now in the main makefile...
10 O_TARGET := devfs.o
12 export-objs := base.o util.o
14 obj-y := base.o util.o
16 # Special case to support building documentation
17 ifndef TOPDIR
18 TOPDIR = ../..
19 endif
21 include $(TOPDIR)/Rules.make
24 # Rule to build documentation
25 doc: base.c util.c
26 @echo '$$PACKAGE devfs' > devfs.doc
27 @echo '$$NAME Linux Kernel' >> devfs.doc
28 @echo '$$SUMMARY devfs (Device FileSystem) functions' >> devfs.doc
29 @echo '$$SYNOPSIS "#include <linux/devfs_fs.h>"' >> devfs.doc
30 @echo '$$END' >> devfs.doc
31 c2doc base.c util.c >> devfs.doc
32 karma_doc2man -section 9 devfs.doc .
33 rm devfs.doc
34 gzip --best *.9
35 mv *.9.gz /usr/man/man9
38 # Rule for test compiling
39 test:
40 gcc -o /tmp/base.o -D__KERNEL__ -I../../include -Wall \
41 -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe \
42 -fno-strength-reduce -DEXPORT_SYMTAB -c base.c