linux-old/kernel/Makefile
<<
>>
Prefs
   1#
   2# Makefile for the linux kernel.
   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) -o $*.o $<
  16.c.o:
  17        $(CC) $(CFLAGS) -c $<
  18
  19OBJS  = sched.o dma.o fork.o exec_domain.o panic.o printk.o sys.o \
  20        module.o exit.o signal.o itimer.o info.o time.o softirq.o \
  21        resource.o
  22
  23SYMTAB_OBJS = ksyms.o
  24
  25all: kernel.o
  26
  27include ../versions.mk
  28
  29kernel.o: $(SYMTAB_OBJS) $(OBJS)
  30        $(LD) -r -o kernel.o $(SYMTAB_OBJS) $(OBJS)
  31        sync
  32
  33sched.o: sched.c
  34        $(CC) $(CFLAGS) $(PROFILING) -fno-omit-frame-pointer -c $<
  35
  36dep:
  37        $(CPP) -M *.c > .depend
  38
  39dummy:
  40modules:
  41
  42#
  43# include a dependency file if one exists
  44#
  45ifeq (.depend,$(wildcard .depend))
  46include .depend
  47endif
  48
  49
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.