1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
# Copyright (C) 1999-2001 Open Source Telecom Corporation.
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
MAINTAINERCLEANFILES = Makefile.in Makefile
EXTRA_DIST=ccgnu2-config.in ccgnu2-config ost_check2.m4 Makefile.bcc \
getopt.h getopt.c getopt1.c
LT_VERSION=@LT_CCXX_VERSION@
AM_CXXFLAGS = -I../src -DCCXX_EXPORT_LIBRARY $(THREAD_FLAGS) \
@XML_FLAGS@ -I$(CCXX_DIR)
AM_CFLAGS = $(THREAD_FLAGS)
#INCLUDES = -I$(CCXX_DIR) @XML_FLAGS@
RELEASE = $(LT_VERSION) -release $(LT_RELEASE)
aclocaldir = $(datadir)/aclocal
aclocal_DATA = ost_check2.m4
bin_SCRIPTS = ccgnu2-config
lib_LTLIBRARIES = libccgnu2.la libccext2.la
libccgnu2_la_LIBADD = @THREAD_LIBS@
libccgnu2_la_LDFLAGS = $(RELEASE)
noinst_DATA = @STAGE2@
if GETOPT_LONG
optincludedir=$(includedir)/cc++2
optinclude_HEADERS = getopt.h
libccgnu2_la_SOURCES = thread.cpp mutex.cpp semaphore.cpp threadkey.cpp \
friends.cpp event.cpp slog.cpp dir.cpp file.cpp inaddr.cpp \
peer.cpp port.cpp socket.cpp network.cpp serial.cpp mempager.cpp \
keydata.cpp dso.cpp exception.cpp process.cpp urlstring.cpp \
private.h getopt.c getopt1.c
else
libccgnu2_la_SOURCES = thread.cpp mutex.cpp semaphore.cpp threadkey.cpp \
friends.cpp event.cpp slog.cpp dir.cpp file.cpp inaddr.cpp \
peer.cpp port.cpp socket.cpp network.cpp serial.cpp mempager.cpp \
keydata.cpp dso.cpp exception.cpp process.cpp urlstring.cpp \
private.h
endif
libccext2_la_LIBADD = @BASE_LIB@ @THREAD_LIBS@
libccext2_la_LDFLAGS = $(RELEASE)
libccext2_la_SOURCES = buffer.cpp fifo.cpp pipe.cpp numbers.cpp \
cmdoptns.cpp url.cpp xml.cpp persist.cpp engine.cpp digest.cpp \
date.cpp groups.cpp md5.cpp sha.cpp unix.cpp ftp.cpp
# macosx additional thing
macosx: libccext2.la libccgnu2.la
rm -rf .libs/*.dylib
ld -r -o ccgnu2.lo $(libccgnu2_la_OBJECTS)
../libtool --mode=link c++ -dynamic -dynamiclib -o libccgnu2.la \
-rpath $(libdir) ccgnu2.lo $(LDFLAGS) -lpthread
ld -r -o ccext2.lo $(libccext2_la_OBJECTS)
../libtool --mode=link c++ -dynamic -dynamiclib -o libccext2.la \
-rpath $(libdir) ccext2.lo $(LDFLAGS) -lpthread
touch macosx
|