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...
11 OX_OBJS
:= base.o util.o
13 # Special case to support building documentation
18 include $(TOPDIR
)/Rules.make
21 # Rule to build documentation
23 @echo
'$$PACKAGE devfs' > devfs.doc
24 @echo
'$$NAME Linux Kernel' >> devfs.doc
25 @echo
'$$SUMMARY devfs (Device FileSystem) functions' >> devfs.doc
26 @echo
'$$SYNOPSIS "#include <linux/devfs_fs.h>"' >> devfs.doc
27 @echo
'$$END' >> devfs.doc
28 c2doc base.c util.c
>> devfs.doc
29 karma_doc2man
-section
9 devfs.doc .
32 mv
*.9.gz
/usr
/man
/man9
35 # Rule for test compiling
37 gcc
-o
/tmp
/base.o
-D__KERNEL__
-I..
/..
/include -Wall \
38 -Wstrict-prototypes
-O2
-fomit-frame-pointer
-pipe \
39 -fno-strength-reduce
-DEXPORT_SYMTAB
-c base.c