Subversion Repositories HelenOS

Rev

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

Rev 3042 Rev 3424
Line 76... Line 76...
76
	boot.S
76
	boot.S
77
 
77
 
78
COMPONENTS = \
78
COMPONENTS = \
79
	$(KERNELDIR)/kernel.bin \
79
	$(KERNELDIR)/kernel.bin \
80
	$(USPACEDIR)/srv/ns/ns \
80
	$(USPACEDIR)/srv/ns/ns \
-
 
81
	$(USPACEDIR)/app/init/init \
-
 
82
	$(USPACEDIR)/srv/devmap/devmap \
-
 
83
	$(USPACEDIR)/srv/rd/rd \
-
 
84
	$(USPACEDIR)/srv/vfs/vfs \
-
 
85
	$(USPACEDIR)/srv/fs/tmpfs/tmpfs
-
 
86
 
-
 
87
RD_TASKS = \
81
	$(USPACEDIR)/srv/fb/fb \
88
	$(USPACEDIR)/srv/fb/fb \
82
	$(USPACEDIR)/srv/kbd/kbd \
89
	$(USPACEDIR)/srv/kbd/kbd \
83
	$(USPACEDIR)/srv/console/console \
90
	$(USPACEDIR)/srv/console/console \
84
	$(USPACEDIR)/srv/vfs/vfs \
-
 
85
	$(USPACEDIR)/srv/fs/tmpfs/tmpfs \
-
 
86
	$(USPACEDIR)/srv/fs/fat/fat \
91
	$(USPACEDIR)/srv/fs/fat/fat \
87
	$(USPACEDIR)/srv/devmap/devmap \
-
 
88
	$(USPACEDIR)/app/init/init \
-
 
89
	$(USPACEDIR)/app/sctrace/sctrace \
92
	$(USPACEDIR)/app/sctrace/sctrace \
90
	$(USPACEDIR)/app/tetris/tetris \
93
	$(USPACEDIR)/app/tetris/tetris \
91
	$(USPACEDIR)/app/tester/tester \
94
	$(USPACEDIR)/app/tester/tester \
92
	$(USPACEDIR)/app/klog/klog
95
	$(USPACEDIR)/app/klog/klog
93
 
96
 
Line 98... Line 101...
98
 
101
 
99
all: image.boot disasm
102
all: image.boot disasm
100
 
103
 
101
-include Makefile.depend
104
-include Makefile.depend
102
 
105
 
103
image.boot: depend _components.h _link.ld $(COMPONENT_OBJECTS) $(OBJECTS)
106
image.boot: depend _components.h _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS)
104
	$(LD) -Map image.map -no-check-sections -N -T _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) -o $@
107
	$(LD) -Map image.map -no-check-sections -N -T _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) -o $@
105
 
108
 
106
depend:
109
depend:
107
	-makedepend $(DEFS) $(CFLAGS) -f - $(SOURCES) > Makefile.depend 2> /dev/null
110
	-makedepend $(DEFS) $(CFLAGS) -f - $(SOURCES) > Makefile.depend 2> /dev/null
108
 
111
 
109
clean:
112
clean:
-
 
113
	-for task in $(RD_TASKS) ; do \
-
 
114
		rm -f $(USPACEDIR)/dist/sbin/`basename $$task` ; \
-
 
115
	done
110
	-rm -f _components.h _components.c _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) image.boot image.map image.disasm Makefile.depend
116
	-rm -f _components.h _components.c _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) initrd.img image.boot image.map image.disasm Makefile.depend
111
 
117
 
112
_components.h _components.c _link.ld $(COMPONENT_OBJECTS): $(COMPONENTS) _link.ld.in
118
_components.h _components.c _link.ld $(COMPONENT_OBJECTS) initrd.o: $(COMPONENTS) $(RD_TASKS) _link.ld.in
-
 
119
	for task in $(RD_TASKS) ; do \
-
 
120
		cp $$task $(USPACEDIR)/dist/sbin/ ; \
-
 
121
	done
-
 
122
	../../../../tools/mktmpfs.py 16384 $(USPACEDIR)/dist/ initrd.img
113
	../../../tools/pack.py $(OBJCOPY) $(BFD_NAME) $(BFD_ARCH) 1 "unsigned long" $(COMPONENTS)
123
	../../../tools/pack.py $(OBJCOPY) $(BFD_NAME) $(BFD_ARCH) 1 "unsigned long" $(COMPONENTS) ./initrd.img
114
 
124
 
115
%.o: %.S
125
%.o: %.S
116
	$(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
126
	$(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
117
 
127
 
118
%.o: %.c
128
%.o: %.c