|
|
1.1 root 1: #
2: # Makefile for the FREAX-kernel character 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:
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.2 root 27: OBJS = tty_io.o console.o keyboard.o serial.o rs_io.o \
1.1.1.3 ! root 28: tty_ioctl.o pty.o
1.1 root 29:
30: chr_drv.a: $(OBJS)
31: $(AR) rcs chr_drv.a $(OBJS)
32: sync
33:
1.1.1.3 ! root 34: keyboard.s: keyboard.S
1.1 root 35: $(CPP) -traditional keyboard.S -o keyboard.s
36:
37: clean:
38: rm -f core *.o *.a tmp_make keyboard.s
39: for i in *.c;do rm -f `basename $$i .c`.s;done
40:
41: dep:
42: sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
43: (for i in *.c;do echo -n `echo $$i | sed 's,\.c,\.s,'`" "; \
44: $(CPP) -M $$i;done) >> tmp_make
45: cp tmp_make Makefile
46:
47: ### Dependencies:
48: console.s console.o : console.c ../../include/linux/sched.h \
49: ../../include/linux/head.h ../../include/linux/fs.h \
1.1.1.3 ! root 50: ../../include/sys/types.h ../../include/linux/mm.h \
! 51: ../../include/linux/kernel.h ../../include/signal.h \
! 52: ../../include/sys/param.h ../../include/sys/time.h ../../include/time.h \
! 53: ../../include/sys/resource.h ../../include/linux/tty.h \
! 54: ../../include/termios.h ../../include/linux/config.h ../../include/asm/io.h \
! 55: ../../include/asm/system.h ../../include/asm/segment.h \
! 56: ../../include/string.h ../../include/errno.h
! 57: pty.s pty.o : pty.c ../../include/linux/tty.h ../../include/termios.h \
! 58: ../../include/sys/types.h ../../include/linux/sched.h \
! 59: ../../include/linux/head.h ../../include/linux/fs.h \
! 60: ../../include/linux/mm.h ../../include/linux/kernel.h \
! 61: ../../include/signal.h ../../include/sys/param.h ../../include/sys/time.h \
! 62: ../../include/time.h ../../include/sys/resource.h \
! 63: ../../include/asm/system.h ../../include/asm/io.h
1.1 root 64: serial.s serial.o : serial.c ../../include/linux/tty.h ../../include/termios.h \
1.1.1.3 ! root 65: ../../include/sys/types.h ../../include/linux/sched.h \
! 66: ../../include/linux/head.h ../../include/linux/fs.h \
! 67: ../../include/linux/mm.h ../../include/linux/kernel.h \
! 68: ../../include/signal.h ../../include/sys/param.h ../../include/sys/time.h \
! 69: ../../include/time.h ../../include/sys/resource.h \
! 70: ../../include/asm/system.h ../../include/asm/io.h
1.1 root 71: tty_io.s tty_io.o : tty_io.c ../../include/ctype.h ../../include/errno.h \
1.1.1.3 ! root 72: ../../include/signal.h ../../include/sys/types.h ../../include/unistd.h \
! 73: ../../include/sys/stat.h ../../include/sys/time.h ../../include/time.h \
! 74: ../../include/sys/times.h ../../include/sys/utsname.h \
! 75: ../../include/sys/param.h ../../include/sys/resource.h \
! 76: ../../include/utime.h ../../include/linux/sched.h \
! 77: ../../include/linux/head.h ../../include/linux/fs.h \
! 78: ../../include/linux/mm.h ../../include/linux/kernel.h \
! 79: ../../include/linux/tty.h ../../include/termios.h \
1.1.1.2 root 80: ../../include/asm/segment.h ../../include/asm/system.h
1.1.1.3 ! root 81: tty_ioctl.s tty_ioctl.o : tty_ioctl.c ../../include/errno.h ../../include/termios.h \
! 82: ../../include/sys/types.h ../../include/linux/sched.h \
! 83: ../../include/linux/head.h ../../include/linux/fs.h \
! 84: ../../include/linux/mm.h ../../include/linux/kernel.h \
! 85: ../../include/signal.h ../../include/sys/param.h ../../include/sys/time.h \
! 86: ../../include/time.h ../../include/sys/resource.h ../../include/linux/tty.h \
! 87: ../../include/asm/io.h ../../include/asm/segment.h \
! 88: ../../include/asm/system.h
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.