Subversion Repositories HelenOS

Rev

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

Rev 2649 Rev 2726
Line 97... Line 97...
97
OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
97
OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
98
COMPONENT_OBJECTS := $(addsuffix .o,$(basename $(notdir $(COMPONENTS))))
98
COMPONENT_OBJECTS := $(addsuffix .o,$(basename $(notdir $(COMPONENTS))))
99
 
99
 
100
.PHONY: all clean depend
100
.PHONY: all clean depend
101
 
101
 
102
all: image.boot disasm
102
all: hello.efi disasm
103
 
103
 
104
-include Makefile.depend
104
-include Makefile.depend
105
 
105
 
-
 
106
 
-
 
107
hello.efi: image.boot
-
 
108
	make -C gefi/HelenOS
-
 
109
	cp gefi/HelenOS/hello.efi ../../../../
-
 
110
	cp gefi/HelenOS/hello.efi /boot/efi/
-
 
111
	cp gefi/HelenOS/image.bin /boot/efi/
-
 
112
 
106
image.boot: depend _components.h _link.ld $(COMPONENT_OBJECTS) $(OBJECTS)
113
image.boot: depend _components.h _link.ld $(COMPONENT_OBJECTS) $(OBJECTS)
107
	$(LD) -Map boot.map -no-check-sections -N -T _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) -o $@
114
	$(LD) -Map boot.map -no-check-sections -N -T _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) -o $@
108
 
115
 
109
depend:
116
depend:
110
	-makedepend $(DEFS) $(CFLAGS) -f - $(SOURCES) > Makefile.depend 2> /dev/null
117
	-makedepend $(DEFS) $(CFLAGS) -f - $(SOURCES) > Makefile.depend 2> /dev/null
111
 
118
 
112
clean:
119
clean:
113
	-rm -f _components.h _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) image.boot boot.disasm Makefile.depend
120
	-rm -f _components.h _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) image.boot boot.disasm Makefile.depend
-
 
121
	make -C gefi/HelenOS clean
114
 
122
 
115
_components.h _link.ld $(COMPONENT_OBJECTS): $(COMPONENTS)
123
_components.h _link.ld $(COMPONENT_OBJECTS): $(COMPONENTS)
116
	./pack $(IMAGE) $(OBJCOPY) $(COMPONENTS)
124
	./pack $(IMAGE) $(OBJCOPY) $(COMPONENTS)
117
 
125
 
118
%.o: %.S
126
%.o: %.S