Subversion Repositories HelenOS

Rev

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

Rev 3407 Rev 3410
Line 92... Line 92...
92
endif
92
endif
93
ifeq ($(RDFMT),fat)
93
ifeq ($(RDFMT),fat)
94
	COMPONENTS += $(USPACEDIR)/srv/fs/fat/fat
94
	COMPONENTS += $(USPACEDIR)/srv/fs/fat/fat
95
endif
95
endif
96
 
96
 
97
RD_TASKS = \
97
RD_SRVS = \
98
	$(USPACEDIR)/srv/fb/fb \
98
	$(USPACEDIR)/srv/fb/fb \
99
	$(USPACEDIR)/srv/kbd/kbd \
99
	$(USPACEDIR)/srv/kbd/kbd \
100
	$(USPACEDIR)/srv/console/console \
100
	$(USPACEDIR)/srv/console/console \
101
	$(USPACEDIR)/srv/fs/tmpfs/tmpfs \
101
	$(USPACEDIR)/srv/fs/tmpfs/tmpfs \
102
	$(USPACEDIR)/srv/fs/fat/fat \
102
	$(USPACEDIR)/srv/fs/fat/fat
-
 
103
 
-
 
104
RD_APPS = \
103
	$(USPACEDIR)/app/tetris/tetris \
105
	$(USPACEDIR)/app/tetris/tetris \
104
	$(USPACEDIR)/app/tester/tester \
106
	$(USPACEDIR)/app/tester/tester \
105
	$(USPACEDIR)/app/bdsh/bdsh \
107
	$(USPACEDIR)/app/bdsh/bdsh \
106
	$(USPACEDIR)/app/klog/klog
108
	$(USPACEDIR)/app/klog/klog
107
 
109
 
Line 119... Line 121...
119
 
121
 
120
depend:
122
depend:
121
	-makedepend $(DEFS) $(CFLAGS) -f - $(SOURCES) > Makefile.depend 2> /dev/null
123
	-makedepend $(DEFS) $(CFLAGS) -f - $(SOURCES) > Makefile.depend 2> /dev/null
122
 
124
 
123
clean:
125
clean:
-
 
126
	-for file in $(RD_SRVS) ; do \
-
 
127
		rm -f $(USPACEDIR)/dist/srv/`basename $$file` ; \
-
 
128
	done
124
	-for task in $(RD_TASKS) ; do \
129
	-for file in $(RD_APPS) ; do \
125
		rm -f $(USPACEDIR)/dist/sbin/`basename $$task` ; \
130
		rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \
126
	done
131
	done
127
	-rm -f _components.h _components.c _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) initrd.img image.boot image.map image.disasm Makefile.depend
132
	-rm -f _components.h _components.c _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) initrd.img image.boot image.map image.disasm Makefile.depend
128
 
133
 
129
_components.h _components.c _link.ld $(COMPONENT_OBJECTS) initrd.o: $(COMPONENTS) $(RD_TASKS) _link.ld.in
134
_components.h _components.c _link.ld $(COMPONENT_OBJECTS) initrd.o: $(COMPONENTS) $(RD_SRVS) $(RD_APPS) _link.ld.in
-
 
135
	for file in $(RD_SRVS) ; do \
-
 
136
		cp $$file $(USPACEDIR)/dist/srv/ ; \
-
 
137
	done
130
	for task in $(RD_TASKS) ; do \
138
	for file in $(RD_APPS) ; do \
131
		cp $$task $(USPACEDIR)/dist/sbin/ ; \
139
		cp $$file $(USPACEDIR)/dist/app/ ; \
132
	done
140
	done
133
ifeq ($(RDFMT),tmpfs)
141
ifeq ($(RDFMT),tmpfs)
134
	../../../../tools/mktmpfs.py $(USPACEDIR)/dist/ initrd.fs
142
	../../../../tools/mktmpfs.py $(USPACEDIR)/dist/ initrd.fs
135
endif
143
endif
136
ifeq ($(RDFMT),fat)
144
ifeq ($(RDFMT),fat)