Skip to content

Commit cfe0528

Browse files
committed
makefiles: clean up everything
1 parent a34fe59 commit cfe0528

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ clean:
1616
rm -f libmultiboot.so
1717
rm -f libmultiboot.so.full
1818
rm -f ${OBJS}
19-
rm *.gcda *.gcno *.gcov
19+
rm -f *.gcda *.gcno *.gcov
20+
rm -f .depend.*
2021
$(MAKE) -C tests clean
2122

2223
.PHONY: check
@@ -38,4 +39,4 @@ libmultiboot.so.full: ${OBJS}
3839
$(CC) -shared ${CFLAGS} -Wl,-Bsymbolic ${LDFLAGS} -o $@ $> ${LDADD} ${LIBELF}
3940

4041
.c.o:
41-
$(CC) -c -fPIC -I. -Wall ${CFLAGS} -o $@ $>
42+
$(CC) -c -fPIC -I. -Wall ${CFLAGS} -o $@ $>

tests/Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,17 @@ clean:
2929
$(MAKE) -C data/multiboot clean
3030
rm -f test-allocator.o
3131
rm -f test-mock-bhyveload.o
32+
rm -f test-loader.o
33+
rm -f test-multiboot.o
34+
rm -f mock/compat-*.o
3235
rm -f mock/bhyveload.o
3336
rm -f test-allocator
34-
rm *.gcda *.gcno *.gcov
37+
rm -f test-loader
38+
rm -f test-mock-bhyveload
39+
rm -f test-multiboot
40+
rm -f data_*.o
41+
rm -f *.gcda *.gcno *.gcov
42+
rm -f .depend.*
3543

3644
.PHONY: ${MB_DIR}/mmap.elf
3745
${MB_DIR}/mmap.elf:

tests/data/multiboot/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ all: mmap.elf modules.elf
1717

1818
.PHONY: clean
1919
clean:
20-
rm -f start.o mmap.o libc.o test-multiboot.o
20+
rm -f start.o mmap.o libc.o test-multiboot.o modules.o
2121
rm -f mmap.elf
2222
rm -f modules.elf
2323

0 commit comments

Comments
 (0)