Parent Directory
|
Revision Log
feat: add basic utilities and more system calls
1 | 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 | @echo " AR $(LIB)" |
10 | @$(AR) rcs $(LIB) $(OBJECTS) |
11 | |
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 |