diff options
Diffstat (limited to 'src/kernel/math/Makefile')
-rw-r--r-- | src/kernel/math/Makefile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/kernel/math/Makefile b/src/kernel/math/Makefile new file mode 100644 index 0000000..b79ddd7 --- /dev/null +++ b/src/kernel/math/Makefile | |||
@@ -0,0 +1,39 @@ | |||
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 | include ../../Makefile.header | ||
10 | |||
11 | CFLAGS += -I../../include | ||
12 | CPP += -I../../include | ||
13 | |||
14 | .c.s: | ||
15 | @$(CC) $(CFLAGS) \ | ||
16 | -S -o $*.s $< | ||
17 | .s.o: | ||
18 | @$(AS) -o $*.o $< | ||
19 | .c.o: | ||
20 | @$(CC) $(CFLAGS) \ | ||
21 | -c -o $*.o $< | ||
22 | |||
23 | OBJS = math_emulate.o | ||
24 | |||
25 | math.a: $(OBJS) | ||
26 | @$(AR) rcs math.a $(OBJS) | ||
27 | @sync | ||
28 | |||
29 | clean: | ||
30 | @rm -f core *.o *.a tmp_make | ||
31 | @for i in *.c;do rm -f `basename $$i .c`.s;done | ||
32 | |||
33 | dep: | ||
34 | @sed '/\#\#\# Dependencies/q' < Makefile > tmp_make | ||
35 | @(for i in *.c;do echo -n `echo $$i | sed 's,\.c,\.s,'`" "; \ | ||
36 | $(CPP) -M $$i;done) >> tmp_make | ||
37 | @cp tmp_make Makefile | ||
38 | |||
39 | ### Dependencies: | ||