mirror of
https://github.com/znc/znc.git
synced 2026-08-06 17:03:14 +02:00
make .so's seperatly installable
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@57 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+8
-3
@@ -6,17 +6,22 @@ LIBS=@LIBS@
|
||||
VPATH=.:..
|
||||
OBJS=$(addsuffix .o, $(basename $(wildcard *.cpp)))
|
||||
SRCS=$(wildcard *.cpp) $(wildcard ../*.cpp)
|
||||
|
||||
INSTALL_TARGS=$(foreach file, $(addsuffix .so, $(basename $(wildcard *.cpp))), install_$(file))
|
||||
|
||||
all: $(OBJS) $(addsuffix .so, $(basename $(wildcard *.cpp)))
|
||||
|
||||
depend::
|
||||
g++ -M $(CXXFLAGS) $(SRCS) $(INCLUDES) >.depend
|
||||
|
||||
install: all
|
||||
mkdir -p $(prefix)/modules
|
||||
install: all create_install_dir $(INSTALL_TARGS)
|
||||
install -m 0711 *.so $(prefix)/modules
|
||||
|
||||
create_install_dir:
|
||||
mkdir -p $(prefix)/modules
|
||||
|
||||
install_%:
|
||||
install -m 0711 $(subst install_,,$@) $(prefix)/modules
|
||||
|
||||
clean:
|
||||
rm -rf *.so *.o core core.*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user