File: Makefile

package info (click to toggle)
kernel-source-2.0.32 2.0.32-5
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 29,648 kB
  • ctags: 86,850
  • sloc: ansic: 542,141; asm: 26,201; makefile: 3,423; sh: 1,195; perl: 727; tcl: 408; cpp: 277; lisp: 211; awk: 134
file content (35 lines) | stat: -rw-r--r-- 656 bytes parent folder | download | duplicates (16)
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
#
# Makefile for the linux autofs-filesystem routines.
#
# We can build this either out of the kernel tree or the autofs tools tree.
#

O_TARGET := autofs.o
O_OBJS   := dir.o dirhash.o init.o inode.o root.o symlink.o waitq.o

M_OBJS   := $(O_TARGET)

ifdef TOPDIR
#
# Part of the kernel code
#
include $(TOPDIR)/Rules.make
else
#
# Standalone (handy for development)
#
include ../Makefile.rules

CFLAGS += -D__KERNEL__ -DMODULE $(KFLAGS) -I../include -I$(KINCLUDE) $(MODFLAGS)

all: $(O_TARGET)

$(O_TARGET): $(O_OBJS)
	$(LD) -r -o $(O_TARGET) $(O_OBJS)

install: $(O_TARGET)
	install -c $(O_TARGET) /lib/modules/`uname -r`/fs

clean:
	rm -f *.o *.s
endif