source: mainline/uspace/libc/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: 609 bytes
Line 
1include ../../arch/$(ARCH)/Makefile.inc
2
3sources=libc.c \
4 entry.s
5
6CFLAGS+=-nostdinc -I. -Werror-implicit-function-declaration -Wmissing-prototypes -Werror
7
8objects:=$(addsuffix .o,$(basename $(sources)))
9
10.PHONY : all depend build clean dist-clean
11
12all: dist-clean depend build
13
14-include Makefile.depend
15
16depend:
17 $(CC) $(CFLAGS) -M $(sources) >Makefile.depend
18
19build: libc.a
20
21clean:
22 find . -name '*.o' -exec rm \{\} \;
23 -rm libc.a
24
25dist-clean:
26 -rm Makefile.depend
27 -$(MAKE) clean
28
29libc.a: $(objects)
30 $(AR) rc libc.a $(objects)
31
32%.o: %.s
33 $(AS) $(ASFLAGS) $< -o $@
34
35%.o: %.c
36 $(CC) $(CFLAGS) -c $< -o $@
Note: See TracBrowser for help on using the repository browser.