mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@48 726aef4b-f618-498e-8847-2d620e286838
29 lines
574 B
Makefile
29 lines
574 B
Makefile
ifneq ($(MAKE),gmake)
|
|
# If you got an ERROR on the previous line, then you aren't using gmake
|
|
endif
|
|
|
|
CXX=g++
|
|
CXXFLAGS=@CXXFLAGS@
|
|
INCLUDES=@INCLUDES@ -I..
|
|
LIBS=@LIBS@
|
|
VPATH=.:..
|
|
OBJS=$(addsuffix .o, $(basename $(wildcard *.cpp)))
|
|
SRCS=$(wildcard *.cpp) $(wildcard ../*.cpp)
|
|
|
|
|
|
all: $(OBJS) $(addsuffix .so, $(basename $(wildcard *.cpp)))
|
|
|
|
depend::
|
|
g++ -M $(CXXFLAGS) $(SRCS) $(INCLUDES) >.depend
|
|
|
|
clean:
|
|
rm -rf *.so *.o core core.*
|
|
|
|
-include .depend
|
|
|
|
%.so: %.o
|
|
$(CXX) $(CXXFLAGS) -shared -o $@ $< $(INCLUDES) $(LIBS)
|
|
|
|
%.o: %.cpp
|
|
$(CXX) $(CXXFLAGS) $(INCLUDES) -c -o $@ $<
|