-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build all python plugins on windows.
- Loading branch information
Marco van Wieringen
committed
Jun 23, 2015
1 parent
51c3926
commit fdcab57
Showing
9 changed files
with
125 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# | ||
# BAREOS® - Backup Archiving REcovery Open Sourced | ||
# | ||
# Copyright (C) 2014-2014 Bareos GmbH & Co. KG | ||
# | ||
# This program is Free Software; you can redistribute it and/or | ||
# modify it under the terms of version three of the GNU Affero General Public | ||
# License as published by the Free Software Foundation and included | ||
# in the file LICENSE. | ||
# | ||
# This program is distributed in the hope that it will be useful, but | ||
# WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
# Affero General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with this program; if not, write to the Free Software | ||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
# 02110-1301, USA. | ||
# | ||
VPATH = .:../../../plugins/dird | ||
|
||
include ../../Makefile.inc | ||
|
||
ifeq ($(WIN_VERSION),32) | ||
INCLUDES = -I../../.. \ | ||
-I../../../include \ | ||
-I../../../dird \ | ||
-I../../../plugins/dird \ | ||
-I../../include \ | ||
-I../../compat/include | ||
else | ||
INCLUDES = -I../../.. \ | ||
-I../../../include \ | ||
-I../../../dird \ | ||
-I../../../plugins/dird \ | ||
-I../../include \ | ||
-I../../compat/include | ||
endif | ||
PYTHON_INCLUDES = -I../python/include | ||
LDLIBS = ../../lib/libbareos.dll \ | ||
$(MINGW_LIB)/libpthreadGCE2.a \ | ||
$(MINGW_LIB)/libz.dll.a \ | ||
$(MINGW_LIB)/libfastlz.dll.a \ | ||
$(WINSOCKLIB) -lole32 -loleaut32 -luuid | ||
|
||
ifeq ($(WIN_DEBUG),yes) | ||
OPT_CXXFLAGS = $(CXXFLAGS) -O2 | ||
else | ||
OPT_CXXFLAGS = $(CXXFLAGS) | ||
endif | ||
|
||
all: python-dir.dll | ||
|
||
ifeq ($(WIN_VERSION),64) | ||
python-dir.o: CXXFLAGS += -DMS_WIN64 | ||
endif | ||
python-dir.o: python-dir.c | ||
@echo "Compiling $<" | ||
$(CXX) $(DLL_USAGE) $(OPT_CXXFLAGS) $(PYTHON_INCLUDES) -c -o $@ $< | ||
|
||
python-dir.dll: DLL_USAGE = -DBUILDING_DLL | ||
python-dir.dll: python-dir.o | ||
$(CXX) $(LDFLAGS_DLL) -Wl,--out-implib,$@.a python-dir.o $(LDLIBS) ../python/lib/$(WIN_VERSION)/python27.dll -o $@ | ||
|
||
clean: | ||
rm -f *.o | ||
|
||
distclean:: clean | ||
rm -f python-dir.dll python-dir.dll.a | ||
|
||
# inference rules | ||
.c.o: | ||
@echo "Compiling $<" | ||
$(CXX) $(DLL_USAGE) $(CXXFLAGS) -c -o $@ $< |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters