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