mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-05 07:15:46 +00:00
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.
16 lines
274 B
Makefile
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) $<
|