|
|
1.1 root 1: #
1.1.1.3 root 2: # Makefile for the kernel math emulation routines
1.1 root 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:
1.1.1.3 root 9: AR =ar
10: AS =as
11: LD =ld
1.1 root 12: LDFLAGS =-s -x
1.1.1.4 root 13: CC =gcc -nostdinc -I../../include
14: CPP =cpp -nostdinc -I../../include
1.1 root 15:
16: .c.s:
1.1.1.4 root 17: $(CC) $(CFLAGS) $(MATH_EMULATION) \
1.1 root 18: -S -o $*.s $<
19: .s.o:
20: $(AS) -c -o $*.o $<
21: .c.o:
1.1.1.4 root 22: $(CC) $(CFLAGS) $(MATH_EMULATION) \
1.1 root 23: -c -o $*.o $<
24:
1.1.1.4 root 25: OBJS = emulate.o error.o convert.o ea.o get_put.o \
1.1.1.2 root 26: add.o mul.o div.o compare.o
1.1 root 27:
28: math.a: $(OBJS)
29: $(AR) rcs math.a $(OBJS)
30: sync
31:
32: clean:
33: rm -f core *.o *.a tmp_make
34: for i in *.c;do rm -f `basename $$i .c`.s;done
35:
36: dep:
37: sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
38: (for i in *.c;do echo -n `echo $$i | sed 's,\.c,\.s,'`" "; \
39: $(CPP) -M $$i;done) >> tmp_make
40: cp tmp_make Makefile
41:
42: ### Dependencies:
1.1.1.5 ! root 43: add.s add.o : add.c ../../include/linux/math_emu.h ../../include/linux/sched.h ../../include/linux/head.h \
! 44: ../../include/linux/fs.h ../../include/sys/types.h ../../include/sys/dirent.h \
! 45: ../../include/limits.h ../../include/linux/mm.h ../../include/linux/kernel.h \
! 46: ../../include/signal.h ../../include/sys/param.h ../../include/sys/time.h ../../include/time.h \
1.1.1.3 root 47: ../../include/sys/resource.h
1.1.1.5 ! root 48: compare.s compare.o : compare.c ../../include/linux/math_emu.h ../../include/linux/sched.h \
! 49: ../../include/linux/head.h ../../include/linux/fs.h ../../include/sys/types.h \
! 50: ../../include/sys/dirent.h ../../include/limits.h ../../include/linux/mm.h ../../include/linux/kernel.h \
! 51: ../../include/signal.h ../../include/sys/param.h ../../include/sys/time.h ../../include/time.h \
1.1.1.3 root 52: ../../include/sys/resource.h
1.1.1.5 ! root 53: convert.s convert.o : convert.c ../../include/linux/math_emu.h ../../include/linux/sched.h \
! 54: ../../include/linux/head.h ../../include/linux/fs.h ../../include/sys/types.h \
! 55: ../../include/sys/dirent.h ../../include/limits.h ../../include/linux/mm.h ../../include/linux/kernel.h \
! 56: ../../include/signal.h ../../include/sys/param.h ../../include/sys/time.h ../../include/time.h \
1.1.1.3 root 57: ../../include/sys/resource.h
1.1.1.5 ! root 58: div.s div.o : div.c ../../include/linux/math_emu.h ../../include/linux/sched.h ../../include/linux/head.h \
! 59: ../../include/linux/fs.h ../../include/sys/types.h ../../include/sys/dirent.h \
! 60: ../../include/limits.h ../../include/linux/mm.h ../../include/linux/kernel.h \
! 61: ../../include/signal.h ../../include/sys/param.h ../../include/sys/time.h ../../include/time.h \
1.1.1.3 root 62: ../../include/sys/resource.h
1.1.1.5 ! root 63: ea.s ea.o : ea.c ../../include/stddef.h ../../include/linux/math_emu.h ../../include/linux/sched.h \
! 64: ../../include/linux/head.h ../../include/linux/fs.h ../../include/sys/types.h \
! 65: ../../include/sys/dirent.h ../../include/limits.h ../../include/linux/mm.h ../../include/linux/kernel.h \
! 66: ../../include/signal.h ../../include/sys/param.h ../../include/sys/time.h ../../include/time.h \
1.1.1.3 root 67: ../../include/sys/resource.h ../../include/asm/segment.h
1.1.1.5 ! root 68: emulate.s emulate.o : emulate.c ../../include/signal.h ../../include/sys/types.h ../../include/linux/sched.h \
! 69: ../../include/linux/head.h ../../include/linux/fs.h ../../include/sys/dirent.h \
! 70: ../../include/limits.h ../../include/linux/mm.h ../../include/linux/kernel.h \
! 71: ../../include/sys/param.h ../../include/sys/time.h ../../include/time.h ../../include/sys/resource.h
! 72: error.s error.o : error.c ../../include/signal.h ../../include/sys/types.h ../../include/linux/sched.h \
! 73: ../../include/linux/head.h ../../include/linux/fs.h ../../include/sys/dirent.h \
! 74: ../../include/limits.h ../../include/linux/mm.h ../../include/linux/kernel.h \
! 75: ../../include/sys/param.h ../../include/sys/time.h ../../include/time.h ../../include/sys/resource.h
! 76: get_put.s get_put.o : get_put.c ../../include/signal.h ../../include/sys/types.h ../../include/linux/math_emu.h \
! 77: ../../include/linux/sched.h ../../include/linux/head.h ../../include/linux/fs.h \
! 78: ../../include/sys/dirent.h ../../include/limits.h ../../include/linux/mm.h ../../include/linux/kernel.h \
! 79: ../../include/sys/param.h ../../include/sys/time.h ../../include/time.h ../../include/sys/resource.h \
! 80: ../../include/asm/segment.h
! 81: mul.s mul.o : mul.c ../../include/linux/math_emu.h ../../include/linux/sched.h ../../include/linux/head.h \
! 82: ../../include/linux/fs.h ../../include/sys/types.h ../../include/sys/dirent.h \
! 83: ../../include/limits.h ../../include/linux/mm.h ../../include/linux/kernel.h \
! 84: ../../include/signal.h ../../include/sys/param.h ../../include/sys/time.h ../../include/time.h \
1.1.1.3 root 85: ../../include/sys/resource.h
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.