lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since 2a40908 was 2a40908, checked in by Martin Decky <martin@…>, 20 years ago |
initial (very raw) user space support
|
-
Property mode
set to
100644
|
File size:
602 bytes
|
Line | |
---|
1 | include ../arch/$(ARCH)/Makefile.inc
|
---|
2 |
|
---|
3 | sources=init.c
|
---|
4 |
|
---|
5 | CFLAGS+=-nostdinc -Ilibc -Werror-implicit-function-declaration -Wmissing-prototypes -Werror
|
---|
6 |
|
---|
7 | objects:=$(addsuffix .o,$(basename $(sources)))
|
---|
8 |
|
---|
9 | .PHONY : all depend build clean dist-clean
|
---|
10 |
|
---|
11 | all: dist-clean depend build
|
---|
12 |
|
---|
13 | -include Makefile.depend
|
---|
14 |
|
---|
15 | depend:
|
---|
16 | $(CC) $(CFLAGS) -M $(sources) >Makefile.depend
|
---|
17 |
|
---|
18 | build: init
|
---|
19 |
|
---|
20 | clean:
|
---|
21 | find . -name '*.o' -maxdepth 1 -exec rm \{\} \;
|
---|
22 | -rm init
|
---|
23 |
|
---|
24 | dist-clean:
|
---|
25 | -rm Makefile.depend
|
---|
26 | -$(MAKE) clean
|
---|
27 |
|
---|
28 | init: $(objects)
|
---|
29 | $(LD) -T _link.ld -G 0 -static $(objects) libc/libc.a -o init
|
---|
30 |
|
---|
31 | %.o: %.c
|
---|
32 | $(CC) $(CFLAGS) -c $< -o $@
|
---|
Note:
See
TracBrowser
for help on using the repository browser.