1# 2# Makefile for the linux devfs-filesystem routines. 3# 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). 7# 8# Note 2! The CFLAGS definitions are now in the main makefile... 9 10O_TARGET := devfs.o 11 12export-objs := base.o util.o 13 14obj-y := base.o util.o 15 16# Special case to support building documentation 17ifndef TOPDIR 18TOPDIR = ../.. 19endif 20 21include $(TOPDIR)/Rules.make 22 23 24# Rule to build documentation 25doc: 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 36 37 38# Rule for test compiling 39test: 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 43