Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

204 lines (151 sloc) 5.58 kB
# libcouchbase
# Copyright (C) 2011 Couchbase, Inc
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Description: Build libcouchbase as a dll on Microsoft Windows
# Author : Trond Norbye <trond.norbye@gmail.com>
TARGETOS=WINNT
!include <win32.mak>
INSTALL=c:\local
INSTALLDIRS=$(INSTALL) $(INSTALL)\include $(INSTALL)\include\libcouchbase $(INSTALL)\lib $(INSTALL)\bin
DBGFLG=-Zi
INCPATH=-I$(INSTALL)\include -Iwin32 -Isrc -Iinclude
COMPILE=$(cc) $(cdebug) $(cflags) $(DBGFLG) $(INCPATH)
DLLCOMPILE=$(cc) $(cdebug) $(cflags) $(cvarsdll) $(DBGFLG) $(INCPATH) -DLIBCOUCHBASE_INTERNAL=1
LIBCOUCHBASE_OBJS=arithmetic.obj \
base64.obj \
cookie.obj \
error.obj \
event.obj \
flush.obj \
get.obj \
gethrtime.obj \
handler.obj \
instance.obj \
iofactory_win32.obj \
packet.obj \
plugin-win32.obj \
remove.obj \
ringbuffer.obj \
server.obj \
store.obj \
strerror.obj \
tap.obj \
timings.obj \
touch.obj \
utilities.obj \
wait.obj
all: libcouchbase.dll test
test: tests\base64-test.exe tests\getopt-test.exe tests\ringbuffer-test.exe \
tests\strerror-test.exe
tests\base64-test.exe
tests\getopt-test.exe
tests\ringbuffer-test.exe
tests\strerror-test.exe
#
# The test programs
#
tests\base64-test.exe: tests\base64-test.obj tests\base64.obj
$(link) -out:tests\base64-test.exe tests\base64-test.obj \
tests\base64.obj
tests\base64-test.obj: tests\base64-test.c
$(COMPILE) -Fotests\base64-test.obj tests\base64-test.c
tests\base64.obj: src\base64.c
$(COMPILE) -Fotests\base64.obj src\base64.c
tests\ringbuffer-test.exe: tests\ringbuffer-test.obj tests\ringbuffer.obj
$(link) -out:tests\ringbuffer-test.exe tests\ringbuffer-test.obj \
tests\ringbuffer.obj
tests\ringbuffer-test.obj: tests\ringbuffer-test.c
$(COMPILE) -Fotests\ringbuffer-test.obj tests\ringbuffer-test.c
tests\ringbuffer.obj: src\ringbuffer.c
$(COMPILE) -Fotests\ringbuffer.obj src\ringbuffer.c
tests\getopt-test.exe: tests\getopt-test.obj win32\getopt.obj
$(link) -out:tests\getopt-test.exe tests\getopt-test.obj \
win32\getopt.obj
tests\getopt-test.obj: tests\getopt-test.cc
$(COMPILE) -Fotests\getopt-test.obj tests\getopt-test.cc
tests\strerror-test.exe: tests\strerror-test.obj libcouchbase.dll
$(link) -out:tests\strerror-test.exe tests\strerror-test.obj \
libcouchbase.lib
tests\strerror-test.obj: tests\strerror-test.c
$(COMPILE) -Fotests\strerror-test.obj tests\strerror-test.c
example\memcat.exe: example\memcat.obj win32\getopt.obj libcouchbase.dll
$(link) -out:example\memcat.exe example\memcat.obj \
win32\getopt.obj libcouchbase.lib
example\memcat.obj: example\memcat.c
$(COMPILE) -Foexample\memcat.obj example\memcat.c
win32\getopt.obj: win32\getopt.c win32\getopt.h
$(COMPILE) -Fowin32\getopt.obj win32\getopt.c
libcouchbase.dll: $(LIBCOUCHBASE_OBJS)
$(link) $(dlllflags) /LIBPATH:$(INSTALL)\lib libvbucket.lib \
libsasl.lib ws2_32.lib \
-out:libcouchbase.dll -version:1.0 $(LIBCOUCHBASE_OBJS)
arithmetic.obj: src\arithmetic.c
$(DLLCOMPILE) src\arithmetic.c
base64.obj: src\base64.c
$(DLLCOMPILE) src\base64.c
cookie.obj: src\cookie.c
$(DLLCOMPILE) src\cookie.c
event.obj: src\event.c
$(DLLCOMPILE) src\event.c
error.obj: src\error.c
$(DLLCOMPILE) src\error.c
wait.obj: src\wait.c
$(DLLCOMPILE) src\wait.c
flush.obj: src\flush.c
$(DLLCOMPILE) src\flush.c
get.obj: src\get.c
$(DLLCOMPILE) src\get.c
gethrtime.obj: src\gethrtime.c
$(DLLCOMPILE) src\gethrtime.c
handler.obj: src\handler.c
$(DLLCOMPILE) src\handler.c
instance.obj: src\instance.c
$(DLLCOMPILE) src\instance.c
iofactory_win32.obj: src\iofactory_win32.c
$(DLLCOMPILE) src\iofactory_win32.c
packet_debug.obj: src\packet_debug.c
$(DLLCOMPILE) src\packet_debug.c
packet.obj: src\packet.c
$(DLLCOMPILE) src\packet.c
plugin-win32.obj: src\plugin-win32.c
$(DLLCOMPILE) src\plugin-win32.c
remove.obj: src\remove.c
$(DLLCOMPILE) src\remove.c
ringbuffer.obj: src\ringbuffer.c
$(DLLCOMPILE) src\ringbuffer.c
server.obj: src\server.c
$(DLLCOMPILE) src\server.c
store.obj: src\store.c
$(DLLCOMPILE) src\store.c
strerror.obj: src\strerror.c
$(DLLCOMPILE) src\strerror.c
tap.obj: src\tap.c
$(DLLCOMPILE) src\tap.c
timings.obj: src\timings.c
$(DLLCOMPILE) src\timings.c
touch.obj: src\touch.c
$(DLLCOMPILE) src\touch.c
utilities.obj: src\utilities.c
$(DLLCOMPILE) src\utilities.c
$(INSTALL) $(INSTALL)\include $(INSTALL)\include\libcouchbase $(INSTALL)\lib $(INSTALL)\bin:; -@mkdir $@
install: $(INSTALLDIRS) libcouchbase.dll
@copy include\libcouchbase\*.h $(INSTALL)\include\libcouchbase
@copy libcouchbase.dll $(INSTALL)\lib
@copy libcouchbase.dll $(INSTALL)\bin
@copy libcouchbase.exp $(INSTALL)\lib
@copy libcouchbase.lib $(INSTALL)\lib
clean:
-@del $(LIBCOUCHBASE_OBJS) libcouchbase.dll libcouchbase.exp libcouchbase.lib vc100.pdb example\memcat.obj example\memcat.exe win32\getopt.obj
Jump to Line
Something went wrong with that request. Please try again.