linux-old/drivers/Makefile
<<
>>
Prefs
   1#
   2# Makefile for the linux kernel device drivers.
   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
  10.S.s:
  11        $(CPP) -traditional $< -o $*.s
  12.c.s:
  13        $(CC) $(CFLAGS) -S $<
  14.s.o:
  15        $(AS) -c -o $*.o $<
  16.c.o:
  17        $(CC) $(CFLAGS) -c $<
  18
  19SUBDIRS = block char net
  20
  21ifdef CONFIG_MATH_EMULATION
  22SUBDIRS := $(SUBDIRS) FPU-emu
  23endif
  24
  25ifdef CONFIG_SCSI
  26SUBDIRS := $(SUBDIRS) scsi
  27endif
  28
  29ifdef CONFIG_SOUND
  30SUBDIRS := $(SUBDIRS) sound
  31endif
  32
  33all: driversubdirs
  34
  35driversubdirs: dummy
  36        set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i; done
  37
  38dep:
  39        set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i dep; done
  40
  41dummy:
  42
  43#
  44# include a dependency file if one exists
  45#
  46ifeq (.depend,$(wildcard .depend))
  47include .depend
  48endif
  49
  50
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.