Changeset 1018 in Sophya
- Timestamp:
- May 20, 2000, 10:56:25 AM (25 years ago)
- Location:
- trunk/SophyaExt/JThreadsC++
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/JThreadsC++/Examples/Makefile
r1016 r1018 9 9 10 10 SYSNOM = $(shell echo `uname`) 11 SYSNOMD = $(shell echo `uname | sed 's/-//'`) 11 12 SYSCOMPNOM = $(SYSNOM)-$(CXX) 12 13 … … 16 17 17 18 SYSLIBS = -lpthread 19 CPPFLAGS := -I$(INC) -D$(SYSNOMD) 18 20 ifeq ($(CXX),cxx) 19 CPPFLAGS := -I$(INC) -pthread21 CPPFLAGS := $(CPPFLAGS) -pthread 20 22 endif 21 23 -
trunk/SophyaExt/JThreadsC++/JTCSrc/JTC/Config.h
r1016 r1018 11 11 ***********************************************************************/ 12 12 13 /* ----------------------------------------------------------- 14 Modified by R. Ansari (LAL-IN2P3/CNRS) for multi-platform 15 multi-compiler support 05/2000 16 -------------------------------------------------------------- */ 13 17 14 /* Define if you need to in order for stat and other things to work. */ 15 /* #undef _POSIX_SOURCE */ 18 #ifndef JTCCONFIG_H_SEEN 19 #define JTCCONFIG_H_SEEN 16 20 17 /* Define if your processor stores words with the most significant 18 byte first (like Motorola and SPARC, unlike Intel and VAX). */ 19 /* #undef WORDS_BIGENDIAN */ 21 /* System dependence (thread capabilities) */ 20 22 21 /* Define if your c++ compiler doesn't know mutable. */ 22 /* #undef HAVE_NO_MUTABLE */ 23 24 /* Define if your c++ compiler doesn't have namespaces. */ 25 /* #undef HAVE_NO_NAMESPACE */ 26 27 /* Define if your c++ compiler supports iostream in namespace std. */ 28 /* #undef HAVE_STD_IOSTREAM */ 29 30 /* Define if your c++ compiler supports STL in namespace std. */ 31 #define HAVE_STD_STL 1 32 33 /* Define if your c++ compiler can explicitly instanciate templates. */ 34 /* #undef HAVE_NO_EXPLICIT_TEMPLATES */ 35 36 /* Define if your c++ compiler does not have RTTI. */ 37 /* #undef HAVE_NO_RTTI */ 38 39 /* Define if your c++ compiler can't overload const type conversions. */ 40 /* #undef HAVE_NO_CONST_TYPE_CONVERSION_OVERLOAD */ 41 42 /* Define if your c++ compiler doesn't have typename. */ 43 /* #undef HAVE_NO_TYPENAME */ 44 45 /* Define if you don't have a prototype for gethostname(). */ 46 /* #undef HAVE_NO_GETHOSTNAME_PROTOTYPE */ 47 48 /* Define if there is no declaration for h_errno */ 49 /* #undef HAVE_NO_H_ERRNO_DECLARATION */ 50 51 /* Define if OS supports MIT threads. */ 52 /* #undef HAVE_MIT_THREADS */ 53 54 /* Define if OS supports FSU threads. */ 55 /* #undef HAVE_FSU_THREADS */ 56 57 /* Define if OS supports posix threads. */ 23 /* DEC/Compaq TruUnix64 (OSF1) */ 24 #if defined(OSF1) 58 25 #define HAVE_POSIX_THREADS 1 59 60 /* Define if OS supports DCE threads. */61 /* #undef HAVE_DCE_THREADS */62 63 /* Define if OS supports pthread_attr_setstacksize. */64 26 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 65 66 /* Define if OS supports pthread_delay_np. */67 27 #define HAVE_PTHREAD_DELAY_NP 1 68 69 /* Define if OS supports pthread_sched_yield. */70 28 #define HAVE_SCHED_YIELD 1 71 72 /* Define if OS supports pthread_yield. */73 /* #undef HAVE_PTHREAD_YIELD */74 75 /* Define if JThreads/C++ has support for stop/suspend/resume. */76 29 #define HAVE_JTC_STOP 1 77 78 /* The number of bytes in a bool. */79 #define SIZEOF_BOOL 180 81 /* The number of bytes in a char. */82 #define SIZEOF_CHAR 183 84 /* The number of bytes in a double. */85 #define SIZEOF_DOUBLE 886 87 /* The number of bytes in a float. */88 #define SIZEOF_FLOAT 489 90 /* The number of bytes in a int. */91 #define SIZEOF_INT 492 93 /* The number of bytes in a long. */94 #define SIZEOF_LONG 895 96 /* The number of bytes in a short. */97 #define SIZEOF_SHORT 298 99 /* Define if you have the strcasecmp function. */100 #define HAVE_STRCASECMP 1101 102 /* Define if you have the strerror function. */103 #define HAVE_STRERROR 1104 105 /* Define if you have the strncasecmp function. */106 #define HAVE_STRNCASECMP 1107 108 /* Define if you have the <bstring.h> header file. */109 /* #undef HAVE_BSTRING_H */110 111 /* Define if you have the <exception> header file. */112 #define HAVE_EXCEPTION 1113 114 /* Define if you have the <exception.h> header file. */115 #define HAVE_EXCEPTION_H 1116 117 /* Define if you have the <fstream> header file. */118 /* #undef HAVE_FSTREAM */119 120 /* Define if you have the <iostream> header file. */121 /* #undef HAVE_IOSTREAM */122 123 /* Define if you have the <sched.h> header file. */124 30 #define HAVE_SCHED_H 1 125 31 126 /* Define if you have the <stddef.h> header file. */ 127 #define HAVE_STDDEF_H 1 32 /* Linux */ 33 #elif defined(Linux) 34 #define HAVE_POSIX_THREADS 1 35 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 36 #define HAVE_SCHED_YIELD 1 37 #define HAVE_JTC_STOP 1 38 #define HAVE_SCHED_H 1 128 39 129 /* Define if you have the <stdlib.h> header file. */ 130 #define HAVE_STDLIB_H 1 40 /* SGI - ** To be checked ** */ 41 #elif defined(IRIX64) 42 #define HAVE_POSIX_THREADS 1 43 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 44 #define HAVE_SCHED_YIELD 1 45 #define HAVE_JTC_STOP 1 46 #define HAVE_SCHED_H 1 47 #if !defined(__sgi) 48 #define __sgi 1 49 #endif 131 50 132 /* Define if you have the <strings.h> header file. */ 133 #define HAVE_STRINGS_H 1 51 /* IBM-AIX - ** To be checked ** */ 52 #elif defined(AIX) 53 #define HAVE_POSIX_THREADS 1 54 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 55 #define HAVE_SCHED_YIELD 1 56 #define HAVE_JTC_STOP 1 57 #define HAVE_SCHED_H 1 134 58 135 /* Define if you have the <strstream> header file. */ 136 /* #undef HAVE_STRSTREAM */ 59 /* Sun-Solaris - ** To be checked ** */ 60 #elif defined(SunOS) 61 #define HAVE_POSIX_THREADS 1 62 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 63 #define HAVE_SCHED_YIELD 1 64 #define HAVE_JTC_STOP 1 65 #define HAVE_SCHED_H 1 137 66 138 /* Define if you have the <sys/sched.h> header file. */ 139 /* #undef HAVE_SYS_SCHED_H */ 67 #else 68 #error Undefined OS type in JTC/Config.h 69 #endif 140 70 141 /* Define if you have the <sys/select.h> header file. */ 142 #define HAVE_SYS_SELECT_H 1 71 /* Compiler dependend flags */ 72 /* ---- g++ KCC cxx (DEC) CC (SGI) --- */ 73 /* All supported compilers have bool type, and exception handling */ 74 #define SIZEOF_BOOL 1 75 #define HAVE_EXCEPTION 1 76 #define HAVE_EXCEPTION_H 1 /* To be checked */ 143 77 144 /* Define if you have the <sys/time.h> header file. */ 145 #define HAVE_SYS_TIME_H 1 78 #endif 146 79 147 /* Define if you have the <sys/types.h> header file. */148 #define HAVE_SYS_TYPES_H 1149 80 150 /* Define if you have the <terminate.h> header file. */151 /* #undef HAVE_TERMINATE_H */152 81 153 /* Define if you have the <termio.h> header file. */154 #define HAVE_TERMIO_H 1155 82 156 /* Define if you have the <termios.h> header file. */157 #define HAVE_TERMIOS_H 1158 83 159 /* Define if you have the <unexpected.h> header file. */160 /* #undef HAVE_UNEXPECTED_H */161 84 162 /* Define if you have the <unistd.h> header file. */163 #define HAVE_UNISTD_H 1164 85 165 /* Define if you have the malloc library (-lmalloc). */ 166 /* #undef HAVE_LIBMALLOC */ 86 87 88 -
trunk/SophyaExt/JThreadsC++/JTCSrc/Makefile
r1016 r1018 9 9 10 10 SYSNOM = $(shell echo `uname`) 11 SYSNOMD = $(shell echo `uname | sed 's/-//'`) 11 12 SYSCOMPNOM = $(SYSNOM)-$(CXX) 12 13 … … 17 18 $(COMPILE.cc) -o $@ $< 18 19 20 CPPFLAGS := -I. -D$(SYSNOMD) 19 21 # Flag pour compilo DEC-cxx (Compaq) 20 22 ifeq ($(CXX),cxx) 21 CPPFLAGS := -I.-pthread -nopt -distinguish_nested_enums23 CPPFLAGS := $(CPPFLAGS) -pthread -nopt -distinguish_nested_enums 22 24 endif 23 25
Note:
See TracChangeset
for help on using the changeset viewer.