Subversion Repositories HelenOS-historic

Rev

Rev 991 | Rev 1031 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 991 Rev 994
Line 27... Line 27...
27
#
27
#
28
 
28
 
29
## Common compiler flags
29
## Common compiler flags
30
#
30
#
31
 
31
 
32
SOFTINT_PREFIX = .
32
LIBC_PREFIX = ../libc
33
## Setup toolchain
33
## Setup toolchain
34
#
34
#
35
 
35
 
36
include $(SOFTINT_PREFIX)/Makefile.toolchain
36
include $(LIBC_PREFIX)/Makefile.toolchain
-
 
37
 
-
 
38
CFLAGS += -Iinclude
37
 
39
 
38
## Sources
40
## Sources
39
#
41
#
40
 
42
 
41
GENERIC_SOURCES = \
43
GENERIC_SOURCES = \
42
	generic/division.c
44
	generic/division.c
43
 
45
 
44
GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES)))
46
GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES)))
45
ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES)))
-
 
46
 
47
 
47
.PHONY: all clean depend
48
.PHONY: all clean depend
48
 
49
 
49
all: softint.a
50
all: softint.a
50
 
51
 
Line 53... Line 54...
53
clean:
54
clean:
54
	-rm -f softint.a Makefile.depend
55
	-rm -f softint.a Makefile.depend
55
	find generic/ -name '*.o' -follow -exec rm \{\} \;
56
	find generic/ -name '*.o' -follow -exec rm \{\} \;
56
 
57
 
57
depend:
58
depend:
58
	$(CC) $(DEFS) $(CFLAGS) -M $(ARCH_SOURCES) $(GENERIC_SOURCES) > Makefile.depend
59
	$(CC) $(DEFS) $(CFLAGS) -M $(GENERIC_SOURCES) > Makefile.depend
59
 
60
 
60
softint.a: depend $(ARCH_OBJECTS) $(GENERIC_OBJECTS)
61
softint.a: depend $(ARCH_OBJECTS) $(GENERIC_OBJECTS)
61
	$(AR) rc softint.a $(ARCH_OBJECTS) $(GENERIC_OBJECTS)
62
	$(AR) rc softint.a $(ARCH_OBJECTS) $(GENERIC_OBJECTS)
62
 
63
 
63
%.o: %.S
64
%.o: %.S