diff options
author | Benoit Foucher <benoit@zeroc.com> | 2016-05-03 19:26:09 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2016-05-03 19:26:09 +0200 |
commit | ee3b7be185f7d887a33b9c242a7ccd08a09d2614 (patch) | |
tree | 1974211a0cbd5e3df95b6deed0b2b42f7854aca9 /cpp/src/IceBox | |
parent | Rename files for consistency (diff) | |
download | ice-ee3b7be185f7d887a33b9c242a7ccd08a09d2614.tar.bz2 ice-ee3b7be185f7d887a33b9c242a7ccd08a09d2614.tar.xz ice-ee3b7be185f7d887a33b9c242a7ccd08a09d2614.zip |
Re-factored gmake build system
Diffstat (limited to 'cpp/src/IceBox')
-rw-r--r-- | cpp/src/IceBox/.gitignore | 7 | ||||
-rw-r--r-- | cpp/src/IceBox/Makefile | 74 | ||||
-rw-r--r-- | cpp/src/IceBox/Makefile.mk | 26 |
3 files changed, 26 insertions, 81 deletions
diff --git a/cpp/src/IceBox/.gitignore b/cpp/src/IceBox/.gitignore deleted file mode 100644 index c483621af47..00000000000 --- a/cpp/src/IceBox/.gitignore +++ /dev/null @@ -1,7 +0,0 @@ -// Generated by makegitignore.py - -// IMPORTANT: Do not edit this file -- any edits made here will be lost! -.depend -.depend -IceBox.cpp -IceBox.h diff --git a/cpp/src/IceBox/Makefile b/cpp/src/IceBox/Makefile deleted file mode 100644 index acacecfc27a..00000000000 --- a/cpp/src/IceBox/Makefile +++ /dev/null @@ -1,74 +0,0 @@ -# ********************************************************************** -# -# Copyright (c) 2003-2016 ZeroC, Inc. All rights reserved. -# -# This copy of Ice is licensed to you under the terms described in the -# ICE_LICENSE file included in this distribution. -# -# ********************************************************************** - -top_srcdir = ../.. - -LIBFILENAME = $(call mklibfilename,IceBox,$(VERSION)) -SONAME = $(call mksoname,IceBox,$(SOVERSION)) -LIBNAME = $(call mklibname,IceBox) - -SERVER = $(bindir)/icebox$(binsuffix) -ADMIN = $(bindir)/iceboxadmin - -LIBTARGETS = $(call mklibtargets,$(libdir)/$(LIBFILENAME),$(libdir)/$(SONAME),$(libdir)$(cpp11libdirsuffix)/$(LIBNAME)) -TARGETS = $(LIBTARGETS) $(SERVER) $(ADMIN) - -SLICE_OBJS = IceBox.o - -LIB_OBJS = Exception.o \ - $(SLICE_OBJS) - -SOBJS = Service.o \ - ServiceManagerI.o - -AOBJS = Admin.o - -OBJS = $(LIB_OBJS) \ - $(SOBJS) \ - $(AOBJS) - -HDIR = $(headerdir)/IceBox -SDIR = $(slicedir)/IceBox - -RPATH_DIR = $(LOADER_PATH)/../$(libsubdir) - -include $(top_srcdir)/config/Make.rules - -CPPFLAGS := -I.. $(CPPFLAGS) -SLICE2CPPFLAGS := --checksum --ice --dll-export ICE_BOX_API --include-dir IceBox $(SLICE2CPPFLAGS) -LINKWITH := $(BZIP2_RPATH_LINK) -lIce -lIceUtil - -$(libdir)/$(LIBFILENAME): $(LIB_OBJS) - @mkdir -p $(dir $@) - rm -f $@ - $(call mkshlib,$@,$(SONAME),$(LIB_OBJS),$(LINKWITH)) - -$(libdir)/$(SONAME): $(libdir)/$(LIBFILENAME) - rm -f $@ - ln -s $(LIBFILENAME) $@ - -$(libdir)$(cpp11libdirsuffix)/$(LIBNAME): $(libdir)/$(SONAME) - @mkdir -p $(libdir)$(cpp11libdirsuffix) - rm -f $@ - ln -s $(cpp11sonamedir)$(SONAME) $@ - -$(SERVER): $(SOBJS) $(LIBTARGETS) - rm -f $@ - $(CXX) $(LDFLAGS) $(LDEXEFLAGS) -o $@ $(SOBJS) -lIceBox $(LIBS) - -$(ADMIN): $(AOBJS) $(LIBTARGETS) - rm -f $@ - $(CXX) $(LDFLAGS) $(LDEXEFLAGS) -o $@ $(AOBJS) -lIceBox $(LIBS) - -install:: all - $(call installlib,$(DESTDIR)$(install_libdir),$(libdir),$(LIBFILENAME),$(SONAME),$(LIBNAME)) - $(call installprogram,$(SERVER),$(DESTDIR)$(install_bindir)) - $(call installdata,$(top_srcdir)/../man/man1/icebox.1,$(DESTDIR)$(install_mandir)) - $(call installprogram,$(ADMIN),$(DESTDIR)$(install_bindir)) - $(call installdata,$(top_srcdir)/../man/man1/iceboxadmin.1,$(DESTDIR)$(install_mandir)) diff --git a/cpp/src/IceBox/Makefile.mk b/cpp/src/IceBox/Makefile.mk new file mode 100644 index 00000000000..f1499a055b0 --- /dev/null +++ b/cpp/src/IceBox/Makefile.mk @@ -0,0 +1,26 @@ +# ********************************************************************** +# +# Copyright (c) 2003-2015 ZeroC, Inc. All rights reserved. +# +# This copy of Ice is licensed to you under the terms described in the +# ICE_LICENSE file included in this distribution. +# +# ********************************************************************** + +$(project)_libraries := IceBox +$(project)_programs := icebox iceboxadmin +$(project)_dependencies := Ice IceUtil +$(project)_sliceflags := --include-dir IceBox --dll-export ICEBOX_API + +IceBox_targetdir := $(libdir) +IceBox_sources := $(slicedir)/IceBox/IceBox.ice $(currentdir)/Exception.cpp + +icebox_targetdir := $(bindir) +icebox_sources := $(currentdir)/Service.cpp $(currentdir)/ServiceManagerI.cpp +icebox_dependencies := IceBox + +iceboxadmin_targetdir := $(bindir) +iceboxadmin_sources := $(currentdir)/Admin.cpp +iceboxadmin_dependencies:= IceBox + +projects += $(project) |