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

Annotation of /trunk/plibc/x86_64/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: 358 byte(s)
feat: add basic utilities and more system calls

1 rakinar2 47 ARCH = x86_64
2     SOURCES = $(wildcard *.s)
3     OBJECTS = $(SOURCES:.s=.o)
4     LIB = lib$(ARCH).a
5    
6     all: $(ARCH)
7    
8     $(ARCH): $(OBJECTS)
9 rakinar2 51 @echo " AR $(LIB)"
10     @$(AR) rcs $(LIB) $(OBJECTS)
11 rakinar2 47
12     %.o: %.s
13     @echo " AS $@"
14     @$(AS) $(ASFLAGS) -o $@ $<
15    
16     clean:
17     @echo " RM $(LIB)"
18     @$(RM) $(LIB)
19    
20     @for file in *.o; do \
21     echo " RM $$file"; \
22     $(RM) $$file; \
23     done

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26