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...
12 export-objs
:= base.o util.o
14 obj-y
:= base.o util.o
16 # Special case to support building documentation
21 include $(TOPDIR
)/Rules.make
24 # Rule to build documentation
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 .
35 mv
*.9.gz
/usr
/man
/man9
38 # Rule for test compiling
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