Files
ladybird/Demos/DynamicLink/LinkLib/Makefile
Andrew Kaster a755b80057 Demos: Link our normal startfiles into the dynamic lib demo
Now that gcc knows about crtbeginS and crtendS, and knows not to link
crt0.o into shared objects, we can get rid of the hacks required due to
--nostartfiles.
2020-01-01 23:05:17 +01:00

16 lines
274 B
Makefile

include ../../../Makefile.common
DYNLIBRARY = libDynamicLib.so
EXTRA_CLEAN = *.o *.so
.PHONY: clean all
all: $(DYNLIBRARY)
DynamicLib.o: DynamicLib.cpp
$(CXX) -DDEBUG -fPIC -isystem../../../ -o $@ -c $<
$(DYNLIBRARY): DynamicLib.o
$(CXX) -shared -o $(DYNLIBRARY) $<