Skip to content

Commit

Permalink
makefiles: clean up everything
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianfreyer committed Feb 22, 2018
1 parent a34fe59 commit cfe0528
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ clean:
rm -f libmultiboot.so
rm -f libmultiboot.so.full
rm -f ${OBJS}
rm *.gcda *.gcno *.gcov
rm -f *.gcda *.gcno *.gcov
rm -f .depend.*
$(MAKE) -C tests clean

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

.c.o:
$(CC) -c -fPIC -I. -Wall ${CFLAGS} -o $@ $>
$(CC) -c -fPIC -I. -Wall ${CFLAGS} -o $@ $>
10 changes: 9 additions & 1 deletion tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,17 @@ clean:
$(MAKE) -C data/multiboot clean
rm -f test-allocator.o
rm -f test-mock-bhyveload.o
rm -f test-loader.o
rm -f test-multiboot.o
rm -f mock/compat-*.o
rm -f mock/bhyveload.o
rm -f test-allocator
rm *.gcda *.gcno *.gcov
rm -f test-loader
rm -f test-mock-bhyveload
rm -f test-multiboot
rm -f data_*.o
rm -f *.gcda *.gcno *.gcov
rm -f .depend.*

.PHONY: ${MB_DIR}/mmap.elf
${MB_DIR}/mmap.elf:
Expand Down
2 changes: 1 addition & 1 deletion tests/data/multiboot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ all: mmap.elf modules.elf

.PHONY: clean
clean:
rm -f start.o mmap.o libc.o test-multiboot.o
rm -f start.o mmap.o libc.o test-multiboot.o modules.o
rm -f mmap.elf
rm -f modules.elf

Expand Down

0 comments on commit cfe0528

Please sign in to comment.