Share Library (C++)
File detail
Source code
# Share library Makefile
#
# By Kamil Dudka, 2007
CXXFLAGS=-std=c++98 -W -Wall -pedantic -D_LINUX -fPIC -O3
LDFLAGS=-shared -fPIC
SO=libshare.so
OBJ=SharedSegment.o DefaultAllocator.o DefaultRefCounter.o MutexLock.o SegmentHeader.o sharelib.o
$(SO): $(OBJ)
$(CXX) -o $@ $(OBJ) $(LDFLAGS)
$(OBJ): sharelib.h
SharedSegment.o: SharedSegment.h
DefaultAllocator.o: DefaultAllocator.h
DefaultRefCounter.o: DefaultRefCounter.h
MutexLock.o: MutexLock.h
SegmentHeader.o sharelib.o: SegmentHeader.h DefaultAllocator.h DefaultRefCounter.h MutexLock.h
clean:
rm -f $(OBJ)
rm -f $(SO)