Subversion Repositories HelenOS

Rev

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

Rev 2956 Rev 2965
Line 35... Line 35...
35
LIBC_PREFIX = ../../lib/libc
35
LIBC_PREFIX = ../../lib/libc
36
SOFTINT_PREFIX = ../../lib/softint
36
SOFTINT_PREFIX = ../../lib/softint
37
include $(LIBC_PREFIX)/Makefile.toolchain
37
include $(LIBC_PREFIX)/Makefile.toolchain
38
include arch/$(ARCH)/Makefile.inc
38
include arch/$(ARCH)/Makefile.inc
39
 
39
 
40
CFLAGS += -I../../srv/kbd/include -I../../srv/console -fPIC -O0
40
CFLAGS += -I../../srv/kbd/include -I../../srv/console -Iinclude -fPIC -O0
41
LFLAGS = -shared --no-undefined
41
LFLAGS = -shared --no-undefined
42
 
42
 
43
LIBS = $(LIBC_PREFIX)/libc.pic.a
43
LIBS = $(LIBC_PREFIX)/libc.pic.a
44
DEFS += -DRELEASE=\"$(RELEASE)\"
44
DEFS += -DRELEASE=\"$(RELEASE)\"
45
 
45
 
Line 59... Line 59...
59
	rtld.c
59
	rtld.c
60
 
60
 
61
GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES)))
61
GENERIC_OBJECTS := $(addsuffix .o,$(basename $(GENERIC_SOURCES)))
62
ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES)))
62
ARCH_OBJECTS := $(addsuffix .o,$(basename $(ARCH_SOURCES)))
63
 
63
 
64
.PHONY: all clean depend disasm sections
64
.PHONY: all clean depend disasm sections inc
65
 
65
 
66
all: $(OUTPUT) disasm sections
66
all: inc $(OUTPUT) disasm sections
-
 
67
 
-
 
68
inc:
-
 
69
	ln -sfn ../arch/$(ARCH)/include include/arch
67
 
70
 
68
-include Makefile.depend
71
-include Makefile.depend
69
 
72
 
70
clean:
73
clean:
71
	-rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm $(OUTPUT).sections Makefile.depend *.o arch/$(ARCH)/_link.ld
74
	-rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm $(OUTPUT).sections Makefile.depend *.o arch/$(ARCH)/_link.ld include/arch
72
	find arch/$(ARCH)/ -name '*.o' -follow -exec rm \{\} \;
75
	find arch/$(ARCH)/ -name '*.o' -follow -exec rm \{\} \;
73
 
76
 
74
depend:
77
depend:
75
	$(CC) $(DEFS) $(CFLAGS) -M $(ARCH_SOURCES) $(GENERIC_SOURCES)> Makefile.depend
78
	$(CC) $(DEFS) $(CFLAGS) -M $(ARCH_SOURCES) $(GENERIC_SOURCES)> Makefile.depend
76
 
79