1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

tt: Fixup tt build for new includes locations

Some files were trying to access the global includes directy in the
build area with things like #include <api/c/tt_c.h>, which is now
wrong.  Se we fix all of those up.  tt_c.h and tttk.h are now global,
so we no longer need to root around various build dirs to find them.

TT builds again.
This commit is contained in:
Jon Trulson 2019-10-25 17:37:58 -06:00
parent 369308b737
commit 31fec7edb5
67 changed files with 72 additions and 94 deletions

View file

@ -41,7 +41,7 @@
#include <sys/wait.h>
#include <sys/param.h>
#include <errno.h>
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "util/tt_path.h"
#include "util/tt_gettext.h"
#include "util/copyright.h"

View file

@ -35,7 +35,7 @@
#ifndef _COPIER_H
#define _COPIER_H
#include <api/c/tt_c.h>
#include <Tt/tt_c.h>
#include <util/tt_string.h>
class copier : public _Tt_object {

View file

@ -46,7 +46,7 @@
#include <errno.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "util/tt_gettext.h"
#include "util/copyright.h"
#include "mover.h"

View file

@ -35,7 +35,7 @@
#ifndef _MOVER_H
#define _MOVER_H
#include <api/c/tt_c.h>
#include <Tt/tt_c.h>
#include <util/tt_string.h>
class mover : public _Tt_object {

View file

@ -38,7 +38,7 @@
#if defined(OPT_BUG_SUNOS_4)
# include <stdlib.h>
#endif
#include <api/c/tt_c.h>
#include <Tt/tt_c.h>
#include <util/tt_path.h>
#include <util/tt_enumname.h>
#include <util/copyright.h>

View file

@ -35,7 +35,7 @@
#ifndef _RCOPIER_H
#define _RCOPIER_H
#include <api/c/tt_c.h>
#include <Tt/tt_c.h>
#include <util/tt_string.h>
class rpath : public _Tt_object {

View file

@ -46,7 +46,7 @@
#include <errno.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "util/tt_path.h"
#include "util/tt_gettext.h"
#include "util/copyright.h"

View file

@ -35,7 +35,7 @@
#ifndef _REMOVER_H
#define _REMOVER_H
#include <api/c/tt_c.h>
#include <Tt/tt_c.h>
#include <util/tt_string.h>
class remover : public _Tt_object {

View file

@ -61,7 +61,7 @@ extern int errno;
#endif
#include "ttauth.h"
#include "api/c/api_auth.h"
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include <signal.h>

View file

@ -50,7 +50,7 @@ in this Software without prior written authorization from The Open Group.
*/
#include "ttauth.h"
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
/*

View file

@ -45,7 +45,7 @@
#include <unistd.h>
#include <nl_types.h>
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "util/tt_file_system.h"
#include "util/tt_file_system_entry.h"
#include "util/tt_path.h"

View file

@ -42,7 +42,7 @@
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "util/copyright.h"
#include "util/tt_gettext.h"
#include "tttar_utils.h"

View file

@ -35,7 +35,7 @@
#ifndef _ARCHIVER_H
#define _ARCHIVER_H
#include <api/c/tt_c.h>
#include <Tt/tt_c.h>
#include <util/tt_string.h>
#include "tttar_string_map.h"

View file

@ -40,7 +40,7 @@
#endif
#include <sys/param.h>
#include "api/c/api_api.h"
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "util/tt_path.h"
#include "util/tt_gettext.h"
#include "tttar_utils.h"

View file

@ -37,7 +37,7 @@
#else
#include <osfcn.h>
#endif
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "util/tt_iostream.h"
#include "tttar_utils.h"
#include "tttar_spec.h"

View file

@ -34,7 +34,7 @@
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <api/c/tt_c.h>
#include <Tt/tt_c.h>
#include <util/tt_enumname.h>
#include "tttar_utils.h"

View file

@ -34,7 +34,7 @@
#ifndef _LSTAR_UTILS_H
#define _LSTAR_UTILS_H
#include <api/c/tt_c.h>
#include <Tt/tt_c.h>
#include <util/tt_string.h>

View file

@ -46,7 +46,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "util/tt_string.h"
#include "util/tt_port.h"
#include "util/tt_gettext.h"

View file

@ -4,8 +4,6 @@ MAINTAINERCLEANFILES = Makefile.in
include ../../../tooltalk.inc
tt_HEADERS = tt_c.h
noinst_LTLIBRARIES = libapi.la
libapi_la_CXXFLAGS = $(TIRPCINC) -I../../../lib

View file

@ -43,7 +43,7 @@
#include <memory.h>
#include <errno.h>
#include "mp/mp_c.h"
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "api/c/api_api.h"
#include "api/c/api_mp.h"
#include "api/c/api_storage.h"

View file

@ -35,7 +35,7 @@
*/
#if !defined(_TT_API_API_H)
#define _TT_API_API_H
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "util/tt_string.h"
extern char _tt_api_status_page[(int)TT_STATUS_LAST];

View file

@ -36,7 +36,7 @@
* some file named api_mp_*.cc.
*/
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "api/c/api_auth.h"
char *

View file

@ -34,7 +34,7 @@
#include "db/tt_db_file.h"
#include "mp/mp_c.h"
#include "util/tt_path.h"
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "api/c/api_api.h"
#include "api/c/api_mp.h"
#include <util/tt_audit.h>

View file

@ -37,7 +37,7 @@
#define _API_ERROR_H
#include "db/tt_db_results.h"
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
typedef enum api_module {_TT_API_SPEC, // tt_spec_ calls
_TT_API_FILE, // tt_file_ calls

View file

@ -33,7 +33,7 @@
*/
#include "mp/mp_c.h"
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "api/c/api_api.h"
#include "api/c/api_error.h"
#include "api/c/api_mp.h"

View file

@ -43,7 +43,7 @@
#include "db/tt_db_file.h"
#include "mp/mp_c.h"
#include "util/tt_path.h"
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "api/c/api_api.h"
#include "api/c/api_mp.h"
#include "api/c/api_error.h"

View file

@ -39,7 +39,7 @@
#ifndef _TT_API_FILEMAP_H
#define _TT_API_FILEMAP_H
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "util/tt_string.h"
class _Tt_api_filename_map : public _Tt_object {

View file

@ -38,7 +38,7 @@
#include "mp/mp_msg_context.h"
#include "util/tt_path.h"
#include "util/tt_audit.h"
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "api/c/api_api.h"
#include "api/c/api_xdr.h"
#include "api/c/api_mp.h"

View file

@ -40,7 +40,7 @@
#include "db/tt_old_db_partition_map_ref.h"
#include "mp/mp_c_global.h"
#include "mp/mp_c.h"
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "api/c/api_api.h"
#include "api/c/api_mp.h"
#include "api/c/api_handle.h"

View file

@ -32,7 +32,7 @@
*/
#ifndef _TT_API_MP_H
#define _TT_API_MP_H
#include <api/c/tt_c.h>
#include <Tt/tt_c.h>
#include <util/tt_string.h>

View file

@ -38,7 +38,7 @@
#include "mp/mp_c.h"
#include "mp/mp_rpc_interface.h"
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "api/c/api_api.h"
#include "api/c/api_mp.h"
#include "api/c/api_handle.h"

View file

@ -38,7 +38,7 @@
#include "mp/mp_c.h"
#include "mp/mp_pat_context.h"
#include "mp/mp_c_msg_context.h"
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "api/c/api_api.h"
#include "api/c/api_mp.h"
#include "api/c/api_handle.h"

View file

@ -33,7 +33,7 @@
*/
#include "mp/mp_c.h"
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "api/c/api_api.h"
#include "api/c/api_mp.h"
#include "api/c/api_handle.h"

View file

@ -35,7 +35,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include "mp/mp_c.h"
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "api/c/api_api.h"
#include "api/c/api_mp.h"
#include "api/c/api_handle.h"

View file

@ -41,7 +41,7 @@
#define _API_TYPECB_H
#include "util/tt_object.h"
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "api/c/api_handle.h"
#if defined(__linux__)

View file

@ -34,7 +34,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "ttdnd.h"
static Tt_callback_action _ttdnd_get_contents_callback();

View file

@ -52,7 +52,7 @@
#include "db/tt_old_db_partition_map_ref.h"
#include "db/tt_old_db_consts.h"
#include "db/tt_old_db_utils.h"
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
static void _old_tt_close_db_partition_files (const _Tt_string&);
static bool_t _old_tt_is_file_a_directory (const _Tt_string&);

View file

@ -37,7 +37,7 @@
#include <sys/types.h>
#include <netinet/in.h>
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "util/tt_port.h"
#include "util/tt_gettext.h"
#include "db/tt_old_db_consts.h"

View file

@ -41,7 +41,7 @@
#if defined(OPT_BUG_SUNOS_4) && defined(__GNUG__)
# include <stdlib.h>
#endif
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
const int VER_NO_LENGTH = 4;
const int INITIAL_VERSION_NO = 0;

View file

@ -42,7 +42,7 @@
#include <util/tt_object.h>
#include <util/tt_string.h>
#include <api/c/tt_c.h>
#include <Tt/tt_c.h>
#include <rpc/rpc.h>
class _Tt_context : public _Tt_object {

View file

@ -40,7 +40,7 @@
#include "util/tt_list.h"
#include "util/tt_string.h"
#include "mp/mp_xdr_functions.h"
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#define _TT_TYPES_CE_VERSION 1
#define _TT_XATOM_VERSION 1

View file

@ -42,7 +42,7 @@
#include <stdlib.h>
#include <rpc/rpc.h>
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "util/tt_string.h"
#include "mp/mp_auth.h"
#include "mp/mp_file_utils.h"

View file

@ -4,22 +4,8 @@ MAINTAINERCLEANFILES = Makefile.in
include ../../tooltalk.inc
header_HEADERS = tttk.h
noinst_LTLIBRARIES = libtttk.la
# We need to build a symlink to ../api/c/ so that contructs like
# include <Tt/somefile.h> can work, since we no longer have a global
# 'includes' phase during the build that installes include files
# similiar to what you would expect if they were installed on the
# system.
BUILT_SOURCES = Tt
CLEANFILES = Tt
Tt: Makefile
$(RM) Tt
$(LN_S) ../api/c Tt
libtttk_la_CXXFLAGS = $(TIRPCINC) $(TT_VERSION_DEFINE) -I../ -I../../lib
libtttk_la_SOURCES = ttdesktop.C ttdtfile.C ttdtprocid.C \

View file

@ -49,11 +49,11 @@
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/Shell.h>
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "api/c/api_api.h"
#include "util/tt_Xlib.h"
#include "util/tt_port.h"
#include "tttk/tttk.h"
#include "Tt/tttk.h"
#include "tttk/tttk2free.h"
#include "tttk/tttkutils.h"
#include "tttk/tttkmessage.h"

View file

@ -33,7 +33,7 @@
#ifndef ttdesktop_h
#define ttdesktop_h
#include "tttk/tttk.h"
#include "Tt/tttk.h"
#include "tttk/tttkmessage.h"
typedef struct {

View file

@ -31,9 +31,9 @@
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
*/
#include <unistd.h>
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "api/c/api_api.h"
#include "tttk/tttk.h"
#include "Tt/tttk.h"
#include "tttk/tttkpattern.h"
#include "tttk/tttkmessage.h"
#include "tttk/tttk2free.h"

View file

@ -35,7 +35,7 @@
#define ttdtprocid_h
#include "util/tt_new.h"
#include "tttk/tttk.h"
#include "Tt/tttk.h"
class _TtDtProcid: public _Tt_allocated {
public:

View file

@ -25,9 +25,9 @@
//%% (c) Copyright 1993, 1994 Sun Microsystems, Inc.
//%% (c) Copyright 1993, 1994 Novell, Inc.
//%% $XConsortium: ttmedia.C /main/3 1995/10/23 10:32:41 rswiston $
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "util/tt_gettext.h"
#include "tttk/tttk.h"
#include "Tt/tttk.h"
#include "tttk/ttdesktop.h"
#include "tttk/tttkmessage.h"
#include "tttk/tttkpattern.h"

View file

@ -33,11 +33,11 @@
#include <errno.h>
#include <unistd.h>
#include <limits.h>
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "util/tt_gettext.h"
#include "util/tt_Xlib.h"
#include "util/tt_port.h"
#include "tttk/tttk.h"
#include "Tt/tttk.h"
#include "tttk/tttk2free.h"
#include "tttk/tttkutils.h"
#include "tttk/tttkpattern.h"

View file

@ -33,9 +33,9 @@
#ifndef tttk2free_h
#define tttk2free_h
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "util/tt_new.h"
#include "tttk/tttk.h"
#include "Tt/tttk.h"
//
// An instance of this class will automatically destroy() a message or

View file

@ -30,9 +30,9 @@
*
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
*/
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "api/c/api_mp.h"
#include "tttk/tttk.h"
#include "Tt/tttk.h"
#include "tttk/tttkpattern.h"
#include "tttk/tttkmessage.h"
#include "tttk/tttk2free.h"

View file

@ -34,7 +34,7 @@
#ifndef ttdtmessage_h
#define ttdtmessage_h
#include "tttk/tttk.h"
#include "Tt/tttk.h"
typedef Tt_message (*_TtDtMessageCB)(
Tt_message msg,

View file

@ -30,8 +30,8 @@
*
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
*/
#include "api/c/tt_c.h"
#include "tttk/tttk.h"
#include "Tt/tt_c.h"
#include "Tt/tttk.h"
#include "tttk/tttkmessage.h"
#include "tttk/tttk2free.h"
#include "tttk/tttkutils.h"

View file

@ -34,7 +34,7 @@
#ifndef tttkpattern_h
#define tttkpattern_h
#include "tttk/tttk.h"
#include "Tt/tttk.h"
#include "tttk/tttkmessage.h"
Tt_status _tttk_patterns_destroy(

View file

@ -33,10 +33,10 @@
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "util/tt_port.h"
#include "api/c/api_api.h"
#include "tttk/tttk.h"
#include "Tt/tttk.h"
#include "tttk/tttkutils.h"
char _TttkKeys[ _TttkNumKeys ] = { 0 };

View file

@ -151,7 +151,7 @@ extern struct tt_trace_svf tt_trace_svec[], *tt_trace_bgin;
#include <stdio.h>
#include <string.h>
#include <sys/param.h>
#include <api/c/tt_c.h>
#include <Tt/tt_c.h>
#include "util/tt_trace.tab.h"
#undef input

View file

@ -33,7 +33,7 @@
*/
#include <unistd.h>
#include <fcntl.h>
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "util/tt_trace.h"
#include "util/tt_global_env.h"
#include "util/tt_audit.h"

View file

@ -35,7 +35,7 @@
*/
#if !defined(_TT_ENUMNAME_H)
#define _TT_ENUMNAME_H
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "util/tt_entry_pt.h"
typedef int _Tt_ce_status;

View file

@ -36,7 +36,7 @@
#include <stdio.h>
#include "util/tt_string.h"
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
class _Tt_message;
class _Tt_pattern;

View file

@ -32,7 +32,7 @@
*/
#include <unistd.h>
#include <fcntl.h>
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "util/tt_global_env.h"
#include "util/tt_trace.h"
#include "util/tt_port.h"

View file

@ -38,7 +38,7 @@
#ifdef _OPT_TIMERS_SUNOS
#include <sys/time.h>
#endif
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "mp/mp_message.h"
#include "mp/mp_pattern.h"
#include "util/tt_trace_stream.h"

View file

@ -15,7 +15,7 @@
#include <stdio.h>
#include <string.h>
#include <sys/param.h>
#include <api/c/tt_c.h>
#include <Tt/tt_c.h>
#include "util/tt_trace.tab.h"
#undef input

View file

@ -34,7 +34,7 @@
#ifndef _TT_TRACE_PARSER_H
#define _TT_TRACE_PARSER_H
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "util/tt_object.h"
#include "util/tt_string.h"
#include "util/tt_int_rec.h"

View file

@ -33,7 +33,7 @@
*/
#include <ctype.h>
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "util/tt_string.h"
#include "util/tt_port.h"
#include "util/tt_gettext.h"

View file

@ -4,12 +4,6 @@ include ../tooltalk.inc
noinst_LIBRARIES = libstt.a
BUILT_SOURCES = Tt
CLEANFILES = Tt
Tt: Makefile
$(RM) Tt
$(LN_S) ../lib/api/c Tt
libstt_a_CXXFLAGS = $(TIRPCINC) $(TIRPC_DEFINES) -I../lib
libstt_a_SOURCES = mp_ce_attrs.C mp_observer.C mp_observer_utils.C \

View file

@ -37,7 +37,7 @@
#ifndef MP_S_XDR_FUNCTIONS_H
#define MP_S_XDR_FUNCTIONS_H
#include <rpc/rpc.h>
#include "api/c/tt_c.h"
#include "Tt/tt_c.h"
#include "mp_s_message_utils.h"
#include "mp_s_pattern_utils.h"
#include "mp_s_procid_utils.h"

View file

@ -52,7 +52,7 @@
#include "mp_ptype.h"
#include "mp_typedb.h"
#include "api/c/api_api.h"
#include "tttk/tttk.h"
#include "Tt/tttk.h"
#include <sys/stat.h>
#include <errno.h>
#include <sys/wait.h>