/[osn-commons]/trunk/plibc/Makefile
ViewVC logotype

Annotation of /trunk/plibc/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 51 - (hide annotations)
Fri Aug 16 18:34:43 2024 UTC (7 months, 2 weeks ago) by rakinar2
File size: 594 byte(s)
feat: add basic utilities and more system calls

1 rakinar2 47 ARCH_LIST = x86_64
2     LIB = lib/libc.a
3     BIN = bin-exec
4    
5     export AS = as
6     export CC = gcc
7     export CFLAGS = -g -Wall -Wextra -Werror -std=c99 -pedantic -O2 -static -nostdlib -nostartfiles -ffreestanding
8     export LDFLAGS = -g -static -nostdlib -nostartfiles -e _start -ffreestanding
9     export ASFLAGS = -g
10     export RM = rm -f
11    
12 rakinar2 51 all: $(ARCH_LIST) lib
13 rakinar2 47
14     lib:
15     $(MAKE) -C lib
16    
17 rakinar2 51 .PHONY: lib $(ARCH_LIST)
18 rakinar2 47
19     $(ARCH_LIST):
20     $(MAKE) -C $@
21    
22     clean:
23     $(RM) *.o $(patsubst %,%/*.o,$(ARCH_LIST))
24     $(MAKE) -C lib clean
25    
26     for dir in $(ARCH_LIST); do \
27     if [ -f $$dir/Makefile ]; then \
28     $(MAKE) -C $$dir clean; \
29     fi; \
30     done

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26