Subversion Repositories HelenOS

Rev

Rev 3397 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3397 Rev 3492
Line 55... Line 55...
55
	LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld
55
	LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld
56
	OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy
56
	OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy
57
	OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump
57
	OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump
58
endif
58
endif
59
 
59
 
60
CFLAGS = -DRELEASE=\"$(RELEASE)\" -I. -I../../../generic -I../../../genarch -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mcpu=powerpc64 -msoft-float -m64
60
CFLAGS = -DRELEASE=\"$(RELEASE)\" -I. -I../../../generic -I../../../genarch -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mcpu=powerpc64 -msoft-float -m64 -pipe
61
 
61
 
62
ifdef REVISION
62
ifdef REVISION
63
	CFLAGS += "-DREVISION=\"$(REVISION)\""
63
	CFLAGS += "-DREVISION=\"$(REVISION)\""
64
endif
64
endif
65
 
65
 
Line 87... Line 87...
87
	$(USPACEDIR)/srv/fs/fat/fat \
87
	$(USPACEDIR)/srv/fs/fat/fat \
88
	$(USPACEDIR)/srv/devmap/devmap \
88
	$(USPACEDIR)/srv/devmap/devmap \
89
	$(USPACEDIR)/app/init/init \
89
	$(USPACEDIR)/app/init/init \
90
	$(USPACEDIR)/app/tetris/tetris \
90
	$(USPACEDIR)/app/tetris/tetris \
91
	$(USPACEDIR)/app/tester/tester \
91
	$(USPACEDIR)/app/tester/tester \
-
 
92
	$(USPACEDIR)/app/trace/trace \
92
	$(USPACEDIR)/app/klog/klog
93
	$(USPACEDIR)/app/klog/klog
93
 
94
 
94
OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
95
OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
95
COMPONENT_OBJECTS := $(addsuffix .o,$(basename $(notdir $(COMPONENTS))))
96
COMPONENT_OBJECTS := $(addsuffix .o,$(basename $(notdir $(COMPONENTS))))
96
 
97
 
Line 102... Line 103...
102
 
103
 
103
image.boot: depend _components.h _link.ld $(COMPONENT_OBJECTS) $(OBJECTS)
104
image.boot: depend _components.h _link.ld $(COMPONENT_OBJECTS) $(OBJECTS)
104
	$(LD) -no-check-sections -N -T _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) -o $@
105
	$(LD) -no-check-sections -N -T _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) -o $@
105
 
106
 
106
depend:
107
depend:
107
	-makedepend $(DEFS) $(CFLAGS) -f - $(SOURCES) > Makefile.depend 2> /dev/null
108
	-makedepend -f - -- $(DEFS) $(CFLAGS) -- $(SOURCES) > Makefile.depend 2> /dev/null
108
 
109
 
109
clean:
110
clean:
110
	-rm -f _components.h _components.c _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) image.boot Makefile.depend
111
	-rm -f _components.h _components.c _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) image.boot Makefile.depend
111
 
112
 
112
_components.h _components.c _link.ld $(COMPONENT_OBJECTS): $(COMPONENTS) _link.ld.in
113
_components.h _components.c _link.ld $(COMPONENT_OBJECTS): $(COMPONENTS) _link.ld.in