source: mainline/uspace/Makefile@ 2a40908

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 
1include ../arch/$(ARCH)/Makefile.inc
2
3sources=init.c
4
5CFLAGS+=-nostdinc -Ilibc -Werror-implicit-function-declaration -Wmissing-prototypes -Werror
6
7objects:=$(addsuffix .o,$(basename $(sources)))
8
9.PHONY : all depend build clean dist-clean
10
11all: dist-clean depend build
12
13-include Makefile.depend
14
15depend:
16 $(CC) $(CFLAGS) -M $(sources) >Makefile.depend
17
18build: init
19
20clean:
21 find . -name '*.o' -maxdepth 1 -exec rm \{\} \;
22 -rm init
23
24dist-clean:
25 -rm Makefile.depend
26 -$(MAKE) clean
27
28init: $(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.