Subversion Repositories HelenOS

Rev

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

Rev 3368 Rev 3399
Line 112... Line 112...
112
 
112
 
113
all: image.boot disasm
113
all: image.boot disasm
114
 
114
 
115
-include Makefile.depend
115
-include Makefile.depend
116
 
116
 
117
image.boot: depend _components.h _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS)
117
image.boot: depend _components.h _link.ld $(COMPONENT_OBJECTS) $(OBJECTS)
118
	$(LD) -Map image.map -no-check-sections -N -T _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) -o $@
118
	$(LD) -Map image.map -no-check-sections -N -T _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) -o $@
119
 
119
 
120
depend:
120
depend:
121
	-makedepend $(DEFS) $(CFLAGS) -f - $(SOURCES) > Makefile.depend 2> /dev/null
121
	-makedepend $(DEFS) $(CFLAGS) -f - $(SOURCES) > Makefile.depend 2> /dev/null
122
 
122
 
123
clean:
123
clean:
124
	-for task in $(RD_TASKS) ; do \
124
	-for task in $(RD_TASKS) ; do \
125
		rm -f $(USPACEDIR)/dist/sbin/`basename $$task` ; \
125
		rm -f $(USPACEDIR)/dist/sbin/`basename $$task` ; \
126
	done
126
	done
127
	-rm -f _components.h _components.c _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) initrd.img image.boot image.map image.disasm Makefile.depend
127
	-rm -f _components.h _components.c _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) initrd.img image.boot image.map image.disasm Makefile.depend
128
 
128
 
129
_components.h _components.c _link.ld $(COMPONENT_OBJECTS) initrd.o: $(COMPONENTS) $(RD_TASKS) _link.ld.in
129
_components.h _components.c _link.ld $(COMPONENT_OBJECTS) initrd.o: $(COMPONENTS) $(RD_TASKS) _link.ld.in
130
	for task in $(RD_TASKS) ; do \
130
	for task in $(RD_TASKS) ; do \
131
		cp $$task $(USPACEDIR)/dist/sbin/ ; \
131
		cp $$task $(USPACEDIR)/dist/sbin/ ; \
132
	done
132
	done
Line 136... Line 136...
136
ifeq ($(RDFMT),fat)
136
ifeq ($(RDFMT),fat)
137
	../../../../tools/mkfat.sh $(USPACEDIR)/dist/ initrd.fs
137
	../../../../tools/mkfat.sh $(USPACEDIR)/dist/ initrd.fs
138
endif
138
endif
139
	../../../../tools/mkhord.py 16384 initrd.fs initrd.img
139
	../../../../tools/mkhord.py 16384 initrd.fs initrd.img
140
	rm initrd.fs
140
	rm initrd.fs
141
	../../../tools/pack.py $(OBJCOPY) $(BFD_NAME) $(BFD_ARCH) 1 "unsigned long" $(COMPONENTS) ./initrd.img
141
	../../../tools/pack.py $(OBJCOPY) $(BFD_NAME) $(BFD_ARCH) 1 "unsigned long" $(COMPONENTS)
142
 
142
 
143
%.o: %.S
143
%.o: %.S
144
	$(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
144
	$(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
145
 
145
 
146
%.o: %.c
146
%.o: %.c