mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00

At a later date we'll probably want a template for SHLIB_OBJS and SHLIB or some such, but for now at least the library demo isn't printing compile commands all over the user's terminal.
15 lines
349 B
Makefile
15 lines
349 B
Makefile
include ../../../Makefile.common
|
|
|
|
DYNLIBRARY = libDynamicLib.so
|
|
|
|
EXTRA_CLEAN = *.o *.so
|
|
|
|
all: $(DYNLIBRARY)
|
|
|
|
DynamicLib.o: DynamicLib.cpp
|
|
@echo "$(notdir $(CURDIR)): C++ $@"
|
|
$(QUIET) $(CXX) -DDEBUG -fPIC -isystem../../../ -o $@ -c $<
|
|
|
|
$(DYNLIBRARY): DynamicLib.o
|
|
@echo "$(notdir $(CURDIR)): DYLIB $@"
|
|
$(QUIET) $(CXX) -shared -o $(DYNLIBRARY) $<
|