|
|
1.1 root 1: #
2: # Makefile for the FREAX-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:
9: AR =gar
10: AS =gas
11: LD =gld
12: LDFLAGS =-s -x
13: CC =gcc
14: CFLAGS =-Wall -O -fstrength-reduce -fomit-frame-pointer -fcombine-regs \
15: -finline-functions -mstring-insns -nostdinc -I../include
16: CPP =gcc -E -nostdinc -I../include
17:
18: .c.s:
19: $(CC) $(CFLAGS) \
20: -S -o $*.s $<
21: .s.o:
22: $(AS) -c -o $*.o $<
23: .c.o:
24: $(CC) $(CFLAGS) \
25: -c -o $*.o $<
26:
1.1.1.4 ! root 27: OBJS = sched.o sys_call.o traps.o asm.o fork.o \
1.1.1.2 root 28: panic.o printk.o vsprintf.o sys.o exit.o \
29: signal.o mktime.o
1.1 root 30:
31: kernel.o: $(OBJS)
32: $(LD) -r -o kernel.o $(OBJS)
33: sync
34:
35: clean:
1.1.1.2 root 36: rm -f core *.o *.a tmp_make keyboard.s
1.1 root 37: for i in *.c;do rm -f `basename $$i .c`.s;done
1.1.1.2 root 38: (cd chr_drv; make clean)
39: (cd blk_drv; make clean)
1.1.1.3 root 40: (cd math; make clean)
1.1 root 41:
42: dep:
43: sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
44: (for i in *.c;do echo -n `echo $$i | sed 's,\.c,\.s,'`" "; \
45: $(CPP) -M $$i;done) >> tmp_make
46: cp tmp_make Makefile
1.1.1.2 root 47: (cd chr_drv; make dep)
48: (cd blk_drv; make dep)
1.1 root 49:
50: ### Dependencies:
51: exit.s exit.o : exit.c ../include/errno.h ../include/signal.h \
52: ../include/sys/types.h ../include/sys/wait.h ../include/linux/sched.h \
53: ../include/linux/head.h ../include/linux/fs.h ../include/linux/mm.h \
1.1.1.4 ! root 54: ../include/linux/kernel.h ../include/sys/param.h ../include/sys/time.h \
! 55: ../include/time.h ../include/sys/resource.h ../include/linux/tty.h \
! 56: ../include/termios.h ../include/asm/segment.h
1.1 root 57: fork.s fork.o : fork.c ../include/errno.h ../include/linux/sched.h \
58: ../include/linux/head.h ../include/linux/fs.h ../include/sys/types.h \
1.1.1.4 ! root 59: ../include/linux/mm.h ../include/linux/kernel.h ../include/signal.h \
! 60: ../include/sys/param.h ../include/sys/time.h ../include/time.h \
! 61: ../include/sys/resource.h ../include/asm/segment.h ../include/asm/system.h
1.1 root 62: mktime.s mktime.o : mktime.c ../include/time.h
1.1.1.2 root 63: panic.s panic.o : panic.c ../include/linux/kernel.h ../include/linux/sched.h \
64: ../include/linux/head.h ../include/linux/fs.h ../include/sys/types.h \
1.1.1.4 ! root 65: ../include/linux/mm.h ../include/signal.h ../include/sys/param.h \
! 66: ../include/sys/time.h ../include/time.h ../include/sys/resource.h
1.1 root 67: printk.s printk.o : printk.c ../include/stdarg.h ../include/stddef.h \
68: ../include/linux/kernel.h
69: sched.s sched.o : sched.c ../include/linux/sched.h ../include/linux/head.h \
70: ../include/linux/fs.h ../include/sys/types.h ../include/linux/mm.h \
1.1.1.4 ! root 71: ../include/linux/kernel.h ../include/signal.h ../include/sys/param.h \
! 72: ../include/sys/time.h ../include/time.h ../include/sys/resource.h \
! 73: ../include/linux/sys.h ../include/linux/fdreg.h ../include/asm/system.h \
! 74: ../include/asm/io.h ../include/asm/segment.h
1.1.1.2 root 75: signal.s signal.o : signal.c ../include/linux/sched.h ../include/linux/head.h \
76: ../include/linux/fs.h ../include/sys/types.h ../include/linux/mm.h \
1.1.1.4 ! root 77: ../include/linux/kernel.h ../include/signal.h ../include/sys/param.h \
! 78: ../include/sys/time.h ../include/time.h ../include/sys/resource.h \
! 79: ../include/asm/segment.h ../include/errno.h
1.1 root 80: sys.s sys.o : sys.c ../include/errno.h ../include/linux/sched.h \
81: ../include/linux/head.h ../include/linux/fs.h ../include/sys/types.h \
1.1.1.4 ! root 82: ../include/linux/mm.h ../include/linux/kernel.h ../include/signal.h \
! 83: ../include/sys/param.h ../include/sys/time.h ../include/time.h \
! 84: ../include/sys/resource.h ../include/linux/tty.h ../include/termios.h \
! 85: ../include/linux/config.h ../include/asm/segment.h ../include/sys/times.h \
! 86: ../include/sys/utsname.h ../include/string.h
1.1 root 87: traps.s traps.o : traps.c ../include/string.h ../include/linux/head.h \
88: ../include/linux/sched.h ../include/linux/fs.h ../include/sys/types.h \
1.1.1.4 ! root 89: ../include/linux/mm.h ../include/linux/kernel.h ../include/signal.h \
! 90: ../include/sys/param.h ../include/sys/time.h ../include/time.h \
! 91: ../include/sys/resource.h ../include/asm/system.h ../include/asm/segment.h \
! 92: ../include/asm/io.h
1.1 root 93: vsprintf.s vsprintf.o : vsprintf.c ../include/stdarg.h ../include/string.h
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.