Subversion Repositories HelenOS-historic

Rev

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

Rev 1127 Rev 1670
Line 47... Line 47...
47
 
47
 
48
GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES)))
48
GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES)))
49
 
49
 
50
.PHONY: all clean depend
50
.PHONY: all clean depend
51
 
51
 
52
all: softint.a
52
all: libsoftint.a
53
 
53
 
54
-include Makefile.depend
54
-include Makefile.depend
55
 
55
 
56
clean:
56
clean:
57
	-rm -f softint.a Makefile.depend
57
	-rm -f libsoftint.a Makefile.depend
58
	find generic/ -name '*.o' -follow -exec rm \{\} \;
58
	find generic/ -name '*.o' -follow -exec rm \{\} \;
59
 
59
 
60
depend:
60
depend:
61
	-makedepend $(DEFS) $(CFLAGS) -f - $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null
61
	-makedepend $(DEFS) $(CFLAGS) -f - $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null
62
 
62
 
63
softint.a: depend $(ARCH_OBJECTS) $(GENERIC_OBJECTS)
63
libsoftint.a: depend $(ARCH_OBJECTS) $(GENERIC_OBJECTS)
64
	$(AR) rc softint.a $(ARCH_OBJECTS) $(GENERIC_OBJECTS)
64
	$(AR) rc libsoftint.a $(ARCH_OBJECTS) $(GENERIC_OBJECTS)
65
 
65
 
66
%.o: %.S
66
%.o: %.S
67
	$(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@
67
	$(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@
68
 
68
 
69
%.o: %.s
69
%.o: %.s