Skip to content

Commit

Permalink
move addpasswd to subdir
Browse files Browse the repository at this point in the history
  • Loading branch information
willamowius committed Oct 2, 2010
1 parent 3189c58 commit 5480b9a
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 17 deletions.
15 changes: 3 additions & 12 deletions Makefile.in
@@ -1,7 +1,7 @@
# -*- mode: Makefile -*-
# Copyright (C) 2002 by its various Authors, see CVS-log
#
# PURPOSE OF THIS FILE: Make file for OpenH323 Gatekeeper
# PURPOSE OF THIS FILE: Make file for GNU Gatekeeper
#
# - Automatic Version Information via RCS:
# $Id$
Expand Down Expand Up @@ -38,7 +38,7 @@ HEADERS = GkClient.h GkStatus.h Neighbor.h ProxyChannel.h RasPDU.h \
statusacct.h syslogacct.h capctrl.h MakeCall.h h460presence.h @HEADERS@

# add cleanup files for non-default targets
CLEAN_FILES += $(OBJDIR)/addpasswd $(OBJDIR)/addpasswd.o docs/manual/*.html
CLEAN_FILES += docs/manual/*.html
# add cleanup files for autoconf
#CLEAN_FILES += Makefile config.*

Expand Down Expand Up @@ -123,20 +123,11 @@ STDCCFLAGS += -fno-strict-aliasing
versionts.h: $(subst version.cxx,,$(SOURCES)) $(HEADERS) $(OH323_LIBDIR)/$(OH323_FILE) $(PW_LIBDIR)/$(PTLIB_FILE)
@touch $@

# extra targets
addpasswd: $(OBJDIR)/addpasswd.o
$(CXX) -o $(OBJDIR)/addpasswd $(CFLAGS) $(OBJDIR)/addpasswd.o $(LDFLAGS) -l$(PTLIB_BASE)$(LIB_TYPE) $(ENDLDLIBS) $(ENDLDFLAGS)

doc:
$(MAKE) -C docs/manual html

install: install-addpasswd

install-addpasswd: addpasswd
$(INSTALL) $(OBJDIR)/addpasswd $(INSTALLBIN_DIR)

static:
P_SHAREDLIB=0 LDFLAGS=-static $(MAKE) optnoshared addpasswd
P_SHAREDLIB=0 LDFLAGS=-static $(MAKE) optnoshared

#
# By this command the build number may be incremented
Expand Down
24 changes: 24 additions & 0 deletions addpasswd/Makefile
@@ -0,0 +1,24 @@
#
# Makefile
#
# Makefile for addpasswd
#
# Copyright (C) 2010 Jan Willamowius, jan@willamowius.de
#
# $Log$
# Revision 1.1 2004/12/14 07:04:05 csoutheren
# Initial version
#


PROG = addpasswd
SOURCES := addpasswd.cxx

ifndef PTLIBDIR
PTLIBDIR=${HOME}/ptlib
endif
include $(PTLIBDIR)/make/ptlib.mak

static:
P_SHAREDLIB=0 LDFLAGS=-static $(MAKE) optnoshared

2 changes: 1 addition & 1 deletion addpasswd.cxx → addpasswd/addpasswd.cxx
Expand Up @@ -7,7 +7,7 @@
// This work is published under the GNU Public License (GPL)
// see file COPYING for details.
// We also explicitly grant the right to link this code
// with the OpenH323 library.
// with the PTLib library.
//
//////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion addpasswd_2008.vcproj
Expand Up @@ -209,7 +209,7 @@
</References>
<Files>
<File
RelativePath="addpasswd.cxx"
RelativePath="addpasswd\addpasswd.cxx"
>
<FileConfiguration
Name="Debug|Win32"
Expand Down
4 changes: 2 additions & 2 deletions addpasswd_2010.vcxproj
Expand Up @@ -151,12 +151,12 @@
</Bscmake>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="addpasswd.cxx">
<ClCompile Include="addpasswd\addpasswd.cxx">
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
</Project>
1 change: 1 addition & 0 deletions changes.txt
@@ -1,5 +1,6 @@
Changes from 2.3.2 to 2.3.3
===========================
- addpasswd moved to subdir
- BUGFIX(routedmode.sgml): TcpKeepAlive= has always defaulted to 0
- BUGFIX(Toolkit.cxx): disregard IPv6 addresses if the machine has any
- BUGFIX(SoftPBX.cxx): DisconnectIP now disconnects all calls on the IP as specified
Expand Down
3 changes: 2 additions & 1 deletion docs/manual/installation.sgml
Expand Up @@ -150,7 +150,8 @@ in the config. The <tt/addpasswd/ utility is required to generate and store
these encrypted passwords. This utility is included with the gatekeeper
and can be compiled using:
<tscreen><verb>
$ make addpasswd
$ cd addpasswd
$ make optnoshared
</verb></tscreen>

The usage is as follows:
Expand Down

0 comments on commit 5480b9a

Please sign in to comment.