Rev 3597 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3597 | Rev 4377 | ||
---|---|---|---|
Line 27... | Line 27... | ||
27 | # |
27 | # |
28 | 28 | ||
29 | ## Common compiler flags |
29 | ## Common compiler flags |
30 | # |
30 | # |
31 | 31 | ||
32 | include ../../Makefile.config |
- | |
33 | - | ||
34 | LIBC_PREFIX = ../libc |
32 | LIBC_PREFIX = ../libc |
- | 33 | ||
35 | ## Setup toolchain |
34 | ## Setup toolchain |
36 | # |
35 | # |
37 | 36 | ||
38 | include $(LIBC_PREFIX)/Makefile.toolchain |
37 | include $(LIBC_PREFIX)/Makefile.toolchain |
39 | 38 | ||
40 | CFLAGS +=-Iinclude -Iarch/$(ARCH)/include/ |
39 | CFLAGS +=-Iinclude -Iarch/$(UARCH)/include/ |
41 | 40 | ||
42 | ## Sources |
41 | ## Sources |
43 | # |
42 | # |
44 | 43 | ||
45 | GENERIC_SOURCES = \ |
44 | GENERIC_SOURCES = \ |
46 | generic/add.c \ |
45 | generic/add.c \ |
47 | generic/common.c \ |
46 | generic/common.c \ |
48 | generic/comparison.c \ |
47 | generic/comparison.c \ |
49 | generic/conversion.c \ |
48 | generic/conversion.c \ |
50 | generic/div.c \ |
49 | generic/div.c \ |
51 | generic/mul.c \ |
50 | generic/mul.c \ |
52 | generic/other.c \ |
51 | generic/other.c \ |
53 | generic/softfloat.c \ |
52 | generic/softfloat.c \ |
54 | generic/sub.c |
53 | generic/sub.c |
55 | 54 | ||
56 | ARCH_SOURCES = |
55 | ARCH_SOURCES = |
57 | 56 | ||
58 | GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES))) |
57 | GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES))) |
Line 66... | Line 65... | ||
66 | clean: |
65 | clean: |
67 | -rm -f libsoftfloat.a Makefile.depend |
66 | -rm -f libsoftfloat.a Makefile.depend |
68 | find generic/ -name '*.o' -follow -exec rm \{\} \; |
67 | find generic/ -name '*.o' -follow -exec rm \{\} \; |
69 | 68 | ||
70 | depend: |
69 | depend: |
71 | -makedepend -f - -- $(DEFS) $(CFLAGS) -- $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null |
70 | -makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null |
72 | 71 | ||
73 | libsoftfloat.a: depend $(ARCH_OBJECTS) $(GENERIC_OBJECTS) |
72 | libsoftfloat.a: depend $(ARCH_OBJECTS) $(GENERIC_OBJECTS) |
74 | $(AR) rc libsoftfloat.a $(ARCH_OBJECTS) $(GENERIC_OBJECTS) |
73 | $(AR) rc libsoftfloat.a $(ARCH_OBJECTS) $(GENERIC_OBJECTS) |
75 | 74 | ||
76 | %.o: %.S |
75 | %.o: %.S |