Parent Directory
|
Revision Log
feat: add plibc to the project
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 | |||
10 | %.o: %.s | ||
11 | @echo " AS $@" | ||
12 | @$(AS) $(ASFLAGS) -o $@ $< | ||
13 | |||
14 | clean: | ||
15 | @echo " RM $(LIB)" | ||
16 | @$(RM) $(LIB) | ||
17 | |||
18 | @for file in *.o; do \ | ||
19 | echo " RM $$file"; \ | ||
20 | $(RM) $$file; \ | ||
21 | done |
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |