Rev 3213 | Rev 3403 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3213 | Rev 3401 | ||
---|---|---|---|
Line 87... | Line 87... | ||
87 | $(USPACEDIR)/srv/kbd/kbd \ |
87 | $(USPACEDIR)/srv/kbd/kbd \ |
88 | $(USPACEDIR)/srv/console/console \ |
88 | $(USPACEDIR)/srv/console/console \ |
89 | $(USPACEDIR)/srv/fs/fat/fat \ |
89 | $(USPACEDIR)/srv/fs/fat/fat \ |
90 | $(USPACEDIR)/app/tetris/tetris \ |
90 | $(USPACEDIR)/app/tetris/tetris \ |
91 | $(USPACEDIR)/app/tester/tester \ |
91 | $(USPACEDIR)/app/tester/tester \ |
92 | $(USPACEDIR)/app/klog/klog \ |
92 | $(USPACEDIR)/app/cli/cli \ |
- | 93 | $(USPACEDIR)/app/dltest/dltest \ |
|
93 | $(USPACEDIR)/app/cli/cli |
94 | $(USPACEDIR)/app/klog/klog |
- | 95 | ||
- | 96 | RD_LIBS = \ |
|
- | 97 | $(USPACEDIR)/lib/rtld/rtld.so \ |
|
- | 98 | $(USPACEDIR)/lib/libc-shared/libc.so.0 |
|
94 | 99 | ||
95 | OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) |
100 | OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) |
96 | COMPONENT_OBJECTS := $(addsuffix .o,$(basename $(notdir $(COMPONENTS)))) |
101 | COMPONENT_OBJECTS := $(addsuffix .o,$(basename $(notdir $(COMPONENTS)))) |
97 | 102 | ||
98 | .PHONY: all clean depend |
103 | .PHONY: all clean depend |
Line 109... | Line 114... | ||
109 | 114 | ||
110 | clean: |
115 | clean: |
111 | -for task in $(RD_TASKS) ; do \ |
116 | -for task in $(RD_TASKS) ; do \ |
112 | rm -f $(USPACEDIR)/dist/sbin/`basename $$task` ; \ |
117 | rm -f $(USPACEDIR)/dist/sbin/`basename $$task` ; \ |
113 | done |
118 | done |
- | 119 | -for lib in $(RD_LIBS) ; do \ |
|
- | 120 | rm -f $(USPACEDIR)/dist/lib/`basename $$lib` ; \ |
|
- | 121 | done |
|
114 | -rm -f _components.h _components.c _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) initrd.img image.boot Makefile.depend |
122 | -rm -f _components.h _components.c _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) initrd.img image.boot Makefile.depend |
115 | 123 | ||
116 | _components.h _components.c _link.ld $(COMPONENT_OBJECTS) initrd.o: $(COMPONENTS) $(RD_TASKS) _link.ld.in |
124 | _components.h _components.c _link.ld $(COMPONENT_OBJECTS) initrd.o: $(COMPONENTS) $(RD_TASKS) $(RD_LIBS) _link.ld.in |
117 | for task in $(RD_TASKS) ; do \ |
125 | for task in $(RD_TASKS) ; do \ |
118 | cp $$task $(USPACEDIR)/dist/sbin/ ; \ |
126 | cp $$task $(USPACEDIR)/dist/sbin/ ; \ |
119 | done |
127 | done |
- | 128 | for lib in $(RD_LIBS) ; do \ |
|
- | 129 | cp $$lib $(USPACEDIR)/dist/lib/ ; \ |
|
- | 130 | done |
|
120 | ../../../../tools/mktmpfs.py 4096 $(USPACEDIR)/dist/ initrd.img |
131 | ../../../../tools/mktmpfs.py 4096 $(USPACEDIR)/dist/ initrd.img |
121 | ../../../tools/pack.py $(OBJCOPY) $(BFD_NAME) $(BFD_ARCH) 4096 "unsigned int" $(COMPONENTS) ./initrd.img |
132 | ../../../tools/pack.py $(OBJCOPY) $(BFD_NAME) $(BFD_ARCH) 4096 "unsigned int" $(COMPONENTS) ./initrd.img |
122 | 133 | ||
123 | %.o: %.S |
134 | %.o: %.S |
124 | $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@ |
135 | $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@ |