Build: Demos/DynamicLink: use EXTRA_CLEAN

This commit is contained in:
joshua stein 2020-01-01 13:17:35 -06:00 committed by Andreas Kling
parent f06d0da39f
commit e7de8af379
Notes: sideshowbarker 2024-07-19 10:28:11 +09:00

View File

@ -1,8 +1,9 @@
include ../../../Makefile.common
DYNLIBRARY = libDynamicLib.so
EXTRA_CLEAN = *.o *.so
.PHONY: clean all
all: $(DYNLIBRARY)
@ -15,6 +16,3 @@ DynamicLib.o: DynamicLib.cpp
# which is clearly wrong. Isn't it? We don't want _start...
$(DYNLIBRARY): DynamicLib.o
$(CXX) -shared -nostartfiles -ffreestanding -o $(DYNLIBRARY) $<
clean:
rm -f *.o *.d *.so