Compare commits

...

942 Commits

Author SHA1 Message Date
Jeff Hill
dfdbe57fd3 fix for mantis 350 2009-07-18 03:56:25 +00:00
Jeff Hill
0abb615d3a improved tests 2009-07-18 03:54:16 +00:00
Jeff Hill
02281f4d19 improved tests 2009-07-18 02:42:05 +00:00
Jeff Hill
f936104e47 improved tests 2009-07-18 02:33:42 +00:00
Jeff Hill
9f51464ea1 improved tests 2009-07-18 00:30:17 +00:00
Jeff Hill
f78b00d798 improved tests 2009-07-18 00:28:08 +00:00
Jeff Hill
a55e69113e fixed mantis 350 2009-07-17 23:50:07 +00:00
Jeff Hill
b6a22aa844 removed optimization which could make the ca client library
vulnerable if the following function indicates recv bytes are pending but
recv blocks anyways.

osiSockIoctl_t bytesPending = 0;
int status = socket_ioctl ( this->sock, FIONREAD, & bytesPending );
2009-07-17 21:33:18 +00:00
Jeff Hill
5b62da8229 fixed memory leak caused by previous revision (fixing compiler warnings) 2009-07-17 19:15:39 +00:00
Janet B. Anderson
8b9dc86233 Added GNU=NO. 2009-07-16 14:33:52 +00:00
Janet B. Anderson
4a898e6ed7 Changed $(MAKEBPT) to $(TOOLS)/makeBpt$(HOSTEXE) to fix win32-x86 build. 2009-07-15 21:15:56 +00:00
Jeff Hill
58a6493596 fixed command line arguments to follow standards 2009-07-14 23:26:10 +00:00
Jeff Hill
93809bd857 billy is nolonger an on-the-fly pv 2009-07-14 23:25:24 +00:00
Jeff Hill
90ed36c572 fix allows regression tests to work against async pv 2009-07-14 23:24:35 +00:00
Jeff Hill
9e49e0131f fix for mantis 348 2009-07-14 22:51:06 +00:00
Jeff Hill
d01e54bd34 documented excas 2009-07-14 22:41:23 +00:00
Jeff Hill
5c6975b24d improved tests 2009-07-14 22:41:08 +00:00
Jeff Hill
d7ae0fbce6 made lib more robust if server sends duplicate connect channel response 2009-07-14 22:39:41 +00:00
Jeff Hill
7d2be4f947 added comment 2009-07-14 22:37:41 +00:00
Janet B. Anderson
6fc8ac3c91 Removed BUILD_CLASS def. 2009-07-14 20:17:24 +00:00
Janet B. Anderson
6219ab5059 Added BUILD_CLASS=HOST. 2009-07-14 19:30:51 +00:00
Janet B. Anderson
2b8055672d Removed ECHO definition. 2009-07-13 21:28:30 +00:00
Janet B. Anderson
94301c8838 Set BUILD_CLASS=HOST and HOST_OPT=NO. 2009-07-13 21:27:38 +00:00
Janet B. Anderson
493085cb42 Added BUILD_CLASS and HOST_OPT definitions. 2009-07-13 21:18:13 +00:00
Janet B. Anderson
1a5bd98408 Added BUILD_CLASS and HOST_OPT definitions. 2009-07-13 21:00:44 +00:00
Janet B. Anderson
9d435693ab Added HOST_OPT and BUILD_CLASS definitions. 2009-07-13 20:56:33 +00:00
Janet B. Anderson
619d8aa541 Include linux-x86 file. 2009-07-13 20:55:13 +00:00
Janet B. Anderson
4848b0d1e1 Modified locations of OPT and BUILD_CLASS defintions. 2009-07-13 20:51:44 +00:00
Janet B. Anderson
7651d3f5ac Simplified cross debug build macro definitions. 2009-07-13 20:31:45 +00:00
Andrew Johnson
f5e287ae39 Perl CA and dbDefs.h 2009-07-10 23:19:53 +00:00
Janet B. Anderson
1c18e92da7 Removing seemingly unnecessary dependancy lines. 2009-07-10 22:00:18 +00:00
Janet B. Anderson
ae85d44190 Remove comment line. 2009-07-10 21:54:25 +00:00
Janet B. Anderson
83618673bc Executed host tools should be from EPICS_BASE_HOST_BIN directory. 2009-07-10 21:51:25 +00:00
Janet B. Anderson
d1bbd5037f Removed unneeded ECHO definition. 2009-07-10 14:42:09 +00:00
Janet B. Anderson
4c9fe7e0c0 Added linker options -h, -z text, -z defs to shrlib builds. 2009-07-09 21:53:27 +00:00
Janet B. Anderson
1235a1444b Added the -h (set internal name) link option to shrlib builds. 2009-07-09 21:52:32 +00:00
Andrew Johnson
3d717f4476 (M. Davidsaver): errnumlist was never initialized.
Removed long-deprecated errSymFind routine.
2009-07-09 20:11:02 +00:00
Jeff Hill
8655ea9e2a doc for excas 2009-07-09 18:43:17 +00:00
Andrew Johnson
0fb320c263 (M. Davidsaver): Use ELLLIST init macros. 2009-07-09 18:37:26 +00:00
Andrew Johnson
9663cd58f1 Fixed ELL*_INIT macros. 2009-07-09 17:51:17 +00:00
Andrew Johnson
039648824c Remove redundant macro definitions already defined in dbDefs.h
(M. Davidsaver)
2009-07-09 17:06:45 +00:00
Andrew Johnson
4e0ab97038 (M. Davidsaver): static keyword is part of C89,
remove all uses and internal definitions of LOCAL macro
2009-07-09 16:37:24 +00:00
Andrew Johnson
d7d0531394 offsetof is required by C89 (M. Davidsaver) 2009-07-09 16:19:57 +00:00
Andrew Johnson
d6fcbe14ab Cleaned up dbDefs.h and errMdef.h
Added various #include lines needed in other sources.
2009-07-09 15:27:43 +00:00
Andrew Johnson
710fc16aa4 Modified to build on Perl 5.8.4. 2009-07-09 14:54:41 +00:00
Janet B. Anderson
afbcfeaa02 Modified a comment line. 2009-07-09 14:50:15 +00:00
Jeff Hill
3e782f0220 test for mantis 285 2009-07-08 23:29:51 +00:00
Jeff Hill
7b52eaac73 test for mantis 346 2009-07-08 22:08:00 +00:00
Jeff Hill
42957877d9 fix for mantis 346 2009-07-08 21:43:38 +00:00
Andrew Johnson
245e9b5195 Added an END {} block and CA->context_destroy method for proper shutdown. 2009-07-08 21:33:01 +00:00
Andrew Johnson
bf39f9935c Cosmetic. 2009-07-08 19:08:22 +00:00
Andrew Johnson
70bf066ba9 Added ELLNODE_INIT and ELLLIST_INIT macros. 2009-07-08 19:04:22 +00:00
Andrew Johnson
a318ace551 Replaced YES and NO macros with their menuYesNo or menuSimm equivalents. 2009-07-08 18:14:11 +00:00
Jeff Hill
16f839ac12 regression test for mantis 284 2009-07-08 18:00:19 +00:00
Jeff Hill
cba3d9673d fix for mantis 284 2009-07-08 18:00:03 +00:00
Jeff Hill
162fa000c8 fix for compiler warnings in mantis 337 2009-07-07 23:54:41 +00:00
Jeff Hill
0e4891201e fix for compiler warnings in mantis 337 2009-07-07 23:47:38 +00:00
Jeff Hill
f7bfbf73f8 additional patches for memory leaks (see mantis 340) 2009-07-07 23:09:21 +00:00
Jeff Hill
6a2044cb01 added verifyContextRundownFlush 2009-07-07 21:39:43 +00:00
Jeff Hill
9f6e7a5cd7 fix for mantis 334 2009-07-07 20:05:39 +00:00
Andrew Johnson
47c6046eef Revised documentation a bit. 2009-07-07 15:56:16 +00:00
Andrew Johnson
eb800fd351 Use new provider registration function name. 2009-07-06 20:17:29 +00:00
Andrew Johnson
54928bf94f Added PINI values RUNNING and PAUSED. 2009-07-02 20:05:59 +00:00
Andrew Johnson
68dbf8addd Added PINI values RUNNING and PAUSED, needed for Asyn. 2009-07-02 20:05:32 +00:00
Andrew Johnson
2e38b09398 Tidy-up, deleted vxWorks-specific version (unnecessary),
added the task name to the printed assert message.
2009-07-02 19:49:11 +00:00
Jeff Hill
a2eb148726 removed extraneous line continuation 2009-07-01 22:28:41 +00:00
Jeff Hill
6129bfc8d5 fixed race condition gdd_NEWDEL_NEW macro 2009-07-01 22:19:53 +00:00
Jeff Hill
cc3245bf65 finished removal of epicsShareAPI (as I assume was intended) 2009-06-30 19:15:48 +00:00
Janet B. Anderson
c73dba8037 Fixed ECHO lines and added DBDFLAGS to DBTOMENUH command line. 2009-06-29 16:17:01 +00:00
Janet B. Anderson
813add592f Changed a comment line. 2009-06-26 20:59:33 +00:00
Janet B. Anderson
7ffcfd9bc0 Remove comment lines accidently committed. 2009-06-26 20:43:02 +00:00
Janet B. Anderson
c916b60c1d Created a ECHO macro and used it in the rules lines. 2009-06-26 20:37:22 +00:00
Andrew Johnson
f84e70487f Added long string support 2009-06-25 20:22:35 +00:00
Andrew Johnson
9aeb33a040 Added long strings, DBE_PROPERTY and -F option 2009-06-25 20:21:25 +00:00
Andrew Johnson
530929cd5a Cleanup 2009-06-25 20:16:00 +00:00
Andrew Johnson
81b1011d8c Added long string support, output structure types fully. 2009-06-25 20:04:28 +00:00
Andrew Johnson
0d1200ef0b Added long string support and DBE_PROPERTY. 2009-06-25 20:01:27 +00:00
Andrew Johnson
b98655b8f3 Moved checkRelease target rules into RULES_BUILD,
use CONFIG_TARGETS to only run in TOP/configure.
2009-06-24 19:33:57 +00:00
Andrew Johnson
1590358de4 Ignore any RULES value in the RELEASE files. 2009-06-24 19:27:33 +00:00
Andrew Johnson
c1c8c914db Moved RULES and CHECK_RELEASE settings, cleanup. 2009-06-24 19:25:16 +00:00
Janet B. Anderson
9bbe163f52 Moved CHECK_RELEASE definition to CONFIG_SITE. 2009-06-23 19:45:23 +00:00
Janet B. Anderson
f20ccc6c09 Moved the shared set of rules definition, RULES, to RELEASE. 2009-06-23 19:43:58 +00:00
Janet B. Anderson
d8586726a4 Tried to simplify library build rules. 2009-06-22 21:23:16 +00:00
Andrew Johnson
d84d198733 Initialize the errSym table as part of errlogInit rather than doing it
later in an error path, when we might have already run out of memory!
2009-06-19 18:24:22 +00:00
Jeff Hill
f2a96aec94 make sure and remove any UDP message remnants if there
is an exception in a UDP message handler stub
2009-06-16 17:45:35 +00:00
Andrew Johnson
957c869c87 Fix off-by-1 error in dbPutFieldLink() when checking long input string. 2009-06-15 22:30:27 +00:00
Andrew Johnson
3c19da6b3b Allow INP/OUT to be set if DSET is NULL. 2009-06-15 20:52:36 +00:00
Andrew Johnson
f32394e795 pdevLibVirtualOS needs epicsShareDef and explicitly setting to NULL,
but we can't do the latter in the os/default version.
2009-06-15 16:10:07 +00:00
Andrew Johnson
5d9317339f Removed function versions of macros, spacing cleanup. 2009-06-11 22:23:37 +00:00
Janet B. Anderson
bd57eb8c83 Added action.arch rules. 2009-06-10 20:54:59 +00:00
Andrew Johnson
5a5e2d8f74 Solve extended device support registration issue across shared libraries. 2009-06-10 20:19:32 +00:00
Janet B. Anderson
337f53c109 Allow "make <t_a>" builds. 2009-06-09 18:51:25 +00:00
Janet B. Anderson
aea3c3cc66 Fixed include file name CONFIG_SITE.darwinCommon.darwinCommon 2009-06-09 14:23:55 +00:00
Andrew Johnson
3b27446fbf ENUM string field sizes. 2009-06-08 20:02:56 +00:00
Andrew Johnson
cb0f8d5c72 Make all enum string fields the maximum size that CA can transport. 2009-06-08 19:55:49 +00:00
Andrew Johnson
a66a192ed5 Expand READONLY macro, deprecate. 2009-06-05 19:56:33 +00:00
Andrew Johnson
be6b1c4e31 Fix implicit declaration of isspace() 2009-06-05 19:16:31 +00:00
Andrew Johnson
4fc14d2dfb Fix slash. 2009-06-05 19:10:46 +00:00
Andrew Johnson
84d0a83ba3 More ANSIfication. 2009-06-05 19:07:24 +00:00
Janet B. Anderson
ebec683578 Bug fix from Michael Davidsaver at Brookhaven. 2009-06-05 16:02:26 +00:00
Andrew Johnson
f8e01c5536 SIGALARM stuff. 2009-06-05 15:52:07 +00:00
Andrew Johnson
9338d4ec59 Removed the guts of the SigAlarm code, which was only needed for HPUX
and on Linux breaks external libraries that use the Posix Timer API.
2009-06-04 21:31:39 +00:00
Janet B. Anderson
5ce69c7db0 Allow override of RTEMS_BASE asnd RTEMS_VERSION in other top dirs. 2009-06-04 18:29:33 +00:00
Andrew Johnson
8edbf9268c Fixed some compiler warnings. 2009-06-03 15:11:30 +00:00
Andrew Johnson
719a82590c Replace bzero() calls with memset(), fix Win32 issue. 2009-06-03 15:00:08 +00:00
Andrew Johnson
68bdaa899e Fixes to allow building on Solaris. Its <cxxx> headers are evidently not
quite drop-in C++ replacements for the <xxx.h> C versions.
2009-06-02 22:31:46 +00:00
Jeff Hill
a052ed56b2 EPICS_CA_BEACON _PERIOD wasnt listed as the default for EPICS_CAS_BEACON_PERIOD 2009-06-01 17:50:01 +00:00
Janet B. Anderson
a98ff64fb3 More updates for R3.14.11. 2009-05-26 21:38:02 +00:00
Jeff Hill
7653623e72 fixed potential memory leak in createDBRDD () 2009-05-13 21:14:17 +00:00
Jeff Hill
8d245ba595 added try/catch blocks so that we hopefully can bridge
periods where the new general time provides (unexpectedly
considering its advertised benfits) no time at all.
2009-05-11 22:50:06 +00:00
Jeff Hill
20bd4e9b23 fixed no try catch block for exceptions occurring when fetching the time to print a diagnostic message in the last chance exception handler. 2009-05-11 21:52:19 +00:00
Andrew Johnson
f1b1c6d105 Handle SOCK_EINTR without generating warnings. 2009-05-08 21:50:37 +00:00
Andrew Johnson
6c26a81d97 Make NTP request timeout a macro. 2009-05-07 19:35:34 +00:00
Janet B. Anderson
ef06015322 More updates for R3.14.11. 2009-05-07 16:51:04 +00:00
Janet B. Anderson
23072c0a64 Added GNU= NO
Added another include for site overrides.
2009-05-07 16:16:13 +00:00
Janet B. Anderson
9e6b077c7f Added another include for site overrides. 2009-05-07 16:14:41 +00:00
Janet B. Anderson
3b9ce581f0 Added include for CONFIG_SITE.$(EPICS_HOST_ARCH).linuxCommon overrides. 2009-05-07 16:00:16 +00:00
Andrew Johnson
01bd9f7ae0 Darwin universal binary config stuff. 2009-05-06 21:56:53 +00:00
Janet B. Anderson
f11d5ee101 SDK added to environment variables is done by vcvars32.bat. 2009-05-06 18:50:46 +00:00
Andrew Johnson
a695c4a45a Build universal binaries, allowing sites to configure what to include. 2009-05-06 17:25:01 +00:00
Janet B. Anderson
7adda5d417 Added HOST_OPT=NO 2009-05-06 15:31:09 +00:00
Janet B. Anderson
9747ef7bd6 Changed ARCH_CLASS to OS_CLASS. 2009-05-06 15:13:45 +00:00
Andrew Johnson
a187054e42 ARCH_CLASS => OS_CLASS 2009-05-05 22:01:16 +00:00
Janet B. Anderson
d023a46165 Removed include for CONFIG_SITE file. 2009-05-05 18:43:09 +00:00
Janet B. Anderson
a65c477bd1 Added include line for CONFIG_SITE file. 2009-05-05 16:31:59 +00:00
Andrew Johnson
381efb921c VMS, SGI too. 2009-05-05 15:42:12 +00:00
Andrew Johnson
1ea4b4414a Memory allocation checks from Micheal Davidsaver. 2009-05-05 15:35:05 +00:00
Andrew Johnson
8ee39f8cce Memory allocation checks. 2009-05-05 15:19:00 +00:00
Andrew Johnson
42f0106d48 Memory allocation checks. 2009-05-05 15:11:37 +00:00
Andrew Johnson
917e83e391 Use epicsStrDup for allocation check. 2009-05-05 15:02:35 +00:00
Janet B. Anderson
9e08d4d17a Updated for R3.14.11. 2009-05-04 21:46:29 +00:00
Andrew Johnson
cff8e62690 Removed vestigial VMS build script. 2009-05-04 14:48:05 +00:00
Andrew Johnson
9a2ce84718 Various cleanup and de-warning (although HOST_WARN is still NO). 2009-04-30 20:45:31 +00:00
Andrew Johnson
d8e85d242b Turned on warnings, fixed all issues (adding prototypes etc.)
Fixed memory leak in reader.c
2009-04-30 19:10:59 +00:00
Andrew Johnson
6e364ace47 Changed arg to dbCaCallbackProcess() to make it match dbCaCallback.
Removed matching unnecessary casts in softDev support routines.
2009-04-29 18:24:25 +00:00
Andrew Johnson
365389437c Removed epicsShareAPI decorator from all functions, to fix WIN32 problem
found by Mark Rivers: The dbCaCallback typename was not decorated, but the
functions being called through it apparently are.
2009-04-29 17:26:25 +00:00
Andrew Johnson
a32d3a57c6 Quiet compiler warnings about uninitialized values 2009-04-27 18:51:33 +00:00
Andrew Johnson
5f1106d060 Silence compiler warning 2009-04-27 18:42:20 +00:00
Andrew Johnson
03c82fa651 More ANSI C conversion 2009-04-27 18:31:50 +00:00
Janet B. Anderson
312c0f1203 Changed GNU make release number in comment lines 2009-04-27 16:08:50 +00:00
Andrew Johnson
c460eb410c Deleted HPUX support files. 2009-04-24 20:07:47 +00:00
Andrew Johnson
c03f26d84a Deleted hpux, no longer supported 2009-04-24 20:01:52 +00:00
Andrew Johnson
466317b23f We haven't supported VMS for YONKS... 2009-04-24 19:53:01 +00:00
Andrew Johnson
b8df15f6fa HPUX no longer supported. 2009-04-24 19:51:04 +00:00
Andrew Johnson
f626d80cf8 When did we ever support SGI? 2009-04-24 19:37:44 +00:00
Andrew Johnson
1fe93a927d The sun4 architecture was deleted long ago. 2009-04-24 19:35:06 +00:00
Andrew Johnson
6ea470d7d8 Deleted remaining references to sun4 (mostly in comments). 2009-04-24 19:31:57 +00:00
Andrew Johnson
39eaa0e335 Ansification (Michael Davidsaver) 2009-04-24 17:32:08 +00:00
Andrew Johnson
ecc300b8ff getsockopt wants socklen_t 2009-04-24 17:06:54 +00:00
Andrew Johnson
bff0841343 rtems_message_queue_receive expects size_t 2009-04-24 17:01:39 +00:00
Andrew Johnson
ae35ba28c5 missing header 2009-04-24 16:59:01 +00:00
Andrew Johnson
b05f1fe396 printf warning 2009-04-24 16:53:20 +00:00
Ralph Lange
a8a5668142 Fix: makeBaseExt uses EPICS_MBE_.... 2009-04-24 12:35:36 +00:00
Ralph Lange
28f70a28a1 Base path can be set through environment var EPICS_MBA_BASE. 2009-04-24 12:25:21 +00:00
Ralph Lange
e48308c850 Changed comment on version of GNU make needed. 2009-04-24 08:59:42 +00:00
Andrew Johnson
f7412f0c46 fix indentation and add missing calloc checks 2009-04-23 23:12:07 +00:00
Andrew Johnson
13f064fd7f Resource allocation checks missing 2009-04-23 22:28:44 +00:00
Andrew Johnson
f0652aa1b6 allocations MustSucceed 2009-04-23 22:19:46 +00:00
Andrew Johnson
f5f1c51b80 make dbMalloc and dbCalloc macros 2009-04-23 21:56:22 +00:00
Andrew Johnson
e7bb980257 initHooks, PINI and PHAS items. 2009-04-23 20:38:46 +00:00
Andrew Johnson
c13dc77564 Make PINI field into its own menu, adding RUN and PAUSE choices. 2009-04-23 20:35:02 +00:00
Andrew Johnson
163c8c0215 Add extern "C" wrapper, needed for WIN32. 2009-04-23 19:13:46 +00:00
Andrew Johnson
31d149d8d9 Fixed 64 bit compiler warnings from Tom Palaia/MacOS. 2009-04-23 18:49:40 +00:00
Andrew Johnson
b1234b4667 Modified the timeout and retry count: Allow 4 seconds for an NTP reply,
and 4 retries, thus NTP sync must work at least once every 5 minutes.
2009-04-20 22:21:45 +00:00
Andrew Johnson
1bbeeb1c87 Restore a retry into the NTP synchronization thread.
Eliminated an unnecessary local variable.
2009-04-20 15:26:11 +00:00
Andrew Johnson
8015df9e1f Added new initHook states for iocPause and iocRun commands.
Added a mutex to protect the initHook.c routines.
2009-04-16 18:38:20 +00:00
Andrew Johnson
b9886c7faa Cosmetic only; tabs, spaces & line-wrapping. 2009-04-15 19:28:28 +00:00
Andrew Johnson
e01b6bd435 Calculate monitor events properly. 2009-04-14 20:04:05 +00:00
Ralph Lange
3c92824bfd Make scanFile() recognize includes in .substitution files correctly. 2009-04-14 12:42:06 +00:00
Janet B. Anderson
e7932f03f7 Modified comments. 2009-04-13 21:27:32 +00:00
Janet B. Anderson
78eaf3543c Added BROWSER environment variable for medm extension. 2009-04-13 21:22:25 +00:00
Janet B. Anderson
1b1c28f239 Removed archive and shared split of prod libs. 2009-04-13 20:11:47 +00:00
Andrew Johnson
d79877c383 Need epicsMath.h to use epicsNAN. 2009-04-13 20:10:43 +00:00
Andrew Johnson
d545a8f04f Added test code, fixed bug found in epicsStrnEscapedFromRawSize(). 2009-04-10 19:58:34 +00:00
Andrew Johnson
23b3154fa8 Declare epicsEllTest before calling... 2009-04-09 20:38:49 +00:00
Andrew Johnson
93ac840d6e Even variables have to be marked as extern "C"... 2009-04-09 20:21:05 +00:00
Janet B. Anderson
b5acee6f76 Separate BASE and TOOLS locations 2009-04-09 18:56:06 +00:00
Andrew Johnson
19073ea8e6 Define epicsExportSharedSymbols 2009-04-09 18:36:20 +00:00
Andrew Johnson
e12396c7dd epicsShareAPI fixes for Windows. 2009-04-09 17:28:59 +00:00
Andrew Johnson
acb1bf9b29 Add epicsShareAPI to match header. 2009-04-09 17:20:05 +00:00
Andrew Johnson
f3d07ad12f ellLib changes: ANSIfication patch; moved test code out of ellLib.c into
its own unit test program in libCom/test; changed ellFree() to take a
function pointer for the free() routine, so it can be used on Windows;
modified epicsExit and dbBkpt to use it and pass in the free routine.
2009-04-09 16:51:05 +00:00
Andrew Johnson
f357fd3b13 Include DBE_PROPERTY in dbel output. 2009-04-09 16:42:02 +00:00
Andrew Johnson
79ef84dc9d A little light editing. 2009-04-09 15:15:46 +00:00
Andrew Johnson
a8b20f07a8 Applied Bernd's devAiSoft SMOO patch. 2009-04-09 15:03:09 +00:00
Andrew Johnson
134509a8ea Thread name may not be available during termination. 2009-04-08 22:39:27 +00:00
Janet B. Anderson
6fd2685053 More updates and format changes 2009-04-08 19:31:53 +00:00
Janet B. Anderson
826cd573cd Reformatted and updated contents. 2009-04-07 21:56:05 +00:00
Andrew Johnson
ca269744a6 Flush result output, allows Test::Harness to display progress. 2009-04-07 21:28:58 +00:00
Andrew Johnson
b4d2fbc98f Must be able to include this file from C code, changed comment style. 2009-04-07 15:45:38 +00:00
Andrew Johnson
c70c3beca2 Removed unused INAP menu definition. 2009-04-04 23:01:23 +00:00
Andrew Johnson
5d5fd663ff Use epicsNAN and epicsINF. 2009-04-03 21:16:25 +00:00
Andrew Johnson
f5c64db59f Waveform record Post on Change using hash. 2009-04-03 21:05:40 +00:00
Ralph Lange
990ba62e0b Added support for new MSI and MSS link flags 2009-04-03 20:54:00 +00:00
Ralph Lange
2e8595f17f Fix: caput quits when connection fails (catools) 2009-04-03 19:46:32 +00:00
W. Eric Norum
cc4b462f8c Reflect ring bytes changes. 2009-04-03 19:43:41 +00:00
Ralph Lange
7fccc59fe9 ANSIfication of stuff (mostly missing argument types in declarations) 2009-04-03 17:46:26 +00:00
Ralph Lange
4715043141 Rename of pxxx -> prec in device supports 2009-04-03 15:45:03 +00:00
Ralph Lange
c0052ea44f Changed get_alarm_double() behaviour in analog records to return epicsNAN for limits with NO_ALARM severity 2009-04-03 14:40:13 +00:00
Ralph Lange
f30a89d249 Remove CVS Id that causes just too much trouble. 2009-04-03 14:37:59 +00:00
Ralph Lange
40d0942a81 Remove fake BNL copyright notice until we have a license agreement. 2009-04-03 14:33:37 +00:00
Andrew Johnson
7228190dde Fix memory leak. 2009-04-03 01:57:11 +00:00
Ralph Lange
f4311a3f9b Rename pxxx -> prec in xxxRecord.c 2009-04-02 21:42:32 +00:00
Ralph Lange
5c8a51b6f6 Rename pxxx -> prec in all xxxRecord.c 2009-04-02 21:41:45 +00:00
Ralph Lange
8d68c85d8b Add epicsNAN and epicsINF to the osi section of libCom. 2009-04-02 21:38:07 +00:00
Ralph Lange
2640c5fa07 Added epicsNAN and epicsINF to libCom/osi 2009-04-02 21:15:26 +00:00
Ralph Lange
e18eb714a8 Print OFS for empty (suppressed) STAT/SEVR fields (catools) 2009-04-02 18:52:59 +00:00
Ralph Lange
b1556bd871 New DBE_PROPERTY event type and support in catools and mbbi/mbbo records 2009-04-02 15:51:30 +00:00
Ralph Lange
f156474714 Fix: Print indentation (catools) 2009-04-02 15:39:13 +00:00
Andrew Johnson
88971886c5 PINI Processing support for PHAS. 2009-04-02 14:11:27 +00:00
Ralph Lange
433e400c4d Fix in calculating the needed buffer length for escaped strings. 2009-04-02 13:05:42 +00:00
Ralph Lange
e484093493 Bugfixes plus added support for escaping non-printables and field separator to CA commandline tools. 2009-04-02 02:14:33 +00:00
Ralph Lange
73470d5f4c Added new functions to escape non-printable characters. (epicsString) 2009-04-02 02:13:04 +00:00
Andrew Johnson
776b8855fd Attributes and LINK fields only provide one DBF_STRING element. 2009-04-01 22:02:48 +00:00
Andrew Johnson
91a9a60594 Document long string support in caget/put/monitor tools. 2009-04-01 17:54:32 +00:00
Andrew Johnson
994e9471e4 Removed non-ASCII characters. 2009-04-01 17:47:46 +00:00
Janet B. Anderson
78a2428dbc Added SHARED_LIBRARIES definition and comment. 2009-03-31 20:08:23 +00:00
Janet B. Anderson
dc44901194 Updated EPICS_BASE/configure to CONFIG. 2009-03-31 19:48:17 +00:00
Ralph Lange
0765d5e0b1 Added support for handling strings as arrays of char (aka long strings); new -S option switches this feature. 2009-03-31 19:39:39 +00:00
Ralph Lange
6a17b86743 Added support for handling strings as arrays of char (aka long strings); new -S option switches this feature.
Fixed some inconsistencies with data print formats for enums and arrays.
2009-03-31 19:39:06 +00:00
Janet B. Anderson
4d8ee62087 Added SCIPLOT,XRT graph, X11, and Motif definitions. 2009-03-31 19:18:05 +00:00
Janet B. Anderson
8179cf1d9c Added Exceed definitons. 2009-03-31 19:13:41 +00:00
Janet B. Anderson
9958bf91e5 Added X11,Motif,Sciplot,SDDS librar, and XRT graph definitions. 2009-03-31 19:10:42 +00:00
Andrew Johnson
58b1017397 Ensure getOptions() gets called for structured DBR types. 2009-03-31 19:09:58 +00:00
Janet B. Anderson
9a09be011f Updated X11,Motif, XRT Graph, and SCIPLOT definitions. 2009-03-31 19:04:02 +00:00
W. Eric Norum
ed82e672b4 Block attempts to put more bytes than will fit. 2009-03-30 18:52:00 +00:00
W. Eric Norum
4569fa1e29 Fix up RTEMS notes. 2009-03-27 16:58:46 +00:00
W. Eric Norum
48b20cd400 Update version. 2009-03-27 13:28:26 +00:00
Andrew Johnson
f98d74b064 Long string support. 2009-03-25 23:06:18 +00:00
Andrew Johnson
ed4a2972d6 Long string support:
In dbStatic, split record and field search to make parsing easier.
  In dbAccess, '$' field name suffix makes field an array of DBF_CHAR.
2009-03-25 23:02:28 +00:00
Andrew Johnson
547e9bcfea Use epicsStrHash() 2009-03-24 17:04:02 +00:00
W. Eric Norum
57635a364b Add note about Darwin environ. 2009-03-23 20:52:18 +00:00
Andrew Johnson
cc35e59ff8 Cosmetic. 2009-03-23 19:54:42 +00:00
Andrew Johnson
2e1e5b3949 Document new epicsString Hash functions. 2009-03-20 21:51:17 +00:00
Jeff Hill
86841c5078 restored doc for ca_add_fd_registration 2009-03-20 16:41:53 +00:00
Andrew Johnson
32d5aed8b0 Ambiguous if/else fixes. 2009-03-20 06:19:47 +00:00
Andrew Johnson
6b212b0e17 Fix type of gphPvt pointer. 2009-03-20 06:04:00 +00:00
Andrew Johnson
99ff6d9a02 Removed obselete get_value routine. 2009-03-19 23:05:58 +00:00
Andrew Johnson
7ce49bf131 Reworked various hash tables, using the faster epicsStrHash() routines;
added per-bucket locks to the PV Directory, needed for run-time alias creation;
speed up gpHash lookups; improved the output of both Dump routines.
2009-03-19 23:00:44 +00:00
Andrew Johnson
7eeb70a8d9 Added epicsStrHash() and epicsMemHash(), after analyzing several hash
functions found online and the two already in Base (which both perform
a memory lookup per character and are not as good as this one).
2009-03-19 17:44:22 +00:00
Jeff Hill
dd54062496 fixed mantis 336 - timer queue should have try / catch block
around call to user's expiration callback
2009-03-13 17:23:07 +00:00
Janet B. Anderson
683c5bddf1 Commented test for j option in MAKEFLAGS. Test NOT working in make 3.81. 2009-03-12 18:38:14 +00:00
Janet B. Anderson
80d0245193 Added .depends files in O.Common for header files created from dbd files. 2009-03-12 18:22:05 +00:00
Janet B. Anderson
49e317dccb Updated DEPEND_DIRS for vxWorks directory. 2009-03-12 15:50:50 +00:00
Janet B. Anderson
78d25cbf4b Removed iocshLibrary - it no longer exists. 2009-03-11 19:23:18 +00:00
Janet B. Anderson
89442d6ed6 Changed LIBSRCS to LIB_SRCS. 2009-03-11 19:11:21 +00:00
Janet B. Anderson
3d588b13fc Changed LIBSRCS to LIB_SRCS. 2009-03-11 18:51:25 +00:00
Andrew Johnson
e42837e291 Update DST settings for 2009. 2009-03-10 20:40:22 +00:00
Andrew Johnson
100318d1b3 Remove unnecessary casts. 2009-03-10 19:20:38 +00:00
Andrew Johnson
f8c921e6a0 Mark struct dbAddr arg's const. 2009-03-10 18:54:47 +00:00
Janet B. Anderson
7ae6f9d137 Modified STATIC build. Make all *_SYS_LIBS dynamic.
Test non SYS_LIBS for dynamic or archive.
2009-03-10 18:54:14 +00:00
Andrew Johnson
aacee9c584 Cosmetic only. 2009-03-10 18:51:03 +00:00
Janet B. Anderson
8e01d0dfe8 Modified STATIC build. Make all *_SYS_LIBS dynamic.
Test non SYS_LIBS for dynamic or archive.
2009-03-10 18:46:38 +00:00
Janet B. Anderson
f3d2ba9551 Removed PROD_SYS_LIBS definition. 2009-03-10 16:44:28 +00:00
Janet B. Anderson
2f6b8f3c61 Dont print remove command. 2009-03-09 16:05:15 +00:00
Janet B. Anderson
2ad9341e45 Fixed CREATESUBSTITUTIONS rule. 2009-03-09 15:56:14 +00:00
Andrew Johnson
20916bbf24 Count aliases separately in reports. 2009-03-06 23:51:54 +00:00
Andrew Johnson
6766e46ab5 A later modification escaped into the previous set of changes... 2009-03-05 23:31:10 +00:00
Andrew Johnson
8597ae087b Allow getting a DBF_*LINK field using a DBR_CHAR array (put already done).
Fetch options before SPC_ATTRIBUTE str; allow a DBR_CHAR array there too.
2009-03-05 21:23:22 +00:00
Andrew Johnson
e2a933c51f Cosmetic changes; reformatting, style etc. 2009-03-05 20:38:10 +00:00
Andrew Johnson
11abbb06d7 Added libdl to the OS libraries needed, for dlopen/dlsym. 2009-03-04 22:51:41 +00:00
Jeff Hill
edcb7b96f8 fixed removeAll does not set the nInUse count to zero 2009-03-04 22:00:55 +00:00
Jeff Hill
31d6255169 fix for deleteing IO that wasnt selected for delete nor removed from
the list in clearOutstandingReads. This problem would probably
only occur with R3.13 clients, and only then if the R3.13 client times
out in ca_pend_io.
2009-03-04 19:33:18 +00:00
Janet B. Anderson
1fbf624e5f Removed commented references to CONFORM flags. 2009-03-03 20:24:03 +00:00
Janet B. Anderson
4cb0d85b34 Removed all references to CONFORM flags in configure files. 2009-03-03 19:54:19 +00:00
Andrew Johnson
aadbf07647 Return epicsMutexLockError rather than calling cantProceed() if the
pthread_mutex_ functions return EINVAL.
2009-03-03 18:00:49 +00:00
Andrew Johnson
33b4942ae2 Cosmetic. 2009-03-03 17:18:16 +00:00
Andrew Johnson
3093d8f4f4 Reduce duplication of alarm strings. 2009-03-03 17:15:10 +00:00
Andrew Johnson
3a6deaa60a Support for dynamic loading. 2009-02-27 23:38:33 +00:00
Andrew Johnson
9e07d56548 Include the dlload command.
Don't build on vxWorks, makes little sense.
2009-02-27 23:37:13 +00:00
Andrew Johnson
41abccccf9 Added optional dlload command. 2009-02-27 23:29:08 +00:00
Andrew Johnson
9c3fa668f3 Added epicsLoadLibrary() and some implementations. 2009-02-27 23:26:20 +00:00
Janet B. Anderson
19409d9c74 Initial version. 2009-02-26 20:56:56 +00:00
Andrew Johnson
654a7e05cd Mark source dbAddr pointers as const. 2009-02-24 22:57:15 +00:00
Andrew Johnson
8be407d608 Mark input dbAddr arguments const. 2009-02-24 22:30:26 +00:00
Andrew Johnson
a75cb10cb6 Added "errlog" command. 2009-02-24 20:10:57 +00:00
Andrew Johnson
3e68815a7b cap5 fix. 2009-02-24 17:30:19 +00:00
Andrew Johnson
92c7cd98a2 Make ca_put use best_type for both single-valued and array PVs. 2009-02-24 17:01:59 +00:00
Andrew Johnson
6c23ca9f80 Clean up compiler warnings in calls to dbGetLink. 2009-02-23 23:24:35 +00:00
Andrew Johnson
07d187b77a Fix needed for g++ 4.1.2. 2009-02-23 22:51:50 +00:00
Jeff Hill
40c802ad7b moved declaration using template down to below where its template
parameter is declared in case inclass friend forward reference to the
template parameter doesnt carry forward on all compilers
2009-02-23 21:44:39 +00:00
Jeff Hill
68f6b7d47c workaround for archaic T202 g++ bug 2009-02-23 21:40:52 +00:00
W. Eric Norum
ce3c3919ba Stephen Norum indicates that the conditionals are unnecessary. 2009-02-23 18:11:40 +00:00
W. Eric Norum
e6b0b38f61 Starting in Mac OS X 10.5 (Leopard) shared libraries and bundles
don't have direct access to environ (man environ).
 CVS: ----------------------------------------------------------------------
2009-02-23 15:36:30 +00:00
Andrew Johnson
b62d796bff Improve error reporting by addToList & deleteFromList. 2009-02-14 00:05:01 +00:00
Jeff Hill
77669d793d fixed situations where local host name cache is repatedly created and destroyed 2009-02-11 00:50:28 +00:00
Jeff Hill
e1b8caa8d7 fixed comment 2009-02-10 22:58:43 +00:00
Jeff Hill
9f5b1a11da removed some epicsSingleton related code that isnt in use 2009-02-10 22:51:53 +00:00
Jeff Hill
62618480fd fixed mantis 332 2009-02-10 22:24:20 +00:00
Janet B. Anderson
6e913fe0bb Changed PROD to PRODNAME in INSTALL_LIB_INSTALLS dependancy. 2009-02-10 20:10:59 +00:00
Janet B. Anderson
01218d0054 Install LIB_INSTALLS before PRODs are built. 2009-02-10 15:43:49 +00:00
Jeff Hill
71ec516cf5 fix for mantis 331 2009-02-09 17:29:18 +00:00
Jeff Hill
08a4fb3ce7 addred proto for ca_detach_context 2009-02-09 15:23:06 +00:00
Andrew Johnson
e2289a30df Removed duplicate alarm strings. 2009-02-03 17:25:02 +00:00
Andrew Johnson
a213ccf624 Deleted VERS field (it's already an attribute). 2009-02-03 16:28:10 +00:00
Andrew Johnson
e77736ddb2 Added dbla command. 2009-02-03 06:09:04 +00:00
Andrew Johnson
f1a0584273 Fix gcc warnings. 2009-02-03 06:05:51 +00:00
Andrew Johnson
289f5500a4 Restart nanosleep() on EINTR. 2009-01-30 20:15:40 +00:00
Andrew Johnson
03e3ce0513 STATIC => static. 2009-01-28 23:39:16 +00:00
Andrew Johnson
ffe38fffb8 Don't forget to flush! 2009-01-28 21:16:39 +00:00
Andrew Johnson
c85052de6c Fix errlogPrint and errlogVprintf so the latter outputs to the console. 2009-01-28 21:05:34 +00:00
Andrew Johnson
292a763d9a Enhance generalTime subsystem with interrupt-context time & event requests. 2009-01-28 20:01:41 +00:00
Andrew Johnson
c5fd57e5ae Make getpMessage() clear the message string rather than requiring caller to. 2009-01-28 19:57:11 +00:00
Janet B. Anderson
db076183c0 Changed EPICS_BASE_TOOLS_BIN to EPICS_BASE_BIN in PATH. 2009-01-27 21:27:32 +00:00
W. Eric Norum
15bd6bc402 RTEMS updates. 2009-01-24 23:14:44 +00:00
W. Eric Norum
63c20dbb4b Repair accidental commit of local changes.
Swirtch to RTEMS 4.10.
2009-01-23 20:24:59 +00:00
W. Eric Norum
deae06a694 Reduce RTEMS stack sizes.
Use new RTEMS 'unified memory pools'.
2009-01-23 20:21:41 +00:00
Andrew Johnson
0cabf024d7 Error message has the wrong routine name in it. 2009-01-21 20:26:52 +00:00
Andrew Johnson
c4857e820e Added dbGetNAliases(). 2009-01-19 19:04:40 +00:00
Andrew Johnson
9ca9a3c2e2 Added dbGetNAliases() function, to complete the aliases API. 2009-01-19 18:57:02 +00:00
Andrew Johnson
edf0875bcf Record aliases. 2009-01-16 20:54:01 +00:00
Andrew Johnson
e155dd411e Added dynamic parts of record alias implementation. 2009-01-16 20:50:40 +00:00
Andrew Johnson
dd7cb80555 Fix memory leak. 2009-01-16 20:04:34 +00:00
Andrew Johnson
105448f3f8 Fix access to uninitialized memory. 2009-01-16 16:49:19 +00:00
Andrew Johnson
99053303fb Fixed fetch_values() bug. 2009-01-14 23:42:20 +00:00
Andrew Johnson
a723ea357e Added record aliases. 2009-01-09 18:00:00 +00:00
Andrew Johnson
f8d6677c72 Simplified dbPutFieldLink, made DSXT work with all link types. 2009-01-08 23:51:19 +00:00
Andrew Johnson
b98392f50f Initialize objects fully before making them visible. 2009-01-08 23:44:11 +00:00
Jeff Hill
9027026680 fix for mantis 329 2009-01-08 22:27:18 +00:00
Andrew Johnson
a294e3dcb8 HTML refactoring. 2009-01-07 20:44:51 +00:00
Andrew Johnson
579c7bad06 Also need the registerFunction.h header; fixed some HTML issues. 2009-01-07 18:46:59 +00:00
W. Eric Norum
2862a9b8cf Clean up function registration instructions. 2009-01-07 18:02:21 +00:00
Andrew Johnson
307762f424 Fix DBF_LONG constant link initialization, clean up other types. 2009-01-07 00:04:49 +00:00
Andrew Johnson
0108f6ae94 Cleanup; minimize variable scopes. 2009-01-06 23:32:32 +00:00
Andrew Johnson
76c9329b5e Moved interruptAccept management into scanPause/scanRun functions. 2009-01-06 23:22:28 +00:00
Andrew Johnson
a7a6c01bea Removed the pthread_cancel() functionality from posix/osdThread.c,
resolving the whole issue with catch(...) on NPTL.
2009-01-06 23:06:25 +00:00
Andrew Johnson
4026d9f27c Nested classes have no special access priviledges to their outer class, but
only the vxWorks compiler seems to check this.  Added friend to fix.
An implicit constructor is only created if no user-defined ones exist.
2009-01-06 21:53:04 +00:00
Andrew Johnson
1bccf6879e Replaced most TestAsyn support with a common extended support layer. 2009-01-06 17:31:57 +00:00
Andrew Johnson
f14e6df788 Don't do necessary stuff inside assert(). 2009-01-06 17:07:56 +00:00
Andrew Johnson
bf3c47c3d3 Warn about undefined macros in RELEASE file. 2009-01-06 16:41:56 +00:00
W. Eric Norum
a7af535a4f Added support for MVME2700 (and perhaps MVME2400) as supplied by Matt Rippa. 2009-01-06 15:14:33 +00:00
Andrew Johnson
31fb641dff In vxWorks 5.5.2, ld < file.munch breaks future shell includes. 2009-01-05 22:32:20 +00:00
Andrew Johnson
e6ab9aa7fb Clean up compiler warnings. 2008-12-10 21:51:19 +00:00
Andrew Johnson
12e4ad3c5a Cleanup. Handle re-initialization during shutdown gracefully. 2008-12-10 21:43:36 +00:00
Andrew Johnson
0be13dfc0f Added registryDump command. 2008-12-10 21:34:00 +00:00
Andrew Johnson
67ef06c1e3 Cleanup. 2008-12-10 21:32:06 +00:00
Andrew Johnson
f951aab3f3 Fix possible race condition on SMP systems. 2008-12-09 21:46:40 +00:00
Andrew Johnson
f3bcf735cc Bug fix reported by Jens Eden. 2008-12-04 23:38:47 +00:00
Andrew Johnson
448fc10e35 Fix link problem Mark Rivers reported. 2008-12-02 23:45:16 +00:00
Janet B. Anderson
1d9543997e Removed path environment lines. User should put gcc in path. 2008-12-01 19:02:21 +00:00
Andrew Johnson
a58fa323d8 The pointer is volatile, not the object itself... 2008-12-01 17:03:03 +00:00
Janet B. Anderson
e2e7864c3d Removed path environment lines. User should put gcc in path. 2008-12-01 16:35:40 +00:00
Andrew Johnson
79a2649596 Fixed problem with time provider registration on dual-CPU systems. 2008-11-21 23:23:25 +00:00
Jeff Hill
e99e352e2c redesigned this facility for simplicity, clarity, and robustness 2008-11-19 17:20:15 +00:00
Jeff Hill
4126c71e0e added include for typedef used in this header 2008-11-19 17:17:41 +00:00
Jeff Hill
fd5b03405a disable copy ctor and operator for the epicsOnceImpl private class 2008-11-19 17:11:49 +00:00
Andrew Johnson
a37105e0c7 Fixed buffer overflow in thread name. 2008-11-16 17:32:58 +00:00
Andrew Johnson
ca1e7b0613 Added WireSet instances, needed for vxWorks 6.1. 2008-11-14 23:32:15 +00:00
Ralph Lange
438ed926ba Added -p option to commandline tools to specify CA priority. 2008-11-14 13:20:42 +00:00
Ralph Lange
519f54c06b Added -p option to commandline tools to specify CA priority. 2008-11-14 13:12:26 +00:00
Ralph Lange
c5773eafb4 Added -p option to specify CA priority. 2008-11-14 13:03:25 +00:00
W. Eric Norum
e48b9ec4ab Add NVRAM offset. 2008-11-06 21:35:26 +00:00
Andrew Johnson
49421de296 Linux: Switch to libncurses. 2008-11-04 16:08:32 +00:00
Janet B. Anderson
eee915ced7 Updated version to R3.14.11 and set EPICS_CVS_SNAPSHOT to -CVS. 2008-10-27 20:19:12 +00:00
Janet B. Anderson
e4f741f97c Changed release to R3.14.10. 2008-10-27 19:41:22 +00:00
Janet B. Anderson
0e08b62f34 R3.14.10 2008-10-27 19:39:04 +00:00
Janet B. Anderson
2b37a8f746 Added make -j option ifeq before creating arch dependancies on host_arch. 2008-10-27 19:24:45 +00:00
Andrew Johnson
f5967d268c False assertion removed. 2008-10-24 23:04:11 +00:00
Andrew Johnson
078e30b7b9 Mantis #311 fix; generate an interactive flex scanner. 2008-10-23 21:21:43 +00:00
Andrew Johnson
01349a9448 Add epicsShare decorators for visibility in a Cygwin DLL. 2008-10-23 19:27:24 +00:00
Andrew Johnson
dd2ef6d47a Reformatting, wording improvements. 2008-10-22 15:20:50 +00:00
Jeff Hill
2d51fbc3c7 fixed mantis 325 2008-10-21 20:50:26 +00:00
Jeff Hill
c5f15a3e17 fixed bug introduced after R3.14.9, but before R3.14.10-RC1 and R3.14.10-RC2 2008-10-21 20:26:48 +00:00
Andrew Johnson
cdd2748c98 Allow multiple slashes as path seperators, since we used to.
Also fixed perldoc comment formatting.
2008-10-20 18:32:47 +00:00
Andrew Johnson
6789814826 Remove space after -I option for osf-alpha. 2008-10-20 15:39:32 +00:00
Andrew Johnson
b3abcbb52e Don't fail if epicsSnprintf returns less than the buffer size needed. 2008-10-20 15:35:10 +00:00
W. Eric Norum
3274519a82 Add note about RTEMS version. 2008-10-20 15:33:27 +00:00
Janet B. Anderson
95b708a40b post-RC1 versions... 2008-10-17 19:45:00 +00:00
W. Eric Norum
3b2bbd50e5 Cleaner version of wait with timeout fix. 2008-10-16 13:38:14 +00:00
W. Eric Norum
ab765613ec Add note about RTEMS epicsEventWaitWithTimeout. 2008-10-16 13:17:57 +00:00
W. Eric Norum
ba5080d6f4 Return TIMEOUT status even when delay time is 0. 2008-10-15 19:40:57 +00:00
W. Eric Norum
a6ed0d3a53 RTEMS newlib version of strtod handles INF/NAN. 2008-10-15 19:40:00 +00:00
Andrew Johnson
edc141f98a Added checks for NULL callbacks and record pointers. 2008-10-13 14:08:35 +00:00
W. Eric Norum
7245f8127c Arrange for compatability with compile-time and run-time linking. 2008-10-11 16:40:46 +00:00
Andrew Johnson
ba37f17c89 Updated version number in title. 2008-10-10 15:50:08 +00:00
Janet B. Anderson
e6e9b9a266 -RC2 release. 2008-10-10 15:01:51 +00:00
Janet B. Anderson
570825f693 Removed old commented override lines. They are no longer valid. 2008-10-09 21:33:35 +00:00
Andrew Johnson
2c020ffac4 Make aitGen take an output filename, needed for win32. 2008-10-09 20:14:44 +00:00
Andrew Johnson
bf829e0f48 Extended testing to trigger callbacks from multiple threads, more tests. 2008-10-09 15:01:53 +00:00
Ralph Lange
9239b50615 DST changes for 2008 2008-10-09 10:13:22 +00:00
Andrew Johnson
2eb849b91c Fix segfault on linux - catch(...) must not call std::unexpected() 2008-10-08 22:44:32 +00:00
Andrew Johnson
0fff507aea Cleanup, fix an issue reported by Kazuro Furukawa. 2008-10-08 22:42:49 +00:00
Janet B. Anderson
49687e27b2 Fixed include lines. 2008-10-08 21:18:27 +00:00
Andrew Johnson
98e09831fa _APPNAME__SNCFLAGS doesn't get used... 2008-10-08 21:11:55 +00:00
Janet B. Anderson
36af6418db Removed bad include line. 2008-10-08 20:04:46 +00:00
Janet B. Anderson
cd84a4cfd0 Fixed comments. 2008-10-08 19:51:35 +00:00
Janet B. Anderson
76af265f0d Make CONFIG.Common.win32-x86 and aopional include. 2008-10-08 18:17:56 +00:00
Janet B. Anderson
7558e0a468 Fixed typo. 2008-10-08 17:31:34 +00:00
Janet B. Anderson
925dcfd634 Added WARN_CPPFLAGS,OPT_CPPFLAGS,DEBUG_CPPFLAGS
Added POSIX_CFLAGS, POSIX_CXXFLAGS, POSIX_LDFLAGS
2008-10-08 17:11:10 +00:00
Ralph Lange
1d6bea83de This is included from epicsEndian.h, so it must be usable from C and C++. 2008-10-08 10:31:44 +00:00
Andrew Johnson
2dad57f1da Link with Solaris libumem.so for better threaded malloc/free performance. 2008-10-07 22:17:17 +00:00
Janet B. Anderson
2e4d1f0d60 REMOVED file type IDL. IDL install already exists in extensions/configure. 2008-10-07 20:33:29 +00:00
Janet B. Anderson
708b0be486 Create aitConvertGenerated.cc in O.Common. Makefile cleanup. 2008-10-07 18:05:58 +00:00
Andrew Johnson
f58002e1fd Exception classes don't need to derive from std::exception,
this can cause build faults on some architectures.
2008-10-07 15:19:35 +00:00
W. Eric Norum
980d790638 Fix some typos. 2008-10-07 13:19:37 +00:00
W. Eric Norum
d579e30210 Prevent warnings -- test show that this still generates correct code. 2008-10-07 12:18:43 +00:00
W. Eric Norum
48257aec7c Fix race condition exposed by compilers with more agressive optimization.
Add test procedure for epicsRingBytes.
2008-10-07 11:05:41 +00:00
Ralph Lange
af2b7a3ef2 Fix: Don't print space after single value, only between values of an array 2008-10-06 15:51:51 +00:00
Andrew Johnson
fd9867e973 Cleanup. 2008-10-03 20:27:13 +00:00
Andrew Johnson
e97439c7df Ensure the last test actually completes and reports... 2008-10-03 19:28:34 +00:00
Andrew Johnson
150c4ff002 A proper fix for the xsubpp problems on Perl 5.8.0. 2008-10-03 18:28:56 +00:00
Andrew Johnson
86740c98d7 Updated the lists of supported architectures. 2008-10-02 21:33:23 +00:00
Andrew Johnson
d14713d675 Fix from Kazuro FURUKAWA. 2008-10-02 16:29:34 +00:00
Jeff Hill
11180d0c9c patch for DECXX compiler detected issues (found by Kazuro FURUKAWA)
see <URL:http://www-linac.kek.jp/epics/osf/>
2008-10-02 15:43:04 +00:00
Andrew Johnson
ec8761185d Another fix, for the SunPro compiler this time. 2008-09-30 17:24:11 +00:00
Jeff Hill
67e9d89ebd extended comment 2008-09-30 16:31:09 +00:00
Andrew Johnson
d3eb8170ff Fix for vxWorks 6.x - don't use std::min/max. 2008-09-30 15:29:57 +00:00
Andrew Johnson
80eca1fafa R3.14.10-RC1 update. 2008-09-29 21:55:20 +00:00
Andrew Johnson
3947594fe3 post-RC1 versions... 2008-09-29 21:16:30 +00:00
Andrew Johnson
c73bf9545d -RC1 release. 2008-09-29 21:14:41 +00:00
Andrew Johnson
917937b22f Change defaults to use Tornado 2.2.2 (at APS). 2008-09-29 20:06:50 +00:00
W. Eric Norum
fb1d649290 New target. 2008-09-29 20:05:30 +00:00
Andrew Johnson
227af040b0 Document new camonitor timestamp options. 2008-09-29 19:29:12 +00:00
Andrew Johnson
078f919296 Fix to build on WIN32. 2008-09-29 17:54:35 +00:00
Andrew Johnson
82e26e2d79 Silence ar. 2008-09-29 15:52:05 +00:00
Ralph Lange
442633fc87 Minor fix in help message. 2008-09-29 14:11:59 +00:00
Ralph Lange
84f56e57f4 Changed timestamp related commandline options, added choice of client and/or server timestamps. 2008-09-29 14:10:51 +00:00
Jeff Hill
dff447028f improved fix for mantis 316 2008-09-27 01:37:01 +00:00
Jeff Hill
1ba1909bdb improved fix for mantis 316 2008-09-27 01:18:39 +00:00
Jeff Hill
2d5497fa07 workaround for legacy vxWorks compiler bug check 2008-09-26 22:19:59 +00:00
Jeff Hill
32616ba5fa imprved fix for mantis 316 2008-09-26 22:12:15 +00:00
Andrew Johnson
37f4457c03 Added EPICS_DEPRECATED. 2008-09-26 17:24:32 +00:00
Andrew Johnson
896223e819 Fixed compiler warning. 2008-09-26 17:00:17 +00:00
Andrew Johnson
8b8f2bd0ed libCom/test/fdmgrTest depends on ca. 2008-09-26 16:17:15 +00:00
Andrew Johnson
bc80fd0e35 Added errlog to the stringout stdio device support.
Release notes updated.
2008-09-26 15:23:13 +00:00
Jeff Hill
6d99d6dd05 imprved fix for mantis 312 2008-09-25 20:27:48 +00:00
Andrew Johnson
2e35ee986e Oops, use a unique name... 2008-09-25 16:35:56 +00:00
Jeff Hill
9f71cf22cd fix for mantis 304 2008-09-25 16:35:15 +00:00
Jeff Hill
fa161e4e5a fix for mantis 306 2008-09-25 15:59:49 +00:00
Andrew Johnson
506b303c3c Added printf device support for stringout record => stdout or stderr 2008-09-24 22:40:37 +00:00
Andrew Johnson
1269897998 Fixed epicsEventWaitWithTimeout(id, 0.0), added test. 2008-09-24 19:24:59 +00:00
Jeff Hill
21e8912031 fixed conditional 2008-09-24 16:29:50 +00:00
Jeff Hill
7f96b9c0fc added try / catch block to epicsThread :: exoitWait () so that exception
specification isnt violated
2008-09-24 15:57:28 +00:00
Andrew Johnson
91d9fdbda8 Fixed problem using CA.pm from scripts outside of Base. 2008-09-24 15:02:50 +00:00
Andrew Johnson
238ab41ba1 Use $FindBin::Bin instead of expanding @TOP@. 2008-09-23 22:15:10 +00:00
Andrew Johnson
516a2cbf41 Use $FindBin::Bin so we don't need to expand @TOP@.
Needed for package management systems such as in Debian.
2008-09-23 22:13:52 +00:00
Andrew Johnson
aa9b36d7f9 Cosmetic. 2008-09-23 20:23:30 +00:00
Andrew Johnson
efa69eda5c Improve messages slightly. 2008-09-23 19:50:58 +00:00
Janet B. Anderson
7850ab921a Changed OS_CLASS WIN32 test to SHRLIB_SUFFIX .dll test. Fixed RM of libs. 2008-09-23 16:11:41 +00:00
Janet B. Anderson
c0dd8a788b Shared library rule changes made to allow make -j option to work on win32. 2008-09-22 21:21:10 +00:00
Jeff Hill
65c2e51849 committed a fix for mantis 312 2008-09-22 20:24:39 +00:00
Andrew Johnson
5d6b223229 s/FALSE/false/ 2008-09-22 18:20:56 +00:00
Andrew Johnson
1be79a4911 Version number; removed extraneous <li> tag. 2008-09-22 17:50:03 +00:00
Andrew Johnson
82abd96fc9 Build cap5 everywhere other than WIN32 archs. 2008-09-22 17:46:41 +00:00
Janet B. Anderson
a149390015 Added files for debug cross builds. 2008-09-22 15:13:14 +00:00
Jeff Hill
2bf9959e11 committed a fix for mantis 302 2008-09-19 23:27:52 +00:00
Jeff Hill
a6f4c7efd9 committed a fix for mantis 302 2008-09-19 23:03:31 +00:00
Andrew Johnson
c19d8848ed Deleted comment. 2008-09-18 20:54:22 +00:00
Andrew Johnson
934f55b9cc Turn off optimization for debug targets. 2008-09-18 20:51:36 +00:00
Andrew Johnson
3cc996a296 getOptions was not zeroing precision when no rset->get_precision routine. 2008-09-18 19:23:48 +00:00
Andrew Johnson
c0084256bd Replaced by generalTime facility in libCom. 2008-09-16 22:45:01 +00:00
Janet B. Anderson
ba7b648bf8 Added requirement comments. Moved pre1 to EPICS_CVS_SNAPSHOT. 2008-09-16 16:32:45 +00:00
Andrew Johnson
92b991c857 Post -pre1 tag. 2008-09-15 21:50:01 +00:00
Andrew Johnson
8edf588ae9 R3.14.10pre1 2008-09-15 21:47:20 +00:00
Andrew Johnson
01b8fbf100 Change NTP Synq period to 1 minute. 2008-09-15 21:26:33 +00:00
W. Eric Norum
50a6dbee9c Reuse NTP socket. 2008-09-15 21:09:44 +00:00
Andrew Johnson
a87bfe1ee7 Cygwin doesn't actually provide a clock_settime symbol, although the
prototype is present in time.h so we supply our own that returns error.
2008-09-15 20:07:23 +00:00
Andrew Johnson
3a671f712f Missing epicsExportSharedSymbols 2008-09-15 18:49:31 +00:00
W. Eric Norum
f4cae805e5 Clean up warnings. 2008-09-15 16:12:33 +00:00
Janet B. Anderson
f0336ac3b2 Added comment. 2008-09-15 15:18:41 +00:00
Janet B. Anderson
3d359e32bb Many changes to macros and RULES for installed cfg files. 2008-09-15 15:12:52 +00:00
Janet B. Anderson
dd4d24778c Bug fix for clean of RES and BOF files. Added PERL_SCRIPTS to SCRIPTS_HOST. 2008-09-15 15:10:27 +00:00
Janet B. Anderson
3fb737aea6 Moved includes for installed and RELEASE config files from RULES_TOP. 2008-09-15 15:08:45 +00:00
Janet B. Anderson
d919165573 Moved includes for installed and RELEASE config files to CONFIG. 2008-09-15 15:07:07 +00:00
Andrew Johnson
ac69ccbff7 Fix Darwin build, which doesn't have CLOCK_REALTIME. 2008-09-15 14:55:19 +00:00
Andrew Johnson
70dfa451d2 General Time. 2008-09-12 22:56:25 +00:00
Andrew Johnson
6430a49300 General Time updates: Internal cleanup of framework code and providers,
replaced the osdSysTime provider with a new osiClockTime provider,
stringin device support puts record into alarm if no working provider,
added osdTimeRegister() to RTEMS/osdTime.h.
2008-09-12 22:55:55 +00:00
Andrew Johnson
6482e7e55d Unlocking issue pointed out by Richard Dickson. 2008-09-12 19:40:16 +00:00
Andrew Johnson
2d88383a9d Clean up quadratic string processing behaviour. 2008-09-12 14:58:05 +00:00
Andrew Johnson
e47fc8b757 Lowercase the new hostname in asChangeClient() 2008-09-12 14:44:49 +00:00
Andrew Johnson
b2ce57294f Use explicit path to executable, PATH may not include '.' 2008-09-11 22:42:17 +00:00
Andrew Johnson
e2896fa82f Perl's Test::Simple library is not installed by default, use Test instead. 2008-09-11 22:35:01 +00:00
W. Eric Norum
111a140059 Change RTEMS notes. Timing changes are now supercedewd by general time changes.Mention removal of RTEMS -ansi flag. 2008-09-11 17:24:28 +00:00
W. Eric Norum
a1de4a8f5d Using -ansi causes problems.
Get rid of it.
2008-09-10 17:35:05 +00:00
Janet B. Anderson
b403ac5370 Commented out OP_SYS_CFLAGS. Removed APS specific definition. 2008-09-09 20:57:52 +00:00
Janet B. Anderson
7b44593c98 Removed extra include of CONFIG_SITE.Common.RTEMS. 2008-09-09 20:54:29 +00:00
Janet B. Anderson
bdd5649d7d Bug fixes. 2008-09-09 18:40:49 +00:00
W. Eric Norum
58be7e6b13 Clean up some warnings. 2008-09-08 21:33:19 +00:00
Andrew Johnson
b0c31ab89c Target deleted. 2008-09-05 22:16:15 +00:00
W. Eric Norum
ab8fa0f5ec Allow EPICS_TS_NTP_INET in environment to override NTP server setting. 2008-09-05 21:41:06 +00:00
Andrew Johnson
07927c5b5e Added scanonce() note. 2008-09-05 18:23:41 +00:00
Andrew Johnson
3086c5bea3 Added INSTALL_DBFLAGS to MSI's DBFLAGS. 2008-09-05 17:15:19 +00:00
Andrew Johnson
f89d5e4400 Use menuScan enums rather than #define macros where possible. 2008-09-05 15:17:45 +00:00
Andrew Johnson
9e5c6e04b7 Cleanup of NTP time provider code. 2008-09-04 22:43:56 +00:00
Andrew Johnson
bc8473bf74 Removed unused gddSemaphore.h file (vxWorks impl only). 2008-09-03 22:33:05 +00:00
Andrew Johnson
8b88489b90 Latest gcc doesn't like variables named 'true'. 2008-09-03 22:30:18 +00:00
Andrew Johnson
0bddd7dc8c Added Unit Test Harness to summarize results on vxWorks/RTEMS.
Added taskwdTest to tests run.
2008-09-03 16:48:03 +00:00
W. Eric Norum
30b87a9ead Latest vesrion of gcc has this bug fixed. 2008-09-03 16:18:36 +00:00
Andrew Johnson
2d2e6dd627 Use a Make variable that is actually used... 2008-09-02 21:27:22 +00:00
Andrew Johnson
42725c0f60 Revert Janet's latest changes until she can fix them (break SNC rules). 2008-09-02 16:08:49 +00:00
Andrew Johnson
79df764184 Added creation of ioc/dllPath.bat for Win32 IOCs. 2008-08-29 22:15:02 +00:00
Janet B. Anderson
dd226566a9 Many changes. Moved all related file type lines into RULES_FILE_TYPE. 2008-08-29 21:28:39 +00:00
Janet B. Anderson
5e9b59707c Base does not need to execute convertRelease.pl 2008-08-29 21:07:04 +00:00
Andrew Johnson
f30b6ac32e Load RELEASE.hostarch.Common as well. 2008-08-29 21:06:56 +00:00
Andrew Johnson
a2d252bc24 Fix finding templates when earlier dirs don't exist. 2008-08-29 21:03:36 +00:00
Andrew Johnson
5f816f93a4 Cygwin correction. 2008-08-29 19:44:18 +00:00
Janet B. Anderson
e13d15e3a6 Added optimization option for debug builds. 2008-08-29 17:49:54 +00:00
Andrew Johnson
789bc588f6 Change build order again; declare dependencies locally. 2008-08-29 15:27:34 +00:00
Andrew Johnson
246e47128d Remove lower-case paths, they break apps on Win32. 2008-08-29 15:24:28 +00:00
Andrew Johnson
d00f3e0225 Allow runtests to continue despite failing tests. 2008-08-28 21:54:12 +00:00
Andrew Johnson
5645bd595d Install test objects on vxWorks only. 2008-08-28 21:16:52 +00:00
Janet B. Anderson
3427a90e89 Added linux-cris* targets to comment. 2008-08-28 19:35:20 +00:00
Andrew Johnson
52ac7f0ecb Added trailing newlines (MinGW warning). 2008-08-28 15:59:29 +00:00
Andrew Johnson
14ea2740d1 Oops. 2008-08-28 15:42:09 +00:00
Andrew Johnson
7edc9f4d89 Fixes for Win32. 2008-08-28 15:32:46 +00:00
Andrew Johnson
43f82a5c8c Ensure the main thread gets a unique ID. 2008-08-28 15:27:04 +00:00
Andrew Johnson
0a393c6553 Added item about epicsEndian.h. 2008-08-27 19:37:23 +00:00
Janet B. Anderson
632da18b33 Modified comment. 2008-08-27 19:07:56 +00:00
Janet B. Anderson
7d864cde61 Removing all references to win32 interix compiler. 2008-08-27 18:55:19 +00:00
Janet B. Anderson
751fdbfb33 Removing all files relating to WIN32 interex compiler. 2008-08-27 18:46:14 +00:00
Janet B. Anderson
a5ea63f7d8 RCS files now used for all cygwin and mingw builds. 2008-08-27 18:33:59 +00:00
Andrew Johnson
1b41f513fa Fix generation of .t files on Windows. 2008-08-27 15:56:37 +00:00
Andrew Johnson
721c91293d Comment. 2008-08-27 14:30:51 +00:00
Andrew Johnson
decde6bd61 Fix generalTime initialization issue. 2008-08-26 20:31:09 +00:00
Andrew Johnson
cd9cfacca4 Fix for MinGW, although not complete -- doesn't have _vscprintf(). 2008-08-26 20:24:25 +00:00
Andrew Johnson
1f1dd6b2f2 Added more tests on inf and nan (MS compiler fails these). 2008-08-26 20:22:06 +00:00
Andrew Johnson
477466e517 Windows runs more tests because it outputs 3 digit exponents.
Fix tests and test plan to accommodate this.
2008-08-26 15:01:47 +00:00
Andrew Johnson
eab49c1753 Fixed off-by-one error in my previous fix. 2008-08-26 14:54:58 +00:00
Andrew Johnson
a9523df452 (C) comment. 2008-08-26 14:20:37 +00:00
Andrew Johnson
c1250c4456 menuArrType is not used anywhere, delete. 2008-08-26 14:14:12 +00:00
Andrew Johnson
c12c0851c7 Fix epicsVsnprintf() return value on WIN32. 2008-08-25 22:22:56 +00:00
Andrew Johnson
aa530b295b =/== bug; not sure how this got through. 2008-08-25 21:38:10 +00:00
Andrew Johnson
1cb5905c41 Link locally-compiled code that uses epicsExport.h into the support library
(DLL) rather than directly into the IOC executable.  Necessary on Win32
builds because symbol decoration requirements are different.
2008-08-22 21:10:47 +00:00
Andrew Johnson
c02a27092d Restore the $(BAT) stuff in case this bit did work. 2008-08-19 22:35:52 +00:00
Andrew Johnson
6e2bec2353 Previous commit broke build. 2008-08-19 22:26:01 +00:00
Andrew Johnson
88d7005b03 Fix socket shutdown mechanism on cygwin-x86 2008-08-19 21:52:11 +00:00
Andrew Johnson
b327d3545e Give up building this on Win32 for now. 2008-08-19 20:32:37 +00:00
Andrew Johnson
ee16b09819 Add epicsShareExtern declaration to fix cygwin build. 2008-08-19 20:06:11 +00:00
Andrew Johnson
3b6065f55e Fixes for Cygwin build. 2008-08-19 19:34:13 +00:00
Andrew Johnson
2a9842083c dbgf now shows array size, and displays an array of chars as a long string.
dbpf can put a long string to a field which is an array of chars.
2008-08-18 20:27:55 +00:00
Andrew Johnson
af40d87306 WRS moved the 'nm' program in vxWorks 6.6 2008-08-18 18:54:26 +00:00
Andrew Johnson
3d093bd8f7 Fixed precision handling, recGblGetPrec doesn't always set *precision. 2008-08-15 21:43:52 +00:00
Andrew Johnson
49ef896a36 Cleanup, remove some unnecessary casting. 2008-08-15 18:58:18 +00:00
Andrew Johnson
f8244caa94 dbcar prints type of CA subscription (In/Out, Native/String). 2008-08-15 18:51:06 +00:00
Janet B. Anderson
6d31143ee6 Added -I.. to DEFLAGS definition. 2008-08-15 18:28:51 +00:00
Andrew Johnson
dc94dd4487 Make from arg const in put. 2008-08-15 18:23:46 +00:00
Andrew Johnson
9deed0b4ac Cosmetic. 2008-08-15 16:27:23 +00:00
Andrew Johnson
ee634be0e5 Added the aSub record type, derived from Andy Foster's genSub. 2008-08-14 20:41:05 +00:00
Andrew Johnson
f4728749a2 Let compiler check args for dbPutConvertRoutine[] functions. 2008-08-14 20:12:46 +00:00
Andrew Johnson
5f7a7543d3 Make dbpr print DBF_NOACCESS pointer fields nicely (on little-endian CPUs). 2008-08-14 17:31:22 +00:00
Andrew Johnson
ae0c908493 Check rec_size *before* using it... 2008-08-13 14:56:51 +00:00
Andrew Johnson
7ab50cad05 Convert NaN values properly. 2008-08-11 21:55:02 +00:00
Andrew Johnson
9842182954 Replace local myCalloc() calls with callocMustSucceed(). 2008-08-11 17:20:38 +00:00
Andrew Johnson
8b7059491b Prevent double processing after re-enabling from an empty SNAM. 2008-08-08 19:19:55 +00:00
Andrew Johnson
482fae3ac1 epicsTimeEventDeviceTime, devLib. 2008-08-07 22:09:38 +00:00
Andrew Johnson
9f9f5b48c5 Cleanup/coding style changes.
Added support for epicsTimeEventDeviceTime.
2008-08-06 22:11:51 +00:00
Andrew Johnson
8f1a5bdac6 Improved error messages in recGblGetTimeStamp(). 2008-08-06 22:03:49 +00:00
Andrew Johnson
4290277dc7 Replaced sizeofTypes[] with dbValueSize(). 2008-08-06 22:00:39 +00:00
Andrew Johnson
1d37abdaf4 Cleanup (indentation, spacing); replaced sizeofTypes[] with dbValueSize(). 2008-08-06 21:58:38 +00:00
Janet B. Anderson
d8a68192dc Added epicsShareFunc and epicsExportSharedSymbols info. 2008-08-06 16:54:25 +00:00
Janet B. Anderson
ca1c83bf3a Added shared library support for cygwin and mingw builds. 2008-08-06 16:52:52 +00:00
Janet B. Anderson
ef1cd5faf5 RCS files now used for all cygwin and mingw builds. 2008-08-06 16:44:16 +00:00
Andrew Johnson
7aca0bff26 Cleanup, error messages mostly. 2008-08-05 22:55:43 +00:00
Andrew Johnson
30d860c323 Flush errlog before exit on input errors. 2008-08-05 22:48:45 +00:00
Janet B. Anderson
bbb4e83f43 Added shared library (DLL) support. 2008-08-05 17:47:31 +00:00
Janet B. Anderson
5248c4d504 More changes to support shared libraries and cleanup of files. 2008-07-31 21:58:37 +00:00
Janet B. Anderson
66fbabfc1a Fixed OP_SYS_CPPFLAGS definition. 2008-07-29 21:44:31 +00:00
Janet B. Anderson
519b33e4fb Changes for shared library build using MinGW compiler on win32. 2008-07-29 21:11:56 +00:00
Janet B. Anderson
552cd4eb7e Added shared library support. 2008-07-29 21:01:43 +00:00
Andrew Johnson
f0811601ea Fixed warnings on MinGW. 2008-07-29 20:47:11 +00:00
Andrew Johnson
723ea22719 MinGW defines some of these macros. 2008-07-29 20:39:26 +00:00
Andrew Johnson
a6585880f4 Fixed C++ comments in header file used from C. 2008-07-29 20:12:09 +00:00
Andrew Johnson
26e2529980 Fixed warning on Solaris. 2008-07-29 17:27:31 +00:00
Andrew Johnson
91716f766a Make mutex exception classes derive from std::exception. 2008-07-29 17:10:15 +00:00
Andrew Johnson
d456aec4e7 Fixed alignment issue on solaris-sparc-gnu. 2008-07-28 22:35:06 +00:00
Andrew Johnson
7074fc01ea Added protected virtual destructor to stop g++ warnings. 2008-07-28 22:23:35 +00:00
Andrew Johnson
ff4f3f2070 Fixed warning on Solaris. 2008-07-28 18:32:32 +00:00
Andrew Johnson
b6ee45dbab Added virtual destructors (in most cases protected) to remove g++ warnings:
'class ...' has virtual functions but non-virtual destructor
2008-07-28 16:19:50 +00:00
Andrew Johnson
8a17c4b1e8 Fixed compiler warnings. 2008-07-28 16:03:34 +00:00
Janet B. Anderson
f0813777e4 More comment changes. 2008-07-25 15:58:04 +00:00
Janet B. Anderson
327a608fdd Updated versions, comments, ... 2008-07-25 15:38:37 +00:00
Janet B. Anderson
2d3fe7b6f1 Borland compiler no longer supported. 2008-07-25 15:14:53 +00:00
Janet B. Anderson
97edfe8766 Updated for WINXP plus other changes. 2008-07-25 15:13:32 +00:00
Janet B. Anderson
17609389d9 Changed order of registryIoc libs. 2008-07-24 20:09:26 +00:00
Janet B. Anderson
f0dc99250a Added *App and *app as DEPEND_DIRS for iocBoot and iocboot. 2008-07-24 19:48:49 +00:00
Janet B. Anderson
a264796800 Allow decimal points in fullpath dir names preceeding last subdir name. 2008-07-24 15:22:14 +00:00
Andrew Johnson
94f71e16f6 Added CR/CSR support to devLib. 2008-07-23 16:37:21 +00:00
Andrew Johnson
9c106ce023 Fixed possible race condition storing callback status. 2008-07-23 16:31:10 +00:00
Janet B. Anderson
ee68b94ede Added workaround for gcc crosscompiler 4.3.1 bug in RTEMS prerelease 4.9. 2008-07-23 16:11:19 +00:00
Andrew Johnson
010d5bb46e Described ascarStats, dbcarStats and seqcarStats for Mantis #281. 2008-07-22 22:21:46 +00:00
Andrew Johnson
be6cc6bfcf Added dbcaStats() for Mantis #281. 2008-07-22 21:33:41 +00:00
Andrew Johnson
55d6405b3c Added ascaStats(), for Mantis #281. 2008-07-22 21:21:11 +00:00
Janet B. Anderson
ca18915f1c Added windres & .coff comments for later use. 2008-07-22 21:02:07 +00:00
Janet B. Anderson
2f374e927d Moved HOST_OPT from CONFIG_SITE file to CONFIG file. 2008-07-22 20:59:26 +00:00
Andrew Johnson
4f8676a3d7 Added CSS style for function headers.
Fixed Mantix #127.
2008-07-22 20:37:30 +00:00
Andrew Johnson
343b8c12ed Fix from Mantis #308 from Dirk Zimoch. 2008-07-22 19:50:59 +00:00
Janet B. Anderson
a8cfe12cb2 Moved SHRLIB_CFLAGS definition. 2008-07-22 19:49:43 +00:00
Janet B. Anderson
6318edf09e Added include for CONFIG_SITE.solarisCommon.solarisCommon 2008-07-22 19:33:44 +00:00
Janet B. Anderson
77d3234ff5 Fixed comment line with file name typo. 2008-07-22 19:30:40 +00:00
Janet B. Anderson
5cef834d39 Removed sysroot and syslibroot options - they appear to be unneeded. 2008-07-22 19:29:24 +00:00
Janet B. Anderson
8a7b18bbf0 Added dependancies for all combos of dirs actions and arches. 2008-07-22 16:10:52 +00:00
Janet B. Anderson
d9df06d9d2 Changed epicsShareDef to epicsShareExtern. 2008-07-21 21:42:26 +00:00
W. Eric Norum
11a4a7b667 Fix placement. 2008-07-21 17:44:12 +00:00
W. Eric Norum
02b87df99c The ipToAsciiProxy thread calls upon vendor libraries which may use significant amounts of stack. Account for this by providing the thread with an epicsThreadStackBig stack. 2008-07-21 17:40:44 +00:00
Janet B. Anderson
72090c2e32 Removed duplicate epicsShareAPI in line. 2008-07-21 15:42:21 +00:00
Janet B. Anderson
4c96a3bb10 Added epicsShareFunc where necessary for win32 builds. 2008-07-21 14:27:21 +00:00
Janet B. Anderson
8ea828b8b3 Added epicsShare* where necessary for win32 builds. 2008-07-21 14:26:03 +00:00
Janet B. Anderson
b4c8de6f43 Added epicsShareFunc where necessary. 2008-07-21 14:10:56 +00:00
Janet B. Anderson
ab8786a8c1 Change for win32 builds. 2008-07-21 13:49:07 +00:00
Janet B. Anderson
d0d04aeff1 gcc now needs RTEMS_BASE/lib in LD_LIBRARY_PATH. 2008-07-18 21:06:21 +00:00
Janet B. Anderson
730fecea35 Added include for CONFIG_SITE.$(EPICS_HOST_ARCH).RTEMS overrides. 2008-07-18 21:01:27 +00:00
W. Eric Norum
7765da4293 Increase stack sizes a little.
Odd problems seemed to arise with smaller sizes, although the stack checker
never reported any problems.
2008-07-16 15:33:40 +00:00
Andrew Johnson
ad7d609bc9 Try to make the build more win32-compatible, not tested. 2008-07-11 16:45:14 +00:00
Andrew Johnson
1dd7eb90b5 Add dependency catools on alarm.h which is in dbStatic.
Moved cap5 to the end of the list, so it doesn't matter if it fails.
2008-07-10 22:16:41 +00:00
Janet B. Anderson
d110f81093 Added comments about USE_STLPORT. 2008-07-10 20:00:23 +00:00
Janet B. Anderson
00d0f2dfce Added code to use stLport library instead of default Cstd library. 2008-07-10 19:45:02 +00:00
Andrew Johnson
877c039614 Redundancy + errlog. 2008-07-10 18:45:56 +00:00
Janet B. Anderson
f7fde77d44 Work done in makeMakefileInclude.pl now done in RULES_TARGET. 2008-07-10 18:31:01 +00:00
Janet B. Anderson
21f4b0f987 Added RULES_TARGET & made changes to allow removing makeMakefileInclude.pl 2008-07-10 18:28:19 +00:00
Andrew Johnson
9cd14f0cc4 Send errlog output to stderr rather than stdout, from J Lewis Muir. 2008-07-10 18:04:10 +00:00
Andrew Johnson
db9dc38ed8 Find xsubpp and podchecker from the path to the perl binary. 2008-07-10 17:27:22 +00:00
Andrew Johnson
c9bc70bd6a Added iocBuild, iocPause and iocRun commands.
These are mainly for redundant IOCs, but may be useful elsewhere.
iocBuild prepares the IOC and freezes it just before it goes live.
A subsequent iocRun kicks it into life, or restarts it when paused.
iocPause freezes all scan tasks and disconnects the server.
2008-07-09 21:31:56 +00:00
Andrew Johnson
d0d8761d0d Removed epicsShareApi decorators.
Give periodic scans their own scan list structure.
Other cleanup.
2008-07-09 14:50:10 +00:00
Janet B. Anderson
3b10db881c Removed rebuild from ACTIONS, rebuild depends on clean install. 2008-07-03 18:44:50 +00:00
Janet B. Anderson
963c43a198 Use $(TOOLS)/useManifestTool.pl tool only when needed and when it exists. 2008-07-03 15:16:04 +00:00
Janet B. Anderson
51f48fae40 Added PRECIOUS for COMMON_DIR header files. 2008-07-03 15:09:31 +00:00
Janet B. Anderson
f6f07be763 Changes to allow LOADABLE_LIBRARY to work for borland and MS compilers. 2008-07-03 15:02:15 +00:00
Janet B. Anderson
37d6265427 Removed LINK.loadable_shrlib and added TARGET_LIB_LDFLAGS. 2008-07-03 15:01:09 +00:00
Janet B. Anderson
af569835c7 Changed .o to $(OBJ). 2008-07-02 15:19:16 +00:00
Janet B. Anderson
db1cf982f7 Modified APS override of GNU_DIR. 2008-07-02 15:17:09 +00:00
Janet B. Anderson
fc1139f9da Removed unnecessary ifdef T_A. 2008-07-01 20:11:40 +00:00
Janet B. Anderson
7a98decb49 Onlu use nonexistantFilename when necessary. 2008-07-01 20:09:29 +00:00
Andrew Johnson
06caa877c2 64-bit etc. 2008-07-01 16:51:02 +00:00
Andrew Johnson
ab7011a214 Fixes for IOCs on 64-bit platforms.
empty string to char conversions now produce 0, not '0'.
Record types ANSIfied by John Hammonds.
2008-07-01 16:49:08 +00:00
Andrew Johnson
5146b46fc3 Move cap5 after softIoc. 2008-07-01 16:41:07 +00:00
Andrew Johnson
7ba7c86177 Addec cap5. 2008-06-27 23:39:19 +00:00
Andrew Johnson
f21ec43560 Added Perl5 interface to CA. Not tested on Windows... 2008-06-27 22:19:30 +00:00
Janet B. Anderson
1af874b74e Added RELEASE_DBFLAGS definition. Fixed double $ for archs names. 2008-06-26 16:14:24 +00:00
Janet B. Anderson
1ea4322dbd Fixed DBFLAGS definition. 2008-06-26 16:12:51 +00:00
Andrew Johnson
7e120e3388 Don't register the hook more than once. 2008-06-25 16:49:13 +00:00
Janet B. Anderson
1623c5ab39 Removed all references to GCC_EXEC_PREFIX. 2008-06-25 15:15:42 +00:00
Andrew Johnson
c97214d4d2 Added initTrace command to exampleApp, registers a verbose initHook. 2008-06-24 21:49:57 +00:00
Andrew Johnson
df39142335 epicsThreadOnceOsd() must unlock mutex before calling func().
Required so callbackInit() can wait for its threads to start.
2008-06-24 20:59:55 +00:00
Andrew Johnson
13922ddd8d Added hint to run RegisterDeviceDriver(). 2008-06-23 22:33:30 +00:00
Andrew Johnson
a625f45303 Modified minimum version of Perl to 5.6 (not tested!) and gnumake to 3.81. 2008-06-19 21:23:58 +00:00
W. Eric Norum
448cdf851d Just like vxWorks, RTEMS breaks horribly if GCC_EXEC_PREFIX is set. 2008-06-19 21:23:47 +00:00
Andrew Johnson
e0e3053b36 Cleanup after fix for Mantis #314. 2008-06-13 15:32:05 +00:00
Andrew Johnson
3a36b75c01 No special_linconv method needed in DSET, reduce number to 5.
Fixes Mantis #314.
2008-06-13 15:20:40 +00:00
Andrew Johnson
3be3203377 Convert Inf and NaN values properly. 2008-06-12 22:44:16 +00:00
Janet B. Anderson
eb37f08df2 RM definition has the -f option. 2008-06-11 20:50:17 +00:00
Andrew Johnson
becb4378d4 Make epicsTimeGetCurrent and epicsTimeGetEvent with epicsShareAPI
for backwards-compatibility reasons (someone may need this).
2008-06-11 18:56:25 +00:00
Andrew Johnson
556bab5ffe Added initHookName() function.
Use epicsThreadOnce() for lazy init.
2008-06-11 14:50:40 +00:00
Andrew Johnson
2dc0020513 Updated tasks, replaced explicit names with roles. 2008-06-09 21:17:16 +00:00
Janet B. Anderson
18623bb67c Fixed bug in FILE_TYPE_template. Replaced 644 with INSTALL_PERMISSIONS. 2008-06-09 20:35:01 +00:00
Janet B. Anderson
43dd9c2704 Changed 644 to INSTALL_PERMISSIONS. 2008-06-09 20:33:40 +00:00
Andrew Johnson
ec06e418b9 Change startup/shutdown slightly. 2008-06-09 18:25:36 +00:00
Andrew Johnson
5a0bed0407 Call cantProceed() if taskwd task fails to start. 2008-06-09 18:10:47 +00:00
W. Eric Norum
b88a1c685e Clean up stack size specification. 2008-06-06 17:41:56 +00:00
Andrew Johnson
3a202cafda Comment. 2008-06-06 14:33:27 +00:00
Andrew Johnson
ad5760f61a Remove duplicate null DSXT layer. 2008-06-06 14:29:37 +00:00
Andrew Johnson
e21bf9d9f1 Fixed bug in dbPutFieldLink: Couldn't change INP/OUT field of any record
type that has no registered device support, whereas we should treat this
field just as any other non-device link field.
2008-06-05 22:06:58 +00:00
Andrew Johnson
fdbb48af4f Oops, missed a few bits... 2008-06-04 20:08:20 +00:00
Andrew Johnson
048e840928 Oops, missed a few bits... 2008-06-04 19:54:15 +00:00
Andrew Johnson
45bfa63a7d static putSpecial() => public dbPutSpecial() for redundancy use. 2008-06-03 22:40:10 +00:00
Andrew Johnson
0a17bfc12a Made 'dbcar' output much easier to understand. 2008-06-03 21:21:29 +00:00
Janet B. Anderson
b591e01d05 Changed permissions to a *_PERMISSIONS definition. 2008-06-02 21:50:00 +00:00
Janet B. Anderson
9e5463d4d5 Added quote to echo line. Changed permissions to INSTALL_PERMISSIONS. 2008-06-02 21:46:01 +00:00
Janet B. Anderson
d955ed8fa4 Added installed file permission definitions. 2008-06-02 21:44:45 +00:00
Janet B. Anderson
39255ad560 Added dependancy and rule for DB_INSTALLS and DBD_INSTALLS. 2008-06-02 21:35:33 +00:00
Janet B. Anderson
389263f290 Simplified definitionss for INSTALL_BIN_INSTALLS and INSTALL_LIB_INSTALLS. 2008-06-02 21:18:32 +00:00
Janet B. Anderson
8ce9be1c04 Added dependancies and rules for BIN_INSTALLS and LIB_INSTALLS. 2008-06-02 20:29:34 +00:00
Andrew Johnson
86bea94113 Change #! line, perl is rarely in /usr/local nowadays. 2008-05-28 20:55:40 +00:00
Andrew Johnson
8c9e5f63e5 Include generalTimeSup.h. 2008-05-27 14:15:39 +00:00
Andrew Johnson
7720ea696e Oops. 2008-05-22 20:24:52 +00:00
Andrew Johnson
363080071c Fix build issues on vxWorks. 2008-05-22 20:19:34 +00:00
Andrew Johnson
1ed5eb1ad1 Major reworking of the task watchdog implementation:
* Added new monitoring API with insert and remove callbacks; the old API is
  still supported though.
* Added report routine, callable from iocsh.
* taskwdInsert() can take a NULL tid, meaning the calling thread.
2008-05-22 17:54:19 +00:00
Andrew Johnson
797df775d0 void *asp => struct *.
Removed some casts and cleaned up 'type-punned pointer' warnings.
2008-05-21 17:46:02 +00:00
Andrew Johnson
0363341826 Remove duplicate taskwdInsert() call for the CAS-UDP task. 2008-05-20 17:45:18 +00:00
Andrew Johnson
4831cf2421 Changed static consts to #defines, so C code can use in static initializers. 2008-05-19 14:26:49 +00:00
Andrew Johnson
06d11b736a Cleanup, rework shutdown mechanism. 2008-05-15 17:41:02 +00:00
Andrew Johnson
24edb594cc Included vxWorks.h, needed for vxWorks 6.6. 2008-05-15 14:25:28 +00:00
Andrew Johnson
975c5ae4c6 General Time cleanup. 2008-05-14 18:42:26 +00:00
Andrew Johnson
c4dfb6980b Added support for vxWorks 6.6, info from Ernest Williams. 2008-05-14 16:31:52 +00:00
W. Eric Norum
a55eedd3f3 Enable collection of malloc statistics. 2008-05-13 20:42:41 +00:00
Andrew Johnson
9f8ee2d166 Make callback tasks shut down nicely. 2008-05-12 20:40:49 +00:00
Andrew Johnson
500f22cd37 Allow "Soft Timestamp" device address changes at runtime. 2008-05-12 20:09:11 +00:00
Andrew Johnson
4ad26bfb12 Added -x option to load softIocExit.db. 2008-05-12 17:31:27 +00:00
Andrew Johnson
99f8eede0b const arguments to dbLoadRecords and dbLoadDatabase. 2008-05-12 16:48:31 +00:00
W. Eric Norum
00f4582478 Fix typo -- allow building on case-sensitive file systems. 2008-05-12 00:23:42 +00:00
W. Eric Norum
e40ef4996a Fix up free space calculation. 2008-05-11 21:28:55 +00:00
W. Eric Norum
12a5014193 Use more efficient mechanism for determining free space. 2008-05-11 20:18:01 +00:00
W. Eric Norum
f8f3647f1c Use lower-overhead mechanism to determine free space. 2008-05-11 20:05:24 +00:00
Andrew Johnson
967330fcd6 Cleanup, changed task names. 2008-05-09 22:16:29 +00:00
W. Eric Norum
edb08afdc3 Use new general time registration.
Allow use in both statically- and dynamically-loaded environment.
2008-05-09 15:39:55 +00:00
W. Eric Norum
3cca2c745b Clean up some warnings.
Use new general time registration.
2008-05-09 15:28:15 +00:00
Andrew Johnson
51800996b0 Fixed generalTime initialization issues (RTEMS incomplete). 2008-05-09 14:24:04 +00:00
W. Eric Norum
893b8b6982 Fix up initialization. Must allow recursive calls. 2008-05-08 18:14:58 +00:00
Andrew Johnson
2a34e2e464 Don't use fmod(), broken on vxWorks.
Use long rather than int for integer calculations.
2008-05-08 16:15:50 +00:00
Andrew Johnson
e74e839ccd Fix initialization races. 2008-05-07 22:38:31 +00:00
Janet B. Anderson
e2a8e3408c Allow $*_TEMPLATE definitions to have fullpathname.
Added realclean target.
2008-05-06 21:21:41 +00:00
Janet B. Anderson
5c80b4902c Bug fix. Reversed the then and else part of the if function. 2008-05-02 15:12:50 +00:00
Andrew Johnson
4c0015e261 Removed the unnecessary "epicsExit will be called" message. 2008-05-01 14:38:55 +00:00
W. Eric Norum
b71ebd8cc2 Don't use exclamation mark for valid output. 2008-04-30 18:14:48 +00:00
Janet B. Anderson
8a183d7bbd Look for .h files in os/posix dir only if POSIX is YES.
Set default for POSIX to YES.
2008-04-29 18:58:04 +00:00
Janet B. Anderson
916f1c258f Removed if stmnts from define/endef to avoid bug in GNU make R3.80. 2008-04-29 18:54:39 +00:00
Andrew Johnson
0895228a57 IVOA "Don't drive" bug fix, from Peter Mueller. 2008-04-29 17:51:34 +00:00
W. Eric Norum
1329e99d81 Ensure that BSP-specific overrides get into the configuration. 2008-04-28 21:25:45 +00:00
W. Eric Norum
7b36927d68 New base uses new version of RTEMS. 2008-04-28 19:24:08 +00:00
W. Eric Norum
1d7fd3899e NFS library name has changed. 2008-04-28 19:14:29 +00:00
Andrew Johnson
cab70696cc Id$. 2008-04-28 16:11:25 +00:00
Andrew Johnson
90a53b60c5 Major cleanup, rewrote some parts completely. 2008-04-28 16:10:49 +00:00
Andrew Johnson
8b5ef8d497 Fixed pointer cast. 2008-04-28 15:55:45 +00:00
Andrew Johnson
04cd32d175 Build misc/ before dev/ so extended devices can link properly on Solaris. 2008-04-25 22:14:59 +00:00
Andrew Johnson
21aed171a5 Another malloc() + bzero() => calloc() 2008-04-25 21:57:31 +00:00
Andrew Johnson
0639850d7a Expanded tabs, replaced malloc() + bzero() with calloc(). 2008-04-25 21:48:19 +00:00
Andrew Johnson
e738b5c617 Added ai support; renamed source file. 2008-04-25 21:13:17 +00:00
Andrew Johnson
5cdb9ff089 Renamed devTimestampSI.c with ai support added. 2008-04-25 21:08:10 +00:00
Andrew Johnson
7256130470 Added ai support; renamed source file. 2008-04-25 21:05:59 +00:00
Janet B. Anderson
81a56a5b9e Second try at creating *_Include.dbd dependancy on Makefile. 2008-04-25 20:06:10 +00:00
Janet B. Anderson
e5b6693d8c Backed out Created *_Include.dbd dependancy on Makefile. 2008-04-25 18:44:21 +00:00
Janet B. Anderson
e05cf72537 Created <name>_Include.dbd now depends on Makefile. 2008-04-25 15:29:16 +00:00
W. Eric Norum
158ce5ac32 New tool chain does not need (and must not have) -m5200 in addition to -m528x. 2008-04-24 18:18:12 +00:00
Andrew Johnson
38f17b720e Allow subroutine changes at runtime, from Kazimierz Gofron (Codeathon)
Also did some major cleanup.
2008-04-24 16:30:37 +00:00
Janet B. Anderson
92936a9134 Do gmake in bonfir directory not config/tools directory. 2008-04-22 15:09:48 +00:00
W. Eric Norum
6f7156cab2 Clean up. 2008-04-18 20:30:19 +00:00
W. Eric Norum
fc85afd77c Clean up some minor issues with differences between RTEMS/vxWorks/POSIX. 2008-04-18 19:20:50 +00:00
Andrew Johnson
a3cd917de2 General Time, from Peter Denison, Eric Norum and many others... 2008-04-18 18:39:32 +00:00
Janet B. Anderson
b02f69092c Allow apps and extensions to define CONFIG. 2008-04-18 16:28:02 +00:00
Janet B. Anderson
9816887062 Allow use of a site configure directory by defining RULES in CONFIG. 2008-04-18 16:24:21 +00:00
W. Eric Norum
afd028c4ff Round sleep time to nearest tick. This is important when working with
high-precision time sources, such as event receivers.
2008-04-17 22:04:57 +00:00
Ralph Lange
b8f613881b iocInit() installs a signal handler that ignores SIGHUP 2008-04-17 19:52:23 +00:00
W. Eric Norum
57005d58ae Use new, simpler, RTEMS test harness. 2008-04-17 19:34:57 +00:00
Ralph Lange
60449e20b0 += epicsSignalInstallSigHupIgnore (libCom/osi) 2008-04-17 18:57:07 +00:00
W. Eric Norum
7e31cb0db3 Round off sleep times -- makes timed scan threads work better when
high-quality time source (e.g. event receiver) is used.
2008-04-17 18:53:54 +00:00
Ralph Lange
f6dd8d5654 += caput -c option; updated usage infos and documentation to match 2008-04-17 02:53:19 +00:00
Ralph Lange
73e17ac32a Applied caput patches from Andy Foster; updated usage infos to match 2008-04-17 02:31:36 +00:00
Andrew Johnson
9d7fb60785 Added mote about deprecating epicsShareAPI. 2008-04-15 20:30:22 +00:00
W. Eric Norum
5708538d32 Back out erroneous commit. 2008-04-15 14:44:31 +00:00
W. Eric Norum
aa71115a4b Back out yesterday's mistaken commits. 2008-04-15 14:42:19 +00:00
W. Eric Norum
6254f0d730 General time changes. 2008-04-14 20:08:39 +00:00
W. Eric Norum
5e51fdaa91 Initial general time supportl. 2008-04-14 19:49:48 +00:00
W. Eric Norum
489af50c7a Preliminary general time changes. 2008-04-14 19:49:47 +00:00
Andrew Johnson
fde879062d Some versions of Solaris define isinf() macro. 2008-04-14 18:50:32 +00:00
Andrew Johnson
c64685a360 Varargs functions in CALC. 2008-04-10 18:31:33 +00:00
Andrew Johnson
b281b453bb Added variable argument functions, mostly by Benjamin Fransken.
MIN, MAX, FINITE and ISINF can now take any number of arguments.
2008-04-10 18:06:47 +00:00
Janet B. Anderson
df59c12f75 Added CPPFLAGS -mcpu=arm9 -marm -- from Heinrich du Toit. 2008-04-09 20:41:33 +00:00
Andrew Johnson
85b20ffaea Fix envPaths output for cexp users. 2008-04-08 17:49:33 +00:00
Andrew Johnson
fb930b6b0e Renamed convertRelease target 'STDOUT' to 'releaseTops' and fixed build files.
Removed the -h option to convertRelease, use $ENV{EPICS_HOST_ARCH} instead.
Reworked variables associated with expandVars to make it simpler to use.
Split EPICS::Utils module into three parts.
Moved code from fullPathName.pl into the new EPICS::Path module.
Changed convertRelease.pl to use new modules.
Added some documentation to RELEASE_NOTES.html
2008-04-03 21:57:16 +00:00
W. Eric Norum
2a9ccaf2c0 Use correct conditional. 2008-04-01 20:36:08 +00:00
Andrew Johnson
bc3584c834 Moved Perl modules from Ctlsys to EPICS.
Cleanup and corrections in expandVars@.
2008-04-01 19:25:47 +00:00
W. Eric Norum
e1d28a495a Allow use with pre-release version of RTEMS-4.9. 2008-04-01 18:16:29 +00:00
W. Eric Norum
d91feefcac Use _Objects_Get_name_as_string if available.
Clean up some warnings.
2008-04-01 17:00:12 +00:00
Andrew Johnson
e8d52af7bc Can't make epicsInt8 a 'signed char', it breaks too much stuff.
This is a problem - on some archs char is signed, on others not.
2008-04-01 15:54:01 +00:00
Andrew Johnson
f21aed109c An epicsInt8 is signed, but a bare 'char' isn't necessarily. 2008-03-31 19:46:46 +00:00
Andrew Johnson
37b371e956 macLib cleanup, added support for scoped macros.
New test program for regular macros as well as the environment variable tests.
2008-03-31 19:30:17 +00:00
Andrew Johnson
2079c128d5 Cleanup of epicsThreadPrivate stuff, remove unnecessary code. 2008-03-28 22:35:48 +00:00
Janet B. Anderson
37cd3234bd Use perl ExtUtils for CP, MV, RM, and RMDIR macro definitions. 2008-03-28 21:35:26 +00:00
Janet B. Anderson
a4a2a73fe7 Added ifneq test around -include lines for make version 3.80 on Linux FC4.
See Ernest Williams for details.
2008-03-28 19:28:13 +00:00
Janet B. Anderson
1d1454ba98 Removed perl scripts cp.pl mkdir.pl mv.pl rm.pl. 2008-03-26 21:10:05 +00:00
Janet B. Anderson
0c4cf4ff23 SRC_DIRS should be inside top tree. 2008-03-26 18:55:03 +00:00
Janet B. Anderson
7a6528cf1c Removed references to EPICS_BASE, EPICS_EXTENSIONS, and CTLSYS. 2008-03-25 22:04:52 +00:00
Janet B. Anderson
c1512557d5 Removed EXPANDFLAGS definition. It is defined in configure/RULES_EXPAND. 2008-03-25 22:03:41 +00:00
Janet B. Anderson
2929063e3c Removed debugging lines. 2008-03-24 22:27:42 +00:00
Janet B. Anderson
09639d6183 Initial version. 2008-03-24 22:24:22 +00:00
Janet B. Anderson
1ff1ba637e Moved configure/tools files to src/tools directory. 2008-03-24 22:17:06 +00:00
Janet B. Anderson
678dec4100 Added new tools directory. 2008-03-24 22:09:02 +00:00
Janet B. Anderson
ad4a336053 Include cfg/RULES* files to get DIRECTORY_TARGET names for uninstall. 2008-03-24 22:06:46 +00:00
Janet B. Anderson
b10833318b Macros and rules for octave files. 2008-03-24 22:06:26 +00:00
Janet B. Anderson
861e6ab132 Allow user defined installation file types
Added new file types ADL,ALH,CFG,IDL,PERL_MODULE,PERL_SCRIPT
2008-03-24 22:06:05 +00:00
Janet B. Anderson
93d1359256 New expand facility to expand @xxx@ variables. 2008-03-24 22:05:42 +00:00
Janet B. Anderson
101256d28c Moved configure/tools perl tools to src/tools directory.
Replaced O.<T_A> files CONFIG_APP_INCLUDE and RULES_INCLUDE creation with
   defs and rules in configure files CONFIG_APP_INCLUDE and RULES_BUILD
2008-03-24 22:05:10 +00:00
Janet B. Anderson
1e0178a492 Moved configure/tools perl tools to src/tools directory.
Replaced O.<T_A> files CONFIG_APP_INCLUDE and RULES_INCLUDE creation with
defs and rules in configure files CONFIG_APP_INCLUDE and RULES_BUILD
2008-03-24 22:04:01 +00:00
Janet B. Anderson
0485bc7838 Moved configure/tools perl tools to src/tools directory. 2008-03-24 22:03:42 +00:00
Janet B. Anderson
74ff11919f Replaced O.<T_A> files CONFIG_APP_INCLUDE and RULES_INCLUDE creation with
defs and rules in configure files CONFIG_APP_INCLUDE and RULES_BUILD
Allow new CFGS - user RULES* file to be installed into a cfg directory.
New expand facility to expand @xxx@ variables.
2008-03-24 22:03:08 +00:00
Janet B. Anderson
716dabdba1 Replaced O.<T_A> files CONFIG_APP_INCLUDE and RULES_INCLUDE creation with
defs and rules in configure files CONFIG_APP_INCLUDE and RULES_BUILD
2008-03-24 22:02:29 +00:00
Andrew Johnson
87c4db7e4d Moved condWait() into conditional compilation area where it's used. 2008-03-17 22:18:25 +00:00
Andrew Johnson
3a40dddccb Give up trying to calculat epicsEpochOffset, which is a constant.
Also fixed incorrect NTP timescale conversion constant.
2008-03-14 20:50:39 +00:00
Andrew Johnson
4deb3a92c9 Fixed 64-bit bug copying timestamp. 2008-02-21 19:47:37 +00:00
Andrew Johnson
5478ba8bc6 Rewrite. abs_path() fails if path components before the last don't exist. 2008-01-11 21:35:56 +00:00
W. Eric Norum
f26de14718 Remove old-style stack check code. spy provides a better mechanism. 2008-01-10 15:03:45 +00:00
W. Eric Norum
9d8886e8cc Add extended BSP routines. 2008-01-08 22:19:50 +00:00
W. Eric Norum
95d6cbe8be Add MVME3100 support. 2008-01-08 22:06:14 +00:00
W. Eric Norum
1f7398344c Clean up GEV VPD support. 2008-01-08 20:58:10 +00:00
W. Eric Norum
193c5b234c Add VPD offset. 2008-01-08 20:47:37 +00:00
W. Eric Norum
b8cd8f5507 Add open argument. 2008-01-08 20:29:20 +00:00
W. Eric Norum
e366f72788 Add errno header. 2008-01-08 20:26:48 +00:00
W. Eric Norum
f8959705b3 More GEV changes. 2008-01-08 20:24:19 +00:00
W. Eric Norum
2bb463293f Add serial EEPROM support. 2008-01-08 20:14:13 +00:00
W. Eric Norum
62a93f0565 Add default address for GEV memory. 2008-01-08 19:15:23 +00:00
Andrew Johnson
91cdaf7cca Fixed warnings on 64-bit platforms. 2008-01-04 21:32:19 +00:00
Andrew Johnson
b0c0ab77ac Reduce initial size of expanded string. 2008-01-04 17:07:30 +00:00
Andrew Johnson
7cf188ff61 Fix issues when char is signed. 2008-01-04 16:52:15 +00:00
Andrew Johnson
9fa90d5d5d Cleanup. 2008-01-04 16:43:44 +00:00
Andrew Johnson
23d1feffcc Added vxWorks version 6.4 2008-01-04 16:19:57 +00:00
W. Eric Norum
3722db6db7 Get types. 2007-12-17 21:23:26 +00:00
W. Eric Norum
1c89724137 Use new configuration entries. 2007-12-17 21:05:20 +00:00
W. Eric Norum
b8bac42678 Use standard types. 2007-12-17 20:56:50 +00:00
W. Eric Norum
b6479e4e38 RTEMS internals have changed slightly. 2007-12-17 20:50:24 +00:00
W. Eric Norum
5e87e645e0 Use standard types. 2007-12-17 19:47:51 +00:00
W. Eric Norum
9cb7a7a339 Use standard types -- new versions of RTEMS will be drop the rtems_xxx types. 2007-12-17 18:43:59 +00:00
Janet B. Anderson
407234e390 Removed some comments. 2007-12-12 20:19:01 +00:00
Janet B. Anderson
271a80ab61 Made change for make -j option. Changed name of include file. 2007-12-12 20:15:24 +00:00
Janet B. Anderson
f613d379ec Made change for make 0j option. Changed name of include file. 2007-12-12 20:14:14 +00:00
Janet B. Anderson
f8152ac318 Made CONFIG_SITE file an optional include file. 2007-12-12 20:04:54 +00:00
Janet B. Anderson
7efb669ee3 Removed CC and CCC defs because they are in CONFIG.gnuCommon 2007-12-12 20:01:03 +00:00
Janet B. Anderson
2b29bede08 Option -fPIC not needed. 2007-12-12 19:42:57 +00:00
Janet B. Anderson
bf6ff7cc1c Set valid builds to Ioc for cross builds. 2007-12-11 21:17:03 +00:00
Janet B. Anderson
55fde6bb9f GNU_TARGET now in CONFIG_SITE file. Flag for 32 bit build added. 2007-12-11 21:15:27 +00:00
Janet B. Anderson
42af0cab54 GNU_TARGET now in a CONFIG_SITE file. 2007-12-11 20:58:26 +00:00
Janet B. Anderson
4c27f4c83b Simplified code. Added flag for 32/64 bit. GNU_TARGET now in CONFIG_SITE*. 2007-12-11 20:56:39 +00:00
Janet B. Anderson
b14316865d Updated FLAGS for 64 bit build. 2007-12-11 20:50:22 +00:00
Janet B. Anderson
79cc983edc Moved GNU_DIR def to CONFIG_COMMON.
Moved *SHRLIB_LDFLAGS defs to CONFIG.gnuCommon.
2007-12-11 20:23:00 +00:00
Janet B. Anderson
51b179160b Added optional -pipe option for GNU compiler builds. 2007-12-11 19:05:39 +00:00
Janet B. Anderson
48d82f8701 Fixed definitions for GNU_TARGET_INCLUDE_DIR and GNU_TARGET_LIB_DIR. 2007-12-11 15:46:15 +00:00
Janet B. Anderson
c0e61d3ee1 Allow INC_<OS_CLASS> definitions. 2007-12-11 15:40:00 +00:00
Janet B. Anderson
4cc40073f8 Install share libs before archive libs - needed for parallel builds. 2007-12-11 15:35:06 +00:00
Janet B. Anderson
cd472f8135 Added include for linux-arm file. 2007-12-11 15:28:17 +00:00
Janet B. Anderson
db7d8ba762 Moved GNU_TARGET def to CONFIG_SITE.linux-x86.linux-arm_* files. 2007-12-11 15:17:33 +00:00
Janet B. Anderson
0e8fb1017c Initial Version. 2007-12-10 21:28:59 +00:00
Janet B. Anderson
9e56389edc Added note about access security configuration file creation. 2007-12-07 20:59:36 +00:00
Janet B. Anderson
3e4570ed29 Added rules/macros for creating access security configuration .acf files. 2007-12-07 20:57:35 +00:00
Janet B. Anderson
b1dc73e8da Fixed typo in comment. 2007-12-07 19:48:33 +00:00
Janet B. Anderson
fb433c0202 Fixed file name (had comma in name). 2007-11-29 18:41:33 +00:00
Andrew Johnson
3fa2a79f4f Move static command structures to file scope, needed for vxWorks-x86 targets. 2007-11-27 17:57:25 +00:00
Janet B. Anderson
caa0f27e9c Added RELEASE* files to CONFIG_INSTALLS. 2007-11-27 17:14:55 +00:00
Andrew Johnson
4492251434 Added callbackSetProcess() and callbackCancelDelayed() routines. 2007-11-20 21:07:10 +00:00
Andrew Johnson
de2fdc7654 Added dbNotifyDump command. 2007-11-20 20:13:51 +00:00
Andrew Johnson
d977edbf5e subArray error stuff.
Clarified parallel make wording.
2007-11-20 16:54:18 +00:00
Andrew Johnson
671b5334ea Cleanup, ANSIfied. 2007-11-20 16:47:12 +00:00
Andrew Johnson
3edc4b5c18 Fixed error behaviour.
ANSIfied, major cleanup.
2007-11-20 16:44:21 +00:00
Andrew Johnson
6580220e37 Introduce new header epicsEndian.h which allows C code to find out the
platform's byte order (osiWireFormat.h is C++ only).
2007-11-14 21:59:59 +00:00
Andrew Johnson
0e723c8185 Introduce new header epicsEndian.h which allows C code to find out the
platform's byte order (osiWireFormat.h is C++ only).
2007-11-13 23:46:53 +00:00
Andrew Johnson
54ce8fbdbe Fixed Mantis #290. 2007-11-13 23:27:35 +00:00
Andrew Johnson
4b7d838b20 Replaced epoch offset calculation, fixes problem on vxWorks. 2007-11-13 22:54:20 +00:00
Andrew Johnson
08804b05d5 Added GNU versions for vxWorks 6.4 and 6.5. 2007-11-12 16:48:43 +00:00
Janet B. Anderson
bc0a5b7e7a Added blurb about new linux-cris architectures. 2007-11-09 16:16:32 +00:00
Janet B. Anderson
e96f5bc1ad Initial version - linux-cris files from Peter Zumbruch at GSI. 2007-11-09 16:12:24 +00:00
Jeff Hill
cff69ead6b removed inadvertent ! at beginning of line in if statement 2007-11-07 23:17:06 +00:00
Janet B. Anderson
26051caeab Modified comment lines. 2007-11-07 21:08:51 +00:00
Janet B. Anderson
36caea04db Added ARCH_DEP_LDFLAGS definition. Removed unneeded ARCH_DEP_CXXFLAGS def. 2007-11-07 21:06:09 +00:00
Janet B. Anderson
1f0156b81b Fixed typo in comment. 2007-11-07 20:51:35 +00:00
Janet B. Anderson
2a1849b7f0 Removed file because name had a typo. 2007-11-07 20:37:40 +00:00
Janet B. Anderson
bfa50a488d Set VALID_BUILDS to Ioc when cross-compiled. 2007-11-07 20:36:07 +00:00
Janet B. Anderson
a76989303a Adding file on R3.14 branch. 2007-11-07 20:32:32 +00:00
Janet B. Anderson
312ea151ab Added file on R3.14 branch. 2007-11-07 20:30:21 +00:00
Janet B. Anderson
dd96059060 Added BUILD_CLASS=HOST and GNU=NO. 2007-11-07 20:26:47 +00:00
Andrew Johnson
892c305cc5 Possible fix for Win32, CR+LF in lines output by unitTest code. 2007-11-06 23:36:25 +00:00
Jeff Hill
26339cdbed additional changes for the mantis 296 pach 2007-11-06 17:58:36 +00:00
W. Eric Norum
9bf85a7c65 Add OS X specific version of epicsMath.h to allow for use of isfiniite(). 2007-11-05 16:49:35 +00:00
Janet B. Anderson
1ff411a3d7 Removed YES_ from POSIX_CPPFLAGS_YES_* lines. 2007-10-29 19:47:43 +00:00
Janet B. Anderson
083eb0889b Move KPIC line. Added solaris10 ldlibs option. 2007-10-29 19:46:17 +00:00
Andrew Johnson
faf4b84463 Correct exception message. 2007-10-29 18:28:03 +00:00
Janet B. Anderson
cff9f562c2 Added note about new compile line header search directories. 2007-10-26 18:50:06 +00:00
Janet B. Anderson
57731f6768 Moved break in line to get darwin-ppc to build. 2007-10-26 14:18:43 +00:00
Janet B. Anderson
9d2b8ece7b Changes for GNU make -j option (multiple jobs). 2007-10-24 21:21:54 +00:00
Andrew Johnson
e659918bcf What is this file? We're not compiling it, and it's Unix only. 2007-10-24 17:01:25 +00:00
W. Eric Norum
c02e9b6b23 PPCBUG notes. 2007-10-23 00:57:18 +00:00
W. Eric Norum
903ff24801 Add NTP server to PPCBUG boots. 2007-10-22 21:57:23 +00:00
Janet B. Anderson
6b4728e5da Added VALID_BUILDS = Ioc. 2007-10-22 14:39:11 +00:00
W. Eric Norum
5e4d8dc187 Now that libCom:iocClock() is working there's no need to fiddle around with NTP
during startup.
2007-10-16 17:38:29 +00:00
Janet B. Anderson
cec0d1ead4 Dont install non-munched prods. 2007-10-09 19:35:21 +00:00
W. Eric Norum
987d3295da Add more NTP override code. 2007-10-08 14:57:09 +00:00
W. Eric Norum
5790d231c2 Add NTP capability (to match vxWorks). 2007-10-03 23:38:26 +00:00
Andrew Johnson
52ab7f6d6b A char with the top bit set doesn't cast properly when its signed. 2007-09-11 19:11:55 +00:00
Jeff Hill
a74c727a43 fix for mantis entry 300:
'assert (size <= ntohs ( pMsg->m_postsize ))' failed in ..caserverio.c line 344
2007-09-07 17:43:52 +00:00
W. Eric Norum
1993328ec2 Add extended BSP library. 2007-08-30 18:10:43 +00:00
Jeff Hill
4cc8138021 fix for mantis 298 2007-08-29 17:39:56 +00:00
Andrew Johnson
abd2a46c79 Mostly cosmetic changes.
Added an ifdef test for FLOAT_WORD_ORDER in os/default/osdWireConfig.h
2007-08-28 16:42:45 +00:00
Jeff Hill
f9e64792e1 installed 2007-08-27 23:56:53 +00:00
Jeff Hill
7edfbdeee6 installed 2007-08-27 23:48:06 +00:00
Jeff Hill
9775a058b8 installed 2007-08-27 22:25:56 +00:00
Jeff Hill
fb1ee4e2e1 added newline to eof 2007-08-27 22:23:06 +00:00
Jeff Hill
07c1e3016d installed osdWireConfig.h 2007-08-27 22:20:50 +00:00
Jeff Hill
cd43e09eee installed 2007-08-27 22:16:30 +00:00
Jeff Hill
c9722c3061 changed to use osdWireConfig.h def of EPICS_BYTE_ORDER and EPICS_FLOAT_WORD_ORDER 2007-08-27 22:13:39 +00:00
Jeff Hill
0154bf5388 define EPICS_ENDIAN_LITTLE and EPICS_ENDIAN_BIG 2007-08-27 22:10:15 +00:00
Jeff Hill
de1b8a94ff fix for mantis 297 2007-08-23 17:46:28 +00:00
Andrew Johnson
a8d4a7a879 Stuff about dbBptNotMonotonic. 2007-08-21 22:15:29 +00:00
Andrew Johnson
b454b73b28 Cleanup, improve error message. 2007-08-21 21:09:14 +00:00
Andrew Johnson
30f2018b17 These osiRegister files not used. 2007-08-21 21:07:28 +00:00
Jeff Hill
b5e2b40be0 fix for mantis 296 2007-08-17 22:31:11 +00:00
W. Eric Norum
2c7af24445 Add RTEMS notes. 2007-08-17 14:46:00 +00:00
W. Eric Norum
06ac546919 Clean up MOTLOAD environment variable support.
Documented, too!
2007-08-17 14:41:34 +00:00
W. Eric Norum
f637e9c723 Improve operation of MOTLOAD machines. 2007-08-15 20:39:51 +00:00
W. Eric Norum
459d3bc36c Add new target. 2007-08-15 14:00:51 +00:00
Andrew Johnson
7c0897f058 Added dbBptNotMonotonic, disables checking slope of breaktables. 2007-08-13 15:27:31 +00:00
Janet B. Anderson
834eb51b81 Removed the incorrect COMMON_INCLUDE_DBDS and ../Makefile dependency. 2007-08-03 16:28:25 +00:00
W. Eric Norum
0274263976 New source file. 2007-08-03 13:54:22 +00:00
Andrew Johnson
d7dda85ee0 Improved fix after comments from Dirk Zimoch. 2007-07-30 16:18:04 +00:00
Andrew Johnson
d18805bd03 Mantis #295 fix. 2007-07-30 14:12:22 +00:00
Andrew Johnson
6039647e13 Handle SELN >= SEL_MAX without crashing (Mantis #295) 2007-07-20 19:23:50 +00:00
W. Eric Norum
5bf49c4616 More timing cleanups for RTEMS. 2007-06-20 15:38:40 +00:00
W. Eric Norum
d15bb4d1ab Fix typo. 2007-06-20 13:46:21 +00:00
W. Eric Norum
81926a11f2 Avoid conflict with test harness. 2007-06-20 13:45:27 +00:00
Janet B. Anderson
893c2e4e46 Removed references to DEPJAVA. Fixed INSTALLED_JAR definition. 2007-06-19 21:19:00 +00:00
W. Eric Norum
526a05b756 Drop some vxWorks-specific code. 2007-06-19 16:20:36 +00:00
W. Eric Norum
1ea11f02f8 RTEMS now has iocClock.h. 2007-06-19 16:10:01 +00:00
W. Eric Norum
f8689c77de Add drvTs support. 2007-06-19 16:04:29 +00:00
Andrew Johnson
8b0673a3ab Don't run parent's atexit() handlers if child's exec() fails. 2007-06-11 20:03:03 +00:00
Janet B. Anderson
f0f0855c67 Fixed comment line with filename. 2007-06-07 19:44:03 +00:00
Janet B. Anderson
c823c63792 Initial version. 2007-06-06 18:22:13 +00:00
Andrew Johnson
643db2e417 Make sure the EPICS epoch is 1990-01-01T00:00:00 UTC 2007-05-07 20:50:38 +00:00
Janet B. Anderson
e8a5e95418 Moved APS override of GNU_DIR here. 2007-05-04 20:56:10 +00:00
Janet B. Anderson
22418072ee Use READLINE_DIR insead of using GNU_DIR. 2007-05-04 20:54:40 +00:00
W. Eric Norum
da7425440e Add ieeefp.h to pick up isnan and friends. 2007-05-03 20:57:37 +00:00
Andrew Johnson
65361a61ca VAL keyword to calc. 2007-05-03 20:40:03 +00:00
Andrew Johnson
083a8413b5 Ensure result of previous rule calc evaluation is available for VAL. 2007-05-03 20:37:41 +00:00
W. Eric Norum
9d8ecac1f0 The -ansi flag really is necessary. 2007-05-03 20:14:26 +00:00
Andrew Johnson
ad8302f4b1 Added VAL keyword to CALC parser and evaluator; evaluates to previous result. 2007-05-03 20:03:38 +00:00
W. Eric Norum
ba536373d8 Get rid of -ansi. It causes problems with lots of header files. 2007-05-01 21:50:26 +00:00
Andrew Johnson
ae887b7527 Make date() command available to all architectures.
Allow the user to specify the date/time format string.
2007-05-01 20:23:57 +00:00
Andrew Johnson
854e8adb71 Reorganized the configure/O.<arch>/ ouptut files. 2007-04-18 20:35:28 +00:00
Andrew Johnson
89d8502840 SoftIoc shell. 2007-04-18 20:22:37 +00:00
Andrew Johnson
723ccf683b Change default behaviour: Start a shell unless -S is given. 2007-04-18 20:17:55 +00:00
Andrew Johnson
f0855d95de Cleaned up error message output formatting. 2007-04-18 19:57:17 +00:00
Andrew Johnson
179e82b2c9 Use epicsPrintf, not errlogPrintf 2007-04-18 19:41:38 +00:00
Andrew Johnson
befe02630d dbLoadRecords. 2007-04-18 18:57:55 +00:00
Andrew Johnson
a5e73394db Improve error messages from parser. 2007-04-18 18:38:54 +00:00
Jeff Hill
0e77e3b437 fix for mantis 282 2007-04-16 21:41:28 +00:00
Andrew Johnson
fbf9cdd2fb RCS Keyword mis-spelt. 2007-04-16 19:45:35 +00:00
Andrew Johnson
217a959d59 CPUs using Altivec need an additional flag to taskSpawn(). 2007-04-16 19:44:22 +00:00
Andrew Johnson
31c882b044 Define an ALTIVEC macro for conditional compilation of altivec-specific code. 2007-04-16 19:41:07 +00:00
Janet B. Anderson
797b76ec69 Set SHRLIB_CFLAGS to -KPIC. 2007-04-12 19:17:24 +00:00
Janet B. Anderson
d5bc22adc2 Set SHRLIB_CFLAGS to -xcode=pic32. 2007-04-12 19:16:38 +00:00
Janet B. Anderson
c62528e3ae Moved SHRLIB_CFLAGS definition to CONFIG.Common.solaris-* files. 2007-04-12 19:12:07 +00:00
Andrew Johnson
8ba19206c2 Added system.dbd which contains the registrar for the system command.
Include this in the softIoc.
2007-04-12 18:54:04 +00:00
Janet B. Anderson
0968cdebe4 Created COMMON_INCLUDE_DBDS and ../Makefile dependency. 2007-04-12 18:43:38 +00:00
Jeff Hill
8f50c431f2 fixed spelling in a comment 2007-03-30 20:22:04 +00:00
Andrew Johnson
6f14f8b620 (c) 2007 and UChicago Argonne LLC. 2007-03-29 18:45:51 +00:00
Jeff Hill
b6a6936059 Fix for incomplete copy through of compound types on big endian architecture.
This bug was unfortunately introduced in R3.14.9
2007-03-29 16:31:38 +00:00
Janet B. Anderson
21ebcc6cf6 If $(top)/CONFIG_BASE_VERSION exists we are doing a base build. 2007-03-27 15:26:35 +00:00
Janet B. Anderson
b0314690a5 Added ../Makefile as a dependancy of created *Include.dbd. 2007-03-27 15:23:45 +00:00
Janet B. Anderson
61017bbc67 Allow rebuild.<arch> on make command line. 2007-03-22 21:14:51 +00:00
Andrew Johnson
deb26d7ea7 Oops, missed this; libiocsh doesn't exist any more. 2007-03-20 16:06:44 +00:00
Andrew Johnson
f531863601 Ok, so Eric was right to begin with... 2007-03-16 15:04:10 +00:00
Andrew Johnson
900cc383db iocsh move, and corrected the RTEMS TZ note. 2007-03-16 14:59:29 +00:00
W. Eric Norum
4373c6f65f Add TZ note. 2007-03-16 04:00:45 +00:00
W. Eric Norum
76ecfec86b Latest version of newlib has math.h which has all that's needed. 2007-03-16 03:59:05 +00:00
Andrew Johnson
70cc7eaab9 Reorganized iocsh command registration to untangle the build order.
The iocsh core is now part of libCom, and commands are registered locally
with a Register routine for each IOC library.
2007-03-13 17:54:23 +00:00
Andrew Johnson
bc01dca042 Fixed Cdefs to be output before the record structure.
Moved record include files from dbStaticLib into dbCommon.dbd.
Added Cdefs that include postfix.h to the calc*.dbd files, removed from .c.
2007-03-13 16:39:53 +00:00
Janet B. Anderson
f37b9d01a2 Removed cygwin per definition. 2007-03-09 23:21:23 +00:00
Janet B. Anderson
6e6b892788 Initial version. 2007-03-09 21:34:53 +00:00
Janet B. Anderson
86b21114e8 Fixed typo in vxWorks-68040-debug. 2007-03-09 21:33:51 +00:00
Janet B. Anderson
f4afce75de Moved $(CONFIG)/CONFIG.gnuCommon include so we can override. 2007-03-02 15:19:20 +00:00
Andrew Johnson
71e01ae55d Warning suppression bug fix from Benjamin Franksen. 2007-02-28 16:05:18 +00:00
Andrew Johnson
5568dd3dc3 Fixed compiler warning. 2007-02-09 21:18:35 +00:00
Andrew Johnson
8556563fed Cleaned up compiler warnings. 2007-02-09 21:08:44 +00:00
Andrew Johnson
60425a2771 Fixed problems with #ifndef guards and include order. 2007-02-09 18:19:26 +00:00
Andrew Johnson
702305896c $Id$ keyword broken. 2007-02-05 20:30:07 +00:00
Janet B. Anderson
25f4048250 Set EPICS_CVS_SNAPSHOT to -CVS. 2007-02-05 17:06:53 +00:00
Janet B. Anderson
919850d693 R3.14.9 2007-02-05 16:31:45 +00:00
Andrew Johnson
894cab79e4 Revised and improved NPTL error description. 2007-02-05 16:04:43 +00:00
Andrew Johnson
b38dd45b03 Revert to -CVS after -RC1 tag applied. 2007-01-26 20:37:25 +00:00
844 changed files with 35327 additions and 28297 deletions

View File

@@ -1,4 +1,4 @@
Copyright (c) 1991-2004 University of Chicago and The Regents of the
Copyright (c) 1991-2007 UChicago Argonne LLC and The Regents of the
University of California. All rights reserved.
EPICS BASE is distributed subject to the following license conditions:

View File

@@ -14,10 +14,16 @@
TOP = .
include $(TOP)/configure/CONFIG
# Bootstrap resolution: tools not installed yet
TOOLS = $(TOP)/src/tools
DIRS += configure src
ifeq ($(findstring YES,$(COMPAT_313) $(COMPAT_TOOLS_313)),YES)
DIRS += config
endif
DIRS += configure src
src_DEPEND_DIRS = configure
config_DEPEND_DIRS = src
include $(TOP)/configure/RULES_TOP

View File

@@ -17,12 +17,12 @@
# Common build definitions
#
ifndef EPICS_BASE
ifneq ($(wildcard $(TOP)/configure/CONFIG_BASE_VERSION),)
EPICS_BASE = $(INSTALL_LOCATION)
CONFIG = $(TOP)/configure
BASE_TOP=YES
else
CONFIG = $(EPICS_BASE)/configure
CONFIG ?= $(EPICS_BASE)/configure
endif
-include $(CONFIG)/os/CONFIG_COMPAT
@@ -36,6 +36,7 @@ ifdef T_A
endif
include $(CONFIG)/CONFIG_COMMON
include $(CONFIG)/CONFIG_FILE_TYPE
# Base-specific build options
#
@@ -53,7 +54,6 @@ include $(CONFIG)/CONFIG_BASE_VERSION
#
include $(CONFIG)/os/CONFIG.$(EPICS_HOST_ARCH).Common
-include $(CONFIG)/os/CONFIG_SITE.$(EPICS_HOST_ARCH).Common
-include $(CONFIG)/O.$(T_A)/CONFIG_APP_INCLUDE
ifdef T_A
@@ -71,6 +71,12 @@ endif
#
-include $(CONFIG)/os/CONFIG.$(EPICS_HOST_ARCH).$(T_A)
# RELEASE file specific definitions
#
ifneq ($(CONFIG),$(TOP)/configure)
-include $(CONFIG)/CONFIG_APP_INCLUDE
endif
# Site specific target and host-target definitions
#
-include $(CONFIG)/os/CONFIG_SITE.Common.$(T_A)
@@ -78,6 +84,25 @@ endif
endif
# Include <top>/cfg/CONFIG* definitions from tops defined in RELEASE* files
#
ifneq ($(CONFIG),$(TOP)/configure)
RELEASE_TOPS ?= $(shell $(PERL) $(TOOLS)/convertRelease.pl -T $(TOP) releaseTops )
RELEASE_CFG_CONFIGS = $(foreach top, $(RELEASE_TOPS), $(wildcard $($(top))/cfg/CONFIG*))
ifneq ($(RELEASE_CFG_CONFIGS),)
include $(RELEASE_CFG_CONFIGS)
endif
endif
# Include $(INSTALL_CFG)/CONFIG* definitions
#
ifndef T_A
TOP_CFG_CONFIGS = $(wildcard $(INSTALL_CFG)/CONFIG*)
ifneq ($(TOP_CFG_CONFIGS),)
include $(TOP_CFG_CONFIGS)
endif
endif
# User specific definitions
#
-include $(HOME)/configure/CONFIG_USER
@@ -105,6 +130,4 @@ endif
#etc.
#CROSS_COMPILER_TARGET_ARCHS=vxWorks-68040
#CMPLR=STRICT
#CXXCMPLR=STRICT

View File

@@ -18,10 +18,8 @@ BUILD_CLASS = CROSS
# ifdef CROSS looks better than ifeq ($(BUILD_CLASS),CROSS)
CROSS = YES
GNU_TARGET_INCLUDE_DIR = $(GNU_DIR)/$(GNU_TARGET)/include
GNU_TARGET_LIB_DIR = $(GNU_DIR)/$(GNU_TARGET)/lib
export GCC_EXEC_PREFIX = $(GNU_LIB)/gcc-lib/
GNU_TARGET_INCLUDE_DIR = $(GNU_TARGET:%= $(GNU_DIR)/%/include)
GNU_TARGET_LIB_DIR = $(GNU_TARGET:%= $(GNU_DIR)/%/lib)
CROSS_INCLUDES = $(addprefix -I,$(GNU_TARGET_INCLUDE_DIR))
CROSS_LDFLAGS = $(addprefix -L,$(GNU_TARGET_LIB_DIR))

View File

@@ -22,9 +22,6 @@ LD = $(GNU_BIN)/$(CMPLR_PREFIX)ld$(CMPLR_SUFFIX) -r
CPP = $(CC) -x c -E
RANLIB = $(GNU_BIN)/$(CMPLR_PREFIX)ranlib$(CMPLR_SUFFIX)
CONFORM_CFLAGS_ANSI = -ansi
CONFORM_CFLAGS_STRICT = -ansi
CONFORM_CFLAGS_TRAD = -traditional
PROF_CFLAGS_YES = -p
GPROF_CFLAGS_YES = -pg
CODE_CFLAGS = $(PROF_CFLAGS_$(PROFILE)) $(GPROF_CFLAGS_$(GPROF))
@@ -33,8 +30,6 @@ WARN_CFLAGS_NO = -w
OPT_CFLAGS_YES = -O3
OPT_CFLAGS_NO = -g
CONFORM_CXXFLAGS_NORMAL = -ansi
CONFORM_CXXFLAGS_STRICT = -ansi
PROF_CXXFLAGS_YES = -p
GPROF_CXXFLAGS_YES = -pg
CODE_CXXFLAGS = $(PROF_CXXFLAGS_$(PROFILE)) $(GPROF_CXXFLAGS_$(GPROF))
@@ -45,10 +40,16 @@ OPT_CXXFLAGS_NO = -g
CODE_LDFLAGS = $(PROF_CXXFLAGS_$(PROFILE)) $(GPROF_CXXFLAGS_$(GPROF))
PIPE_CFLAGS_YES_YES = -pipe
PIPE_CFLAGS = $(PIPE_CFLAGS_$(GCC_PIPE)_$(GNU))
PIPE_CXXFLAGS = $(PIPE_CFLAGS)
STATIC_LDFLAGS_YES = -static
STATIC_LDFLAGS_NO =
SHRLIB_CFLAGS = -fPIC
SHRLIB_LDFLAGS = -shared -fPIC
LOADABLE_SHRLIB_LDFLAGS = -shared -fPIC
GNU_LDLIBS_YES = -lgcc

View File

@@ -3,11 +3,10 @@
# National Laboratory.
# Copyright (c) 2002 The Regents of the University of California, as
# Operator of Los Alamos National Laboratory.
# EPICS BASE Versions 3.13.7
# and higher are distributed subject to a Software License Agreement found
# EPICS BASE is distributed subject to a Software License Agreement found
# in file LICENSE that is included with this distribution.
#*************************************************************************
# $Id#
# $Id$
#
# check for add-on CFLAGS and CXXFLAGS
#
@@ -20,8 +19,8 @@
# 4) if you have the special case that your USR_CFLAGS_$(OS_CLASS) is
# empty but you don't want 3), you have to define it as '-nil-', e.g.:
# USR_CFLAGS = <defines for all systems>
# USR_CFLAGS_sun4 = -nil-
# USR_CFLAGS_DEFAULT = <defines for most systems, not sun4>
# USR_CFLAGS_WIN = -nil-
# USR_CFLAGS_DEFAULT = <defines for most systems, not WIN32>
#
# These rules apply to these Makefile-variables:
# USR_CFLAGS C flags
@@ -175,8 +174,6 @@ LIB_LDFLAGS+=$(LIB_LDFLAGS_DEFAULT)
endif
endif
# concat specific library contents (if defined)
#
ifneq ($(strip $(LIBSRCS_$(OS_CLASS))),)
LIBSRCS += $(subst -nil-,,$(LIBSRCS_$(OS_CLASS)))
else
@@ -378,6 +375,17 @@ USR_LIBS += $(USR_LIBS_DEFAULT)
endif
endif
#
# concat specific include files
#
ifneq ($(strip $(INC_$(OS_CLASS))),)
INC += $(subst -nil-,,$(INC_$(OS_CLASS)))
else
ifdef INC_DEFAULT
INC+=$(INC_DEFAULT)
endif
endif
#
# concat specific library contents (if defined) to SYS_PROD_LIBS
#

View File

@@ -0,0 +1,24 @@
export TOP
export IOCAPPS
RELEASE_TOPS = $(shell $(PERL) $(TOOLS)/convertRelease.pl -T $(TOP) releaseTops )
ifneq ($(RELEASE_TOPS),)
define RELEASE_FLAGS_template
export $(1)
$(1)_HOST_BIN = $$(strip $$($(1)))/bin/$$(EPICS_HOST_ARCH)
$(1)_HOST_LIB = $$(strip $$($(1)))/lib/$$(EPICS_HOST_ARCH)
$(1)_BIN = $$(strip $$($(1)))/bin/$$(T_A)
$(1)_LIB = $$(strip $$($(1)))/lib/$$(T_A)
SHRLIB_SEARCH_DIRS += $$($(1)_LIB)
RELEASE_INCLUDES += $$(addprefix -I,$$(wildcard $$(strip $$($(1)))/include/os/$$(OS_CLASS)))
RELEASE_INCLUDES += $$(addprefix -I,$$(wildcard $$(strip $$($(1)))/include))
RELEASE_DBDFLAGS += $$(addprefix -I,$$(wildcard $$(strip $$($(1)))/dbd))
RELEASE_DBFLAGS += $$(addprefix -I,$$(wildcard $$(strip $$($(1)))/db))
RELEASE_PERL_MODULE_DIRS += $$(wildcard $$($(1)_LIB)/perl)
endef
$(foreach top, $(RELEASE_TOPS), $(eval $(call RELEASE_FLAGS_template,$(top)) ))
endif

View File

@@ -21,14 +21,14 @@ endif
#---------------------------------------------------------------
# Epics base Ioc libraries
EPICS_BASE_IOC_LIBS += recIoc softDevIoc iocsh
EPICS_BASE_IOC_LIBS += recIoc softDevIoc
EPICS_BASE_IOC_LIBS += miscIoc rsrvIoc dbtoolsIoc asIoc
EPICS_BASE_IOC_LIBS += dbIoc registryIoc dbStaticIoc ca Com
#---------------------------------------------------------------
# Epics base Host libraries
EPICS_BASE_HOST_LIBS += cas gdd iocshHost asHost dbStaticHost registryIoc
EPICS_BASE_HOST_LIBS += cas gdd asHost dbStaticHost registryIoc
EPICS_BASE_HOST_LIBS += ca Com
#---------------------------------------------------------------
@@ -53,22 +53,33 @@ BASE_CPPFLAGS += $(OSITHREAD_DEFAULT_STACK_FLAGS_$(OSITHREAD_USE_DEFAULT_STACK))
#---------------------------------------------------------------
# Where to find the installed build tools
EPICS_BASE_TOOLS_BIN_HOST = $(EPICS_BASE_BIN)
EPICS_BASE_TOOLS_BIN_CROSS = $(EPICS_BASE_HOST_BIN)
EPICS_BASE_TOOLS_BIN = $(EPICS_BASE_TOOLS_BIN_$(BUILD_CLASS))
TOOLS = $(EPICS_BASE_HOST_BIN)
#---------------------------------------------------------------
# Epics base build tools and tool flags
MAKEBPT = $(call PATH_FILTER, $(EPICS_BASE_TOOLS_BIN)/makeBpt$(HOSTEXE))
DBEXPAND = $(call PATH_FILTER, $(EPICS_BASE_TOOLS_BIN)/dbExpand$(HOSTEXE))
DBTORECORDTYPEH = $(call PATH_FILTER, $(EPICS_BASE_TOOLS_BIN)/dbToRecordtypeH$(HOSTEXE))
DBTOMENUH = $(call PATH_FILTER, $(EPICS_BASE_TOOLS_BIN)/dbToMenuH$(HOSTEXE))
REGISTERRECORDDEVICEDRIVER = $(PERL) $(EPICS_BASE_TOOLS_BIN)/registerRecordDeviceDriver.pl
MAKEBPT = $(call PATH_FILTER, $(TOOLS)/makeBpt$(HOSTEXE))
DBEXPAND = $(call PATH_FILTER, $(TOOLS)/dbExpand$(HOSTEXE))
DBTORECORDTYPEH = $(call PATH_FILTER, $(TOOLS)/dbToRecordtypeH$(HOSTEXE))
DBTOMENUH = $(call PATH_FILTER, $(TOOLS)/dbToMenuH$(HOSTEXE))
REGISTERRECORDDEVICEDRIVER = $(PERL) $(TOOLS)/registerRecordDeviceDriver.pl
CONVERTRELEASE=$(PERL) $(TOOLS)/convertRelease.pl
#-------------------------------------------------------
# tools for installing libraries and products
INSTALL = $(PERL) $(TOOLS)/installEpics.pl
INSTALL_PRODUCT = $(INSTALL)
INSTALL_LIBRARY = $(INSTALL)
#---------------------------------------------------------------
# tools for making header dependancies and variable replacement
MKMF = $(PERL) $(TOOLS)/mkmf.pl
REPLACEVAR = $(PERL) $(TOOLS)/replaceVAR.pl
#---------------------------------------------------------------
# private versions of lex/yacc from EPICS
EYACC = $(call PATH_FILTER, $(EPICS_BASE_TOOLS_BIN)/antelope$(HOSTEXE))
ELEX = $(call PATH_FILTER, $(EPICS_BASE_TOOLS_BIN)/e_flex$(HOSTEXE)) -S$(EPICS_BASE)/include/flex.skel.static
EYACC = $(call PATH_FILTER, $(TOOLS)/antelope$(HOSTEXE))
ELEX = $(call PATH_FILTER, $(TOOLS)/e_flex$(HOSTEXE)) -S$(EPICS_BASE)/include/flex.skel.static
YACC = $(EYACC)
LEX = $(ELEX)

View File

@@ -1,5 +1,5 @@
#*************************************************************************
# Copyright (c) 2006 UChicago Argonne LLC, as Operator of Argonne
# Copyright (c) 2008 UChicago Argonne LLC, as Operator of Argonne
# National Laboratory.
# Copyright (c) 2002 The Regents of the University of California, as
# Operator of Los Alamos National Laboratory.
@@ -19,17 +19,27 @@
BASE_3_14=YES
# EPICS_VERSION must be a number >0 and <256
EPICS_VERSION = 3
# EPICS_REVISION must be a number >=0 and <256
EPICS_REVISION = 14
# This part may contain letters, eg 0beta1
EPICS_MODIFICATION = 9
# EPICS_MODIFICATION must be a number >=0 and <256
EPICS_MODIFICATION = 11
# EPICS_PATCH_LEVEL must be a number (win32 resource file requirement)
# Not included if zero
EPICS_PATCH_LEVEL = 0
# This will be -CVS or empty at an official release point
EPICS_CVS_SNAPSHOT=-RC1
# This will end in -CVS between official releases
EPICS_CVS_SNAPSHOT=-CVS
#EPICS_CVS_SNAPSHOT=-pre1
#EPICS_CVS_SNAPSHOT=-pre1-CVS
#EPICS_CVS_SNAPSHOT=-RC1
#EPICS_CVS_SNAPSHOT=-RC1-CVS
#EPICS_CVS_SNAPSHOT=-RC2
#EPICS_CVS_SNAPSHOT=-RC2-CVS
#EPICS_CVS_SNAPSHOT=
# No changes should be needed below here

View File

@@ -16,6 +16,10 @@
#
# Common Configuration Information
#-------------------------------------------------------
# POSIX is OS default
POSIX=YES
#-------------------------------------------------------
# Divider symbol
DIVIDER = .
@@ -47,11 +51,16 @@ CHECK_RELEASE_YES = checkRelease
CHECK_RELEASE_NO =
CHECK_RELEASE_WARN = warnRelease
#-------------------------------------------------------
# GNU directory
# GNU_DIR definition is here because it is used to find
# READLINE library even if GNU compiler is not used
GNU_DIR = /usr
#-------------------------------------------------------
# Directories
INSTALL_LOCATION = $(TOP)
TOOLS = $(CONFIG)/tools
INSTALL_LOCATION_LIB = $(INSTALL_LOCATION)/lib
INSTALL_LOCATION_BIN = $(INSTALL_LOCATION)/bin
@@ -71,6 +80,7 @@ INSTALL_JAVA = $(INSTALL_LOCATION)/javalib
#Directory for OS independant build created files
COMMON_DIR = ../O.Common
#-------------------------------------------------------
ifdef T_A
INSTALL_LIB = $(INSTALL_LOCATION_LIB)/$(T_A)
@@ -83,8 +93,7 @@ SHRLIB_SEARCH_DIRS = $(INSTALL_LIB)
#-------------------------------------------------------
# Ext, app, and module configure dir targets
CONFIG_TARGETS += CONFIG_APP_INCLUDE RULES_INCLUDE
CONFIG_INSTALLS += ../RULES_BUILD
CONFIG_INSTALLS += ../RULES_BUILD ../RELEASE*
#-------------------------------------------------------
# Cross compile default, HOST or CROSS, CONFIG.crossCommon will override
@@ -92,8 +101,6 @@ BUILD_CLASS = HOST
#-------------------------------------------------------
# Build defaults, CONFIG_SITE, CONFIG, or os/CONFIG* will override
CMPLR=STRICT
CXXCMPLR=STRICT
STATIC_BUILD=NO
SHARED_LIBRARIES=YES
HDEPENDS=YES
@@ -103,32 +110,29 @@ HOST_WARN=YES
CROSS_WARN=YES
GNU=NO
#-------------------------------------------------------
# Run checkRelease in $(TOP)/configure/O.*
CONFIG_TARGETS += $(CHECK_RELEASE_$(CHECK_RELEASE))
#-------------------------------------------------------
# Prefix and suffix
DEP=.depends
OBJ = .
RES = .
CMPLR_SUFFIX=
CMPLR_PREFIX=
LIB_PREFIX=
SHRLIB_PREFIX= $(LIB_PREFIX)
#-------------------------------------------------------
# tools for installing libraries and products
INSTALL = $(PERL) $(TOOLS)/installEpics.pl
INSTALL_PRODUCT = $(INSTALL)
INSTALL_LIBRARY = $(INSTALL)
#---------------------------------------------------------------
# tools for making header dependancies and variable replacement
MKMF = $(PERL) $(TOOLS)/mkmf.pl
REPLACEVAR = $(PERL) $(TOOLS)/replaceVAR.pl
# Make echo output - suppress echoing if make's '-s' flag is set
ECHO := $(if $(findstring s,$(MAKEFLAGS)),\#,@echo)
#--------------------------------------------------
# vpath directories
POSIX_YES = os/posix
GENERIC_SRC_DIRS = .. $(SRC_DIRS)
OS_SRC_DIRS += . $(foreach dir, .. $(SRC_DIRS), \
$(dir)/os/$(OS_CLASS) $(dir)/os/posix $(dir)/os/default )
$(addprefix $(dir)/, os/$(OS_CLASS) $(POSIX_$(POSIX)) os/default ))
ALL_SRC_DIRS = $(OS_SRC_DIRS) $(GENERIC_SRC_DIRS)
#--------------------------------------------------
@@ -136,7 +140,7 @@ ALL_SRC_DIRS = $(OS_SRC_DIRS) $(GENERIC_SRC_DIRS)
INSTALL_INCLUDES += \
-I$(INSTALL_INCLUDE)/os/$(OS_CLASS) \
-I$(INSTALL_INCLUDE)
GENERIC_SRC_INCLUDES = $(addprefix -I, $(GENERIC_SRC_DIRS))
SRC_INCLUDES = -I$(COMMON_DIR) $(addprefix -I, $(wildcard $(ALL_SRC_DIRS)))
#--------------------------------------------------
# Target filename definitions
@@ -152,7 +156,7 @@ JAR =
#--------------------------------------------------
# obj files
TARGET_OBJS = $($*_OBJLIBS) $($*_LDOBJS) $(addsuffix $(OBJ),$(basename $($*_OBJS)))
TARGET_OBJS = $($*_OBJLIBS) $($*_LDOBJS) $(addsuffix $(OBJ),$(basename $($*_OBJS) $($*_SRCS)))
PRODUCT_OBJS = $(addsuffix $(OBJ),$(basename $(SRCS) $(USR_SRCS) $(PROD_SRCS) $(USR_OBJS) $(PROD_OBJS)))
PROD_LD_OBJS = $(USR_OBJLIBS) $(PROD_OBJLIBS) $(TARGET_OBJS) $(PRODUCT_OBJS)
@@ -163,12 +167,12 @@ LIBRARY_LD_OBJS = $(USR_OBJLIBS) $(LIB_OBJLIBS) $(TARGET_OBJS) $(LIBRARY_OBJS)
#--------------------------------------------------
# WIN95/NT resource files
TARGET_RESS = $(addsuffix $(RES),$(basename $($*_RCS)))
TARGET_RESS = $(if $(RES),$(addsuffix $(RES),$(basename $($*_RCS))),)
PROD_RESS = $(addsuffix $(RES),$(basename $(RCS) $(PROD_RCS)))
PROD_RESS = $(if $(RES),$(addsuffix $(RES),$(basename $(RCS) $(PROD_RCS))),)
PROD_LD_RESS = $(TARGET_RESS) $(PROD_RESS)
LIBRARY_RESS = $(addsuffix $(RES),$(basename $(RCS) $(LIB_RCS) $(LIBRARY_RCS)))
LIBRARY_RESS = $(if $(RES),$(addsuffix $(RES),$(basename $(RCS) $(LIB_RCS) $(LIBRARY_RCS))),)
LIBRARY_LD_RESS = $(TARGET_RESS) $(LIBRARY_RESS)
#--------------------------------------------------
@@ -179,14 +183,14 @@ LIB_BAF=$(addsuffix $(BAF),$(basename $(LIBRARY)))
#--------------------------------------------------
# C preprocessor, compiler, and linker flag defaults
# Target architecture specific (solaris,sun4,mv167,...) flags
# Target architecture specific flags
ARCH_DEP_CPPFLAGS =
ARCH_DEP_CFLAGS =
ARCH_DEP_CXXFLAGS = $(ARCH_DEP_CFLAGS)
ARCH_DEP_LDFLAGS =
ARCH_DEP_LDLIBS =
# Target operating system specific (Unix,Vx,WIN32...) flags
# Target operating system specific flags
OP_SYS_CPPFLAGS =
OP_SYS_CFLAGS =
OP_SYS_CXXFLAGS = $(OP_SYS_CFLAGS)
@@ -227,16 +231,13 @@ TARGET_CPPFLAGS += $($(basename $@)_CPPFLAGS_$(OS_CLASS)) $($(basename $@)_CPPFL
TARGET_LDFLAGS = $($*_LDFLAGS)
# Level of ansi conformance flags
CONFORM_CPPFLAGS = $(CONFORM_CPPFLAGS_$(CMPLR))
CONFORM_CFLAGS = $(CONFORM_CFLAGS_$(CMPLR))
CONFORM_CXXFLAGS = $(CONFORM_CXXFLAGS_$(CXXCMPLR))
# Warnings flags
WARN_CPPFLAGS = $(WARN_CPPFLAGS_$($(BUILD_CLASS)_WARN))
WARN_CFLAGS = $(WARN_CFLAGS_$($(BUILD_CLASS)_WARN))
WARN_CXXFLAGS = $(WARN_CXXFLAGS_$($(BUILD_CLASS)_WARN))
# Optimization flags
OPT_CPPFLAGS = $(OPT_CPPFLAGS_$($(BUILD_CLASS)_OPT))
OPT_CFLAGS = $(OPT_CFLAGS_$($(BUILD_CLASS)_OPT))
OPT_CXXFLAGS = $(OPT_CXXFLAGS_$($(BUILD_CLASS)_OPT))
@@ -248,9 +249,15 @@ STATIC_LDLIBS = $(STATIC_LDLIBS_$(STATIC_BUILD))
#--------------------------------------------------
# cflags for shared library src files (from SHRLIB_CFLAGS)
LIBRARY_SRCS=$(basename $(foreach lib,$(LIBRARY) $(LOADABLE_LIBRARY),$($(lib)_OBJS) $(LIBRARY_OBJS)))
LIBRARY_SRCS=$(basename $(foreach lib,$(LIBRARY) $(LOADABLE_LIBRARY),$($(lib)_OBJSNAME) $(LIBRARY_OBJS)))
LIBRARY_SRC_CFLAGS=$($(patsubst $*,SHRLIB,$(findstring $*,$(LIBRARY_SRCS)))_CFLAGS)
#--------------------------------------------------
# prefix, suffix, and ldflags for loadable shared libraries
TARGET_LIB_LDFLAGS=$($(patsubst $*,LOADABLE_,$(findstring $*,$(LOADABLE_LIBRARY)))SHRLIB_LDFLAGS)
LOADABLE_SHRLIB_PREFIX=$(SHRLIB_PREFIX)
LOADABLE_SHRLIB_SUFFIX=$(SHRLIB_SUFFIX)
#--------------------------------------------------
# Command-line input support default
COMMANDLINE_LIBRARY = EPICS
@@ -260,25 +267,26 @@ OP_SYS_LDFLAGS += $(LDFLAGS_$(COMMANDLINE_LIBRARY))
#--------------------------------------------------
# Flags
INCLUDES = -I. $(GENERIC_SRC_INCLUDES) $(INSTALL_INCLUDES) $(RELEASE_INCLUDES)\
INCLUDES = -I. $(SRC_INCLUDES) $(INSTALL_INCLUDES) $(RELEASE_INCLUDES)\
$(TARGET_INCLUDES) $(USR_INCLUDES) $(OP_SYS_INCLUDES) $($(BUILD_CLASS)_INCLUDES)
CFLAGS = $(CONFORM_CFLAGS) $($(BUILD_CLASS)_CFLAGS) $(OPT_CFLAGS) $(DEBUG_CFLAGS)\
$(WARN_CFLAGS) $(TARGET_CFLAGS) $(USR_CFLAGS) $(ARCH_DEP_CFLAGS)\
CFLAGS = $($(BUILD_CLASS)_CFLAGS) $(POSIX_CFLAGS) $(OPT_CFLAGS) $(DEBUG_CFLAGS)\
$(PIPE_CFLAGS) $(WARN_CFLAGS) $(TARGET_CFLAGS) $(USR_CFLAGS) $(ARCH_DEP_CFLAGS)\
$(CODE_CFLAGS) $(STATIC_CFLAGS) $(OP_SYS_CFLAGS) $(LIBRARY_SRC_CFLAGS)
CXXFLAGS = $(CONFORM_CXXFLAGS) $($(BUILD_CLASS)_CXXFLAGS) $(OPT_CXXFLAGS)\
$(DEBUG_CXXFLAGS) $(WARN_CXXFLAGS) $(TARGET_CXXFLAGS) $(USR_CXXFLAGS)\
$(ARCH_DEP_CXXFLAGS) $(CODE_CXXFLAGS) $(STATIC_CXXCFLAGS) $(OP_SYS_CXXFLAGS) $(LIBRARY_SRC_CFLAGS)
CXXFLAGS = $($(BUILD_CLASS)_CXXFLAGS) $(POSIX_CXXFLAGS) $(OPT_CXXFLAGS) $(DEBUG_CXXFLAGS)\
$(PIPE_CFLAGS) $(WARN_CXXFLAGS) $(TARGET_CXXFLAGS) $(USR_CXXFLAGS) $(ARCH_DEP_CXXFLAGS)\
$(CODE_CXXFLAGS) $(STATIC_CXXCFLAGS) $(OP_SYS_CXXFLAGS) $(LIBRARY_SRC_CFLAGS)
LDFLAGS = $(OPT_LDFLAGS) $(TARGET_LDFLAGS) $(USR_LDFLAGS) \
LDFLAGS = $(OPT_LDFLAGS) $(TARGET_LDFLAGS) $(USR_LDFLAGS) $(POSIX_LDFLAGS) \
$(ARCH_DEP_LDFLAGS) $(DEBUG_LDFLAGS) $(OP_SYS_LDFLAGS) $($(BUILD_CLASS)_LDFLAGS)\
$(RUNTIME_LDFLAGS) $(CODE_LDFLAGS)
LDLIBS = $(STATIC_LDLIBS)\
LDLIBS = \
$(POSIX_LDLIBS) $(ARCH_DEP_LDLIBS) $(DEBUG_LDLIBS) $(OP_SYS_LDLIBS) $(GNU_LDLIBS_$(GNU))
CPPFLAGS += $(CONFORM_CPPFLAGS) $($(BUILD_CLASS)_CPPFLAGS) $(POSIX_CPPFLAGS)\
CPPFLAGS += $($(BUILD_CLASS)_CPPFLAGS) $(POSIX_CPPFLAGS)\
$(OPT_CPPFLAGS) $(DEBUG_CPPFLAGS) $(WARN_CPPFLAGS)\
$(BASE_CPPFLAGS) $(TARGET_CPPFLAGS) $(USR_CPPFLAGS) $(ARCH_DEP_CPPFLAGS)\
$(OP_SYS_CPPFLAGS) $(OP_SYS_INCLUDE_CPPFLAGS) $(CODE_CPPFLAGS)
@@ -292,10 +300,12 @@ ARCMD = $(AR) $(ARFLAGS) $(USR_ARFLAGS) $@ $(LIBRARY_LD_OBJS)
MUNCH_CMD = $(LD) -o $@ $^
#--------------------------------------------------
# LEX default option (valid for EPICS base 3.13.0.beta12 and later)
# LEX default options
#
# to allow characters that are not plain 7bit standard ASCII
LEXOPT += -8
# Allow 8-bit characters
LEXOPT += -8
# Generate an "interactive" scanner, solves problems at EOF.
LEXOPT += -I
#--------------------------------------------------
# Build compile line here
@@ -315,7 +325,7 @@ HDEPENDS_FLAGS =
HDEPENDS_INCLUDES = $(subst -I,,$(INCLUDES))
HDEPENDSFLAGS = -m $*$(DEP) $(HDEPENDS_INCLUDES) $@ $<
HDEPENDS_CMD_YES = -$(MKMF) $(HDEPENDS_FLAGS) $(HDEPENDSFLAGS)
HDEPENDS_CMD_NO = echo ""
HDEPENDS_CMD_NO = $(ECHO) ""
HDEPENDS_CMD = $(HDEPENDS_CMD_$(HDEPENDS))
#--------------------------------------------------
@@ -350,6 +360,15 @@ INSTALL_TEMPLATE = $(addprefix $(INSTALL_TEMPLATES_SUBDIR)/, \
$(subst $(CONFIG),top/configure,$(TEMPLATES)))
INSTALL_CONFIGS = $(CONFIGS:%= $(INSTALL_CONFIG)/%)
INSTALL_BIN_INSTALLS = $(addprefix $(INSTALL_BIN)/,$(notdir $(BIN_INSTALLS)))
INSTALL_LIB_INSTALLS = $(addprefix $(INSTALL_LIB)/,$(notdir $(LIB_INSTALLS)))
#---------------------------------------------------------------
# Installed file permissions
BIN_PERMISSIONS = 555
LIB_PERMISSIONS = 644
INSTALL_PERMISSIONS = 644
#---------------------------------------------------------------
#
# auto determine the directory paths that things are installed to

View File

@@ -0,0 +1,64 @@
#*************************************************************************
# Copyright (c) 2006 UChicago Argonne LLC, as Operator of Argonne
# National Laboratory.
# Copyright (c) 2002 The Regents of the University of California, as
# Operator of Los Alamos National Laboratory.
# EPICS BASE is distributed subject to a Software License Agreement found
# in the file LICENSE that is included with this distribution.
#*************************************************************************
# $Id$
#
# Macros and rules to create a new installation file type
#
# --------------------------------------------------------------
# Module developers can now define a new type of file, e.g. ABC,
# so that files of type ABC will be installed into a directory
# defined by INSTALL_ABC. This is done by creating a new CONFIG<name>
# file, e.g. CONFIG_ABC, with the following lines:
#
# FILE_TYPE += ABC
# INSTALL_ABC = $(INSTALL_LOCATION)/abc
#
# The INSTALL_ABC directory should be be a subdirectory of
# $(INSTALL_LOCATION). The file type ABC should be target
# architecture independent (alh files, medm files, edm files).
#
# Optional rules necessary for files of type ABC should be put in
# a RULES_ABC file.
#
# The module developer installs new CONFIG* or RULES* files
# into the directory $(INSTALL_LOCATION)/cfg by including the
# following Makefile line:
#
# CFG += CONFIG_ABC RULES_ABC
#
# Files of type ABC are installed into INSTALL_ABC directory
# by adding a line like the following to a Makefile.
#
# ABC += <filename1> <filename2> <filename3>
#
# Files in $(INSTALL_LOCATION)/cfg directory are now included by
# the base config files so the definitions and rules are available
# for use by later src directory Makefiles in the same module or
# by other modules with a RELEASE line pointing to the TOP of
# the module with RULES_ABC.
FILE_TYPE += ADL
INSTALL_ADL = $(INSTALL_LOCATION)/adl
FILE_TYPE += ALH
INSTALL_ALH = $(INSTALL_LOCATION)/alh
FILE_TYPE += CFG
INSTALL_CFG = $(INSTALL_LOCATION)/cfg
FILE_TYPE += EDL
INSTALL_EDL = $(INSTALL_LOCATION)/edl
FILE_TYPE += PERL_MODULES
INSTALL_PERL_MODULES = $(INSTALL_LOCATION_LIB)/perl
INSTALLS_CFG= $(CFG:%= $(INSTALL_CFG)/%)
DIRECTORY_TARGETS += $(foreach type, $(FILE_TYPE),$(INSTALL_$(type)))

View File

@@ -24,21 +24,18 @@
# darwin-ppcx86 (Universal binaries for both CPUs)
# freebsd-x86 (GNU compiler used for host builds)
# freebsd-x86_64 (GNU compiler used for host builds)
# hpux-parisc (HP compiler used for host builds)
# hpux-parisc-gnu (GNU compiler used for host builds)
# linux-ppc (GNU compiler used for host builds)
# linux-x86 (GNU compiler used for host builds)
# linux-x86_64 (GNU compiler used for host builds)
# linux-x86-borland (Borland C++ compiler used for host builds)
# solaris-sparc (sun compiler used for host builds)
# solaris-sparc (Sun compiler used for host builds)
# solaris-sparc-gnu (GNU compiler used for host builds)
# solaris-sparc64 (sun compiler used for host builds)
# solaris-sparc64 (Sun compiler used for host builds)
# solaris-sparc64-gnu (GNU compiler used for host builds)
# solaris-x86 (sun compiler used for host builds)
# solaris-x86 (Sun compiler used for host builds)
# solaris-x86-gnu (GNU compiler used for host builds)
# win32-x86 (MS Visual C++ compiler used for host builds)
# win32-x86-mingw (MinGW compiler used for host builds)
# win32-x86-borland (Borland C++ compiler used for host builds)
# win32-x86-cygwin (WIN32 API with cygwin GNU compiler used for host builds)
# Debugging builds
@@ -56,12 +53,18 @@
# The cross-compiler architectures to build EPICS for
#
# Currently Supporting:
# linux-386 (linux-x86 host)
# linux-486 (linux-x86 host)
# linux-586 (linux-x86 host)
# linux-686 (linux-x86 host)
# linux-athlon (linux-x86 host)
# linux-386 (linux-x86 host)
# linux-486 (linux-x86 host)
# linux-586 (linux-x86 host)
# linux-686 (linux-x86 host)
# linux-arm
# linux-arm_eb
# linux-arm_el
# linux-athlon (linux-x86 host)
# linux-cris (Axis GNU crosscompiler on linux-x86 host)
# linux-cris_v10 (Axis GNU crosscompiler on linux-x86 host)
# linux-cris_v32 (Axis GNU crosscompiler on linux-x86 host)
# linux-xscale_be
# vxWorks-486
# vxWorks-68040
# vxWorks-68040lc
@@ -73,10 +76,13 @@
# vxWorks-ppc604_long
# vxWorks-ppc604_altivec
# vxWorks-mpc8540
# RTEMS-at91rm9200ek
# RTEMS-beatnik
# RTEMS-gen68360
# RTEMS-mcp750
# RTEMS-mvme167
# RTEMS-mvme2100
# RTEMS-mvme3100
# RTEMS-mvme5500
# RTEMS-pc386
# RTEMS-psim
@@ -96,19 +102,6 @@ CROSS_COMPILER_TARGET_ARCHS=
#
CROSS_COMPILER_HOST_ARCHS=
# Default ANSI level, individual Makefiles will override
# if they cannot support ANSI compilation.
# STRICT - ANSI C - force warning flags
# ANSI - ANSI C
# TRAD - Standard C - Not appropriate here.
CMPLR=STRICT
# Default C++ compiler ANSI level
# STRICT - ANSI C++ force strict warning flags
# NORMAL - ANSI C++ optional warning flags
# Individual Makefiles may override
CXXCMPLR=STRICT
# Build shared libraries?
# must be either YES or NO
# NOTE: os/CONFIG.$(EPICS_HOST_ARCH).$(EPICS_HOST_ARCH) files and
@@ -174,3 +167,7 @@ USE_POSIX_THREAD_PRIORITY_SCHEDULING = NO
# EPICS version number string that is reported by many tools
EPICS_SITE_VERSION =
# For GNU compiler, use pipes rather than temporary files for communication
# between the various stages of compilation.
GCC_PIPE = NO

View File

@@ -33,15 +33,15 @@
# where the start and end are mmddhh - that is month,day,hour
# eg EPICS_TIMEZONE=CUS::360:033102:102802
#
# DST for 2007 US: Mar 11 - Nov 04
# EU: Mar 25 - Oct 28
# DST for 2009 US: Mar 08 - Nov 01
# EU: Mar 29 - Oct 25
# (see: http://www.worldtimezone.org/daylight.html)
#
# EPICS_TS_NTP_INET
# NTP or Unix time server ip address. Uses boot host if not set.
EPICS_TIMEZONE=CUS::360:031102:110402
#EPICS_TIMEZONE=MET::-60:032502:102802
EPICS_TIMEZONE=CUS::360:030802:110102
#EPICS_TIMEZONE=MET::-60:032902:102502
EPICS_TS_NTP_INET=
# IOC Shell:

View File

@@ -15,6 +15,9 @@ TOP=..
include $(TOP)/configure/CONFIG
# Bootstrap resolution: tools not installed yet
TOOLS = $(TOP)/src/tools
CONFIGS += $(subst ../,,$(wildcard ../CONFIG*))
CONFIGS += $(subst ../,,$(wildcard ../os/CONFIG*))
@@ -23,6 +26,5 @@ CONFIGS += $(subst ../,,$(wildcard ../RULES*))
CONFIGS += $(subst ../,,$(wildcard ../tools/*.pl))
TARGETS = CONFIG_APP_INCLUDE
include $(TOP)/configure/RULES

View File

@@ -17,22 +17,25 @@ vpath %.vdb $(USR_VPATH) $(GENERIC_SRC_DIRS) $(dir $(DB))
vpath %.substitutions $(USR_VPATH) $(GENERIC_SRC_DIRS) $(COMMON_DIR)
vpath %.template $(USR_VPATH) $(GENERIC_SRC_DIRS) $(COMMON_DIR)
vpath bpt%.data $(USR_VPATH) $(GENERIC_SRC_DIRS) $(COMMON_DIR)
vpath %.acf $(USR_VPATH) $(GENERIC_SRC_DIRS) $(COMMON_DIR)
vpath %.acs $(USR_VPATH) $(GENERIC_SRC_DIRS) $(COMMON_DIR)
##################################################### dbdflags
# dbExpand
INSTALL_DBDFLAGS += -I $(INSTALL_LOCATION)/dbd
INSTALL_DBFLAGS += -I $(INSTALL_LOCATION)/db
DBDFLAGS = $(USR_DBDFLAGS) -I . -I .. $(INSTALL_DBDFLAGS) $(RELEASE_DBDFLAGS)
DBFLAGS = $($*_DBFLAGS) $(USR_DBFLAGS) -I. $(GENERIC_SRC_INCLUDES)
DBFLAGS += -I$(COMMON_DIR)
DBFLAGS = $($*_DBFLAGS) $(USR_DBFLAGS) -I. -I.. $(INSTALL_DBFLAGS) $(RELEASE_DBFLAGS)
##################################################### Targets
# Following line added for backward compatibilty
DBD += $(DBDNAME)
DBD += $(addsuffix .dbd,$(patsubst %.h,%,$(patsubst %.db,%,$(DBDINC))))
INC += $(addsuffix .h,$(patsubst %.h,%,$(patsubst %.db,%,$(DBDINC))))
DBDINC_NAME = $(patsubst %.h,%,$(patsubst %.db,%,$(DBDINC)))
DBD += $(addsuffix .dbd,$(DBDINC_NAME))
INC += $(addsuffix .h,$(DBDINC_NAME))
INSTALL_DBDS += $(addprefix $(INSTALL_DBD)/,$(notdir $(DBD)))
@@ -61,7 +64,7 @@ TEMPLATE2=$(patsubst %0,%,$(patsubst %1,%,$(patsubst %2,%,$(patsubst %3,%,$(pats
$(patsubst %5,%,$(patsubst %6,%,$(patsubst %7,%,$(patsubst %8,%,$(patsubst %9,%, \
$(TEMPLATE1)))))))))))
TEMPLATE3=$(addsuffix .template,$(addprefix ../,$(TEMPLATE2)))
TEMPLATE_FILENAME=$(firstword $(wildcard $(addprefix ../,$($*_TEMPLATE)) ../$*.template $(TEMPLATE3) ../template))
TEMPLATE_FILENAME=$(firstword $(wildcard $($*_TEMPLATE) $(addprefix ../,$($*_TEMPLATE)) ../$*.template $(TEMPLATE3) ../template))
# dbst based database optimization
ifeq '$(DB_OPT)' 'YES'
@@ -70,10 +73,26 @@ COMMON_DBS = $(addprefix $(COMMON_DIR)/,$(filter %.db,$(DB)))
COMMON_DBS += $(addsuffix $(RAW),$(addprefix $(COMMON_DIR)/,$(filter %.db,$(DB))))
endif
INSTALL_DB_INSTALLS = $(addprefix $(INSTALL_DB)/,$(notdir $(DB_INSTALLS)))
INSTALL_DBD_INSTALLS = $(addprefix $(INSTALL_DBD)/,$(notdir $(DBD_INSTALLS)))
##################################################### acf files
# An access security configuration file, *.acf, can be created from
# an *.acs file (has format of acf file plus #include "filename" lines)
# flags for GNU compiler
ACF_CPPFLAGS_YES = -undef -nostdinc
ACF_CPPFLAGS = $(ACF_CPPFLAGS_$(GNU))
ACF_INCLUDES = -I. $(TARGET_INCLUDES) $(USR_INCLUDES)\
$(SRC_INCLUDES) -I$(INSTALL_DB)
ACFDEPENDS_CMD = -$(MKMF) -m $@$(DEP) $(subst -I,,$(ACF_INCLUDES)) $@ $<
ACF_CMD = $(CPP) $(ACF_CPPFLAGS) $(ACF_INCLUDES) $< > $@
##################################################### dependancies
HINC += $(addsuffix .h,$(patsubst %.h,%,$(patsubst %.db,%,$(DBDINC))))
COMMON_DBDINC += $(addprefix $(COMMON_DIR),$(HINC))
HINC += $(addsuffix .h,$(DBDINC_NAME))
COMMON_DBDINC += $(addprefix $(COMMON_DIR)/,$(HINC))
DBDDEPENDS_FILES += $(addsuffix $(DEP),$(COMMON_DBDS) \
$(COMMON_DBDINC) $(COMMON_DBS))
@@ -94,7 +113,7 @@ COMMON_DBDS = $(DBD)
COMMON_DBS = $(DB)
COMMONS = $(DBD) $(DB)
-include $(TOP)/configure/O.$(EPICS_HOST_ARCH)/CONFIG_APP_INCLUDE
-include $(TOP)/configure/CONFIG_APP_INCLUDE
all: install
@@ -116,27 +135,20 @@ $(DBDDEPENDS_FILES):
##################################################### build dependancies, clean rule
ifneq (,$(strip $(DBD_INSTALLS)))
buildInstall : dbdInstalls
endif
ifneq (,$(strip $(DB_INSTALLS)))
buildInstall : dbInstalls
endif
.PHONY: dbdInstalls dbInstalls
inc : $(COMMON_INC) $(INSTALL_INC)
build : $(COMMON_DBDS) $(COMMON_DBS) \
$(INSTALL_DBDS) $(INSTALL_DBS) \
$(DBDDEPENDS_FILES) $(TARGETS)
$(DBDDEPENDS_FILES) $(TARGETS) \
$(INSTALL_DB_INSTALLS) $(INSTALL_DBD_INSTALLS)
clean::
@$(RM) $(COMMONS) $(DBDDEPENDS_FILES)
@$(RM) *_registerRecordDeviceDriver.cpp
@$(RM) $(TARGETS)
realclean: clean
##################################################### CapFast filter
$(COMMON_DIR)/%.edf: ../%.sch $(DEPSCHS)
@@ -150,13 +162,14 @@ $(COMMON_DIR)/%.edf: ../%.sch $(DEPSCHS)
ifdef CREATESUBSTITUTIONS
$(COMMON_DIR)/%.substitutions:
$(ECHO) "Create substitutions"
@$(RM) $@
@$(CREATESUBSTITUTIONS) $(COMMON_DIR)/$*
$(CREATESUBSTITUTIONS) $@
endif
$(INSTALL_DB)/%.substitutions: %.substitutions
@echo "Installing db file $@"
@$(INSTALL) -d -m 644 $< $(@D)
$(ECHO) "Installing db file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
.PRECIOUS: $(COMMON_DIR)/%.substitutions
@@ -169,28 +182,42 @@ $(COMMON_DIR)/%.template: $(COMMON_DIR)/%.edf
@$(RM) $@.VAR
$(INSTALL_DB)/%.template: %.template
@echo "Installing db file $@"
@$(INSTALL) -d -m 644 $< $(@D)
$(ECHO) "Installing db file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
.PRECIOUS: $(COMMON_DIR)/%.template
##################################################### INC files
$(COMMON_DIR)/%Record.h: $(COMMON_DIR)/%Record.dbd
@$(RM) $@$(DEP)
@$(DBDDEPENDS_CMD)
$(ECHO) "$<:../Makefile" >> $@$(DEP)
@$(RM) $@
$(DBTORECORDTYPEH) $(DBDFLAGS) $< $@
$(COMMON_DIR)/%Record.h: %Record.dbd
@$(RM) $@$(DEP)
@$(DBDDEPENDS_CMD)
$(ECHO) "$<:../Makefile" >> $@$(DEP)
@$(RM) $@
$(DBTORECORDTYPEH) $(DBDFLAGS) $< $@
$(COMMON_DIR)/menu%.h: $(COMMON_DIR)/menu%.dbd
@$(RM) $@$(DEP)
@$(DBDDEPENDS_CMD)
$(ECHO) "$<:../Makefile" >> $@$(DEP)
@$(RM) $@
$(DBTOMENUH) $< $@
$(DBTOMENUH) $(DBDFLAGS) $< $@
$(COMMON_DIR)/menu%.h: menu%.dbd
@$(RM) $@$(DEP)
@$(DBDDEPENDS_CMD)
$(ECHO) "$<:../Makefile" >> $@$(DEP)
@$(RM) $@
$(DBTOMENUH) $< $@
$(DBTOMENUH) $(DBDFLAGS) $< $@
.PRECIOUS: $(COMMON_DIR)/%.h
##################################################### DBD files
@@ -201,14 +228,15 @@ $(COMMON_DIR)/bpt%.dbd: bpt%.data
$(COMMON_DIR)/%.dbd: $(COMMON_DIR)/%Include.dbd
@$(RM) $@$(DEP)
@$(DBDDEPENDS_CMD)
@echo "Expanding dbd"
$(ECHO) "$<:../Makefile" >> $@$(DEP)
$(ECHO) "Expanding dbd"
@$(RM) $@
$(DBEXPAND) $(DBDFLAGS) -o $@ $<
$(COMMON_DIR)/%.dbd: %Include.dbd
@$(RM) $@$(DEP)
@$(DBDDEPENDS_CMD)
@echo "Expanding dbd"
$(ECHO) "Expanding dbd"
@$(RM) $@
$(DBEXPAND) $(DBDFLAGS) -o $@ $<
@@ -217,16 +245,19 @@ $(COMMON_DIR)/%Include.dbd:
$(PERL) $(TOOLS)/makeIncludeDbd.pl $($*_DBD) $@
$(INSTALL_DBD)/%: $(COMMON_DIR)/%
@echo "Installing dbd file $@"
@$(INSTALL) -d -m 644 $< $(@D)
$(ECHO) "Installing created dbd file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_DBD)/%: %
@echo "Installing dbd file $@"
@$(INSTALL) -d -m 644 $< $(@D)
$(ECHO) "Installing dbd file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
dbdInstalls: $(DBD_INSTALLS)
@echo "Installing $(^F)"
@$(INSTALL) -d -m 555 $^ $(INSTALL_DBD)
define DBD_INSTALLS_template
$$(INSTALL_DBD)/$$(notdir $(1)) : $(1)
$(ECHO) "Installing $$@"
@$$(INSTALL) -d -m $$(INSTALL_PERMISSIONS) $$^ $$(INSTALL_DBD)
endef
$(foreach file, $(DBD_INSTALLS), $(eval $(call DBD_INSTALLS_template, $(file))))
.PRECIOUS: $(COMMON_DBDS) $(COMMON_DIR)/%Include.dbd
@@ -240,16 +271,16 @@ $(COMMON_DIR)/%.db$(RAW): $(COMMON_DIR)/%.edf
#$(COMMON_DIR)/%.db$(RAW): %.substitutions %.template
# @$(RM) $@$(DEP)
# @$(MAKEDBDEPENDS) $@ $^ >> $@$(DEP)
# @echo "Inflating database from $^"
# $(ECHO) "Inflating database from $^"
# @$(RM) $@
# $(MSI) $(DBFLAGS) -S$< $(firstword $(patsubst %.substitutions,,$^)) > msi.tmp
# $(MV) msi.tmp $@
$(COMMON_DIR)/%.db$(RAW): %.substitutions
@$(RM) $@$(DEP)
@$(MAKEDBDEPENDS) $@ $< $(TEMPLATE_FILENAME) >> $@$(DEP)
@echo "$@:$(TEMPLATE_FILENAME)" >> $@$(DEP)
@echo "Inflating database from $< $(TEMPLATE_FILENAME)"
$(MAKEDBDEPENDS) $@ $< $(TEMPLATE_FILENAME) >> $@$(DEP)
$(ECHO) "$@:$(TEMPLATE_FILENAME)" >> $@$(DEP)
$(ECHO) "Inflating database from $< $(TEMPLATE_FILENAME)"
@$(RM) $@
$(MSI) $(DBFLAGS) -S$< $(TEMPLATE_FILENAME) > msi.tmp
$(MV) msi.tmp $@
@@ -257,11 +288,20 @@ $(COMMON_DIR)/%.db$(RAW): %.substitutions
$(COMMON_DIR)/%.db$(RAW): %.template
@$(RM) $@$(DEP)
@$(MAKEDBDEPENDS) $@ $^ >> $@$(DEP)
@echo "Inflating database from $<"
$(ECHO) "Inflating database from $<"
@$(RM) $@
$(MSI) $(DBFLAGS) $< > msi.tmp
$(MV) msi.tmp $@
$(COMMON_DIR)/%.acf: %.acs
@$(RM) $@$(DEP)
@$(ACFDEPENDS_CMD)
$(ECHO) "Creating acf file $@"
@$(RM) $@
$(ACF_CMD)
.PRECIOUS: $(COMMON_DIR)/%.acf
# dbst based database optimization
ifeq '$(DB_OPT)' 'YES'
@@ -270,7 +310,7 @@ $(COMMON_DIR)/%.db$(RAW): ../%.db
$(CP) $< $@
$(COMMON_DIR)/%.db: $(COMMON_DIR)/%.db$(RAW)
@echo "Optimizing database $@"
$(ECHO) "Optimizing database $@"
@$(RM) $@
$(DBST) . $< -d > $@
@@ -279,17 +319,20 @@ $(COMMON_DIR)/%.db: $(COMMON_DIR)/%.db$(RAW)
else
$(INSTALL_DB)/%: %
@echo "Installing db file $@"
@$(INSTALL) -d -m 644 $< $(@D)
$(ECHO) "Installing db file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
endif
$(INSTALL_DB)/%.db: $(COMMON_DIR)/%.db
@echo "Installing db file $@"
@$(INSTALL) -d -m 644 $< $(@D)
$(ECHO) "Installing created db file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
dbInstalls: $(DB_INSTALLS)
@echo "Installing $(^F)"
@$(INSTALL) -d -m 555 $^ $(INSTALL_DB)
define DB_INSTALLS_template
$$(INSTALL_DB)/$$(notdir $(1)) : $(1)
$(ECHO) "Installing $$@"
@$$(INSTALL) -d -m $$(INSTALL_PERMISSIONS) $$^ $$(INSTALL_DB)
endef
$(foreach file, $(DB_INSTALLS), $(eval $(call DB_INSTALLS_template, $(file))))
.PRECIOUS: $(COMMON_DIR)/%.edf
.PRECIOUS: $(COMMON_DBS)

View File

@@ -10,23 +10,23 @@
#RULES.ioc
include $(CONFIG)/RULES_DIRS
build: buildInstall
install: buildInstall
build$(DIVIDER)$(ARCH) build: buildInstall
install$(DIVIDER)$(ARCH) install: buildInstall
$(ARCH): buildInstall
ifneq ($(findstring $(ARCH),$(BUILD_ARCHS)),)
buildInstall: $(TARGETS)
ifeq ($(filter $(ARCH),$(BUILD_ARCHS)),$(ARCH))
buildInstall$(DIVIDER)$(ARCH) buildInstall: $(TARGETS)
clean:
$(RM) cdCommands envPaths
clean$(DIVIDER)$(ARCH) clean:
$(RM) cdCommands envPaths dllPath.bat
else
buildInstall:
clean:
buildInstall$(DIVIDER)$(ARCH) buildInstall:
clean$(DIVIDER)$(ARCH) clean:
endif
envPaths cdCommands: $(wildcard $(TOP)/configure/RELEASE*) \
cdCommands envPaths dllPath.bat: $(wildcard $(TOP)/configure/RELEASE*) \
$(TOP)/configure/CONFIG $(INSTALL_BIN)
@$(RM) $@
ifeq ($(IOCS_APPL_TOP),)
$(PERL) $(TOOLS)/convertRelease.pl -a $(ARCH) $@
else
@@ -34,5 +34,5 @@ else
endif
realclean:
$(RM) cdCommands envPaths
$(RM) cdCommands envPaths dllPath.bat

View File

@@ -12,8 +12,6 @@
all: install
build install buildInstall: $(CHECK_RELEASE_$(CHECK_RELEASE))
rebuild: clean install
ACTIONS = inc
@@ -22,6 +20,7 @@ ACTIONS += install
ACTIONS += buildInstall
ACTIONS += browse
ACTIONS += runtests
#ACTIONS += rebuild
actionPart = $(word 1, $(subst $(DIVIDER), ,$@))
archPart = $(word 2, $(subst $(DIVIDER), ,$@))
@@ -33,6 +32,29 @@ cleanArchTargets = $(foreach arch,$(BUILD_ARCHS), clean$(DIVIDER)$(arch))
buildDirs = $(addprefix O.,$(BUILD_ARCHS))
#*************************************************************************
# Create epics_host_arch dependancies for GNU make -j option
# Only works with GNU make 3.81 or later (uses eval function)
# Needed in dirs where EPICS_HOST_ARCH build creates a tool used in
# cross arch builds
CROSS_ARCHS += $(CROSS1) $(CROSS2)
# j is NOT found in MAKEFLAGS when using make 3.81
# Hope to uncomment this for GNU make 3.82
#ifeq ($(findstring j,$(MAKEFLAGS)),j)
define DEP_template
$(2): $$(EPICS_HOST_ARCH)
$(1)$$(DIVIDER)$(2): $(1)$$(DIVIDER)$$(EPICS_HOST_ARCH)
endef
$(foreach action, $(ACTIONS), $(foreach arch,\
$(CROSS_ARCHS),$(eval $(call DEP_template,$(action),$(arch)))))
#endif
#*************************************************************************
$(actionArchTargets) : $(buildDirs) O.Common
$(MAKE) -C O.$(archPart) -f ../Makefile TOP=$(TOP)/.. T_A=$(archPart) $(actionPart)
@@ -47,26 +69,6 @@ $(buildDirs):
O.Common:
$(MKDIR) O.Common
#
# RELEASE consistency checking
# The RELEASE.$(EPICS_HOST_ARCH) files don't need to be included here:
targetReleaseFiles = $(wildcard $(foreach arch, $(BUILD_ARCHS), \
$(TOP)/configure/RELEASE.Common.$(arch) \
$(TOP)/configure/RELEASE.$(EPICS_HOST_ARCH).$(arch)))
checkReleaseTargets = $(addprefix checkRelease, $(suffix $(targetReleaseFiles)))
checkRelease: $(checkReleaseTargets)
$(PERL) $(TOOLS)/convertRelease.pl -h $(EPICS_HOST_ARCH) checkRelease
$(checkReleaseTargets):checkRelease.%:
$(PERL) $(TOOLS)/convertRelease.pl -h $(EPICS_HOST_ARCH) -a $* checkRelease
warnReleaseTargets = $(addprefix warnRelease, $(suffix $(targetReleaseFiles)))
warnRelease: $(warnReleaseTargets)
-$(PERL) $(TOOLS)/convertRelease.pl -h $(EPICS_HOST_ARCH) checkRelease
$(warnReleaseTargets):warnRelease.%:
-$(PERL) $(TOOLS)/convertRelease.pl -h $(EPICS_HOST_ARCH) -a $* checkRelease
#
# special clean rule
#
@@ -86,4 +88,3 @@ realclean ::
.PHONY : $(cleanArchTargets)
.PHONY : $(BUILD_ARCHS)
.PHONY : $(ACTIONS) clean realclean archclean all
.PHONY : checkRelease $(checkReleaseTargets)

View File

@@ -33,6 +33,9 @@ include $(CONFIG)/CONFIG_ADDONS
#---------------------------------------------------------------
# Set PROD, TESTPROD, OBJS, and LIBRARY
SCRIPTS_HOST += $(PERL_SCRIPTS)
# PERL_SCRIPTS are installed into existing $(INSTALL_BIN) for Host systems
ifeq ($(findstring Host,$(VALID_BUILDS)),Host)
LIBRARY += $(LIBRARY_HOST)
LOADABLE_LIBRARY += $(LOADABLE_LIBRARY_HOST)
@@ -74,17 +77,11 @@ ifneq (,$(strip $(HDEPENDS_FILES)))
endif
#---------------------------------------------------------------
# Create included Makefile for prod,testprod, and library targets
# Included defines and rules for prod,testprod, and library targets
ifneq (,$(strip $(PROD) $(TESTPROD) $(LIBRARY) $(LOADABLE_LIBRARY)))
MakefileInclude: ../Makefile $(wildcard $(TOP)/configure/RELEASE*)
@$(RM) $@
@$(PERL) $(TOOLS)/makeMakefileInclude.pl $(PROD) $(TESTPROD) $(LIBRARY) $(LOADABLE_LIBRARY) $@
-include MakefileInclude
endif # PROD, TESTPROD, LIBRARY, or LOADABLE_LIBRARY defined
#ifneq (,$(strip $(PROD) $(TESTPROD) $(LIBRARY) $(LOADABLE_LIBRARY)))
include $(CONFIG)/RULES_TARGET
#endif
#---------------------------------------------------------------
# Products and Object libraries
@@ -100,13 +97,10 @@ LIBTARGETS += $(LIBNAME) $(INSTALL_LIBS) \
$(DLL_LINK_LIBNAME) $(INSTALL_DLL_LINK_LIBS) \
$(LOADABLE_SHRLIBNAME) $(INSTALL_LOADABLE_SHRLIBS)
#---------------------------------------------------------------
ifneq ($(CONFIG),$(TOP)/configure)
RULES_TOP:=$(INSTALL_LOCATION)
-include $(TOP)/configure/RULES_BUILD
endif
-include $(TOP)/configure/O.$(T_A)/RULES_INCLUDE
#---------------------------------------------------------------
$(INSTALL_LIBS): $(INSTALL_SHRLIBS) $(INSTALL_DLL_LINK_LIBS) $(INSTALL_LOADABLE_SHRLIBS)
-include $(CONFIG)/RULES_FILE_TYPE
# Main targets
@@ -119,9 +113,9 @@ rebuild: clean install
build : inc
build: $(OBJSNAME) $(LIBTARGETS) $(PRODTARGETS) $(TESTPRODNAME) \
$(TARGETS) $(TESTSCRIPTS)
$(TARGETS) $(TESTSCRIPTS) $(INSTALL_LIB_INSTALLS)
inc : $(COMMON_INC) $(INSTALL_INC)
inc : $(COMMON_INC) $(INSTALL_INC) $(INSTALL_CONFIGS)
buildInstall : \
$(INSTALL_SCRIPTS) $(INSTALL_PROD) $(INSTALL_MUNCHS) \
@@ -130,24 +124,22 @@ buildInstall : \
$(INSTALL_DOCS) \
$(INSTALL_HTMLS) \
$(INSTALL_TEMPLATE) \
$(INSTALL_CONFIGS)
ifdef BIN_INSTALLS
buildInstall : binInstalls
endif
ifdef LIB_INSTALLS
buildInstall : libInstalls
endif
$(INSTALL_BIN_INSTALLS)
clean::
@echo "Cleaning"
@$(RM) *.i *$(OBJ) *.a $(TESTPRODNAME) $(LIBNAME) $(SHRLIBNAME)\
$(INC) *$(RES) $(TARGETS) $(DLL_LINK_LIBNAME) $(TDS) \
$(ECHO) "Cleaning"
@$(RM) *.i *$(OBJ) *.a $(TESTPRODNAME) $(LIBNAME) $(SHRLIBNAME) \
$(INC) $(TARGETS) $(DLL_LINK_LIBNAME) $(TDS) \
*.out MakefileInclude $(LOADABLE_SHRLIBNAME) *.manifest *.exp \
$(COMMON_INC) $(HDEPENDS_FILES) $(PRODTARGETS) $(TESTSCRIPTS)
ifdef RES
@$(RM) *$(RES)
endif
ifdef BAF
@$(RM) $(PROD_BAF) $(LIB_BAF) *$(BOF)
@$(RM) $(PROD_BAF) $(LIB_BAF)
endif
ifdef BOF
@$(RM) *$(BOF)
endif
# WIN95/NT source browser
@@ -158,6 +150,14 @@ browse: $(LIB_BAF) $(PROD_BAF)
$(DIRECTORY_TARGETS) :
$(MKDIR) -p $@
$(PRODNAME): $(INSTALL_LIB_INSTALLS)
# RELEASE file consistency checking
checkRelease:
$(CONVERTRELEASE) checkRelease
warnRelease:
-$(CONVERTRELEASE) checkRelease
#---------------------------------------------------------------
# The order of the following rules is
# VERY IMPORTANT !!!!
@@ -207,7 +207,7 @@ $(OBJLIBNAME):%$(OBJ):
# WIN95/NT source browser
%.bsc: %.sbr
@echo "building source browser archive $@"
$(ECHO) "building source browser archive $@"
@$(RM) $@
$(BAFCMD) $<
@@ -254,7 +254,7 @@ endif
ifdef BAF
$(LIB_BAF): $(addsuffix $(BOF),$(basename $(LIBRARY_LD_OBJS)))
@echo "Building source browser archive $@"
$(ECHO) "Building source browser archive $@"
@$(RM) $@
$(BAFCMD) $^
@@ -264,35 +264,32 @@ ifneq (,$(wildcard ../baseLIBOBJS))
$(LIBNAME): ../baseLIBOBJS
endif
# rule for lib (archive of object files) creation
$(LIBNAME): $(LIBRARY_OBJS)
$(LIBNAME): $(LIB_PREFIX)%$(LIB_SUFFIX):
$(DLL_LINK_LIBNAME): $(LIBRARY_OBJS) $(LIBRARY_RESS) $(SHRLIB_DEPLIBS)
$(LIBNAME) $(DLL_LINK_LIBNAME): $(LIB_PREFIX)%$(LIB_SUFFIX):
@$(RM) $@
$(ARCMD)
ifneq ($(strip $(RANLIB)),)
$(RANLIB) $@
endif # RANLIB
$(DLL_LINK_LIBNAME): $(LIBRARY_OBJS) $(LIBRARY_RESS) $(SHRLIB_DEPLIBS)
$(DLL_LINK_LIBNAME):$(SHRLIB_PREFIX)%.lib:
@$(RM) $@
$(LINK.shrlib)
$(MT_DLL_COMMAND)
$(SHRLIBNAME): $(LIBRARY_OBJS) $(LIBRARY_RESS) $(SHRLIB_DEPLIBS)
$(SHRLIBNAME):$(SHRLIB_PREFIX)%$(SHRLIB_SUFFIX):
@$(RM) $@
$(LINK.shrlib)
ifeq ($(SHRLIB_SUFFIX),.dll)
$(MT_DLL_COMMAND)
endif
$(LOADABLE_SHRLIBNAME): $(LIBRARY_OBJS) $(LIBRARY_RESS) $(SHRLIB_DEPLIBS)
$(LOADABLE_SHRLIBNAME):$(LOADABLE_SHRLIB_PREFIX)%$(LOADABLE_SHRLIB_SUFFIX):
@$(RM) $@
$(LINK.loadable_shrlib)
$(LINK.shrlib)
$(MT_DLL_COMMAND)
# C++ munching for VxWorks
%.nm : %$(EXE)
@@ -316,7 +313,7 @@ $(OBJLIB_MUNCHNAME):%.munch : %_ctdt$(OBJ) %$(OBJ)
$(MUNCH_CMD)
runtests: $(TESTSCRIPTS_$(BUILD_CLASS))
$(PERL) -e 'use Test::Harness; runtests @ARGV if @ARGV;' $^
-$(PERL) -MTest::Harness -e 'runtests @ARGV if @ARGV;' $^
# If there's a perl test script (.plt) available, use it
%.t: ../%.plt
@@ -324,51 +321,55 @@ runtests: $(TESTSCRIPTS_$(BUILD_CLASS))
@$(CP) $< $@
# Some versions of Test::Harness expect test programs in perl only.
# Generate a 1-line perl program to exec the real test binary.
# Uses the $0 runtime path to itself to find the executable.
# Generate a perl program to exec the real test binary.
%.t: %$(EXE)
@$(RM) $@
@echo '($$e=$$0)=~s/.t$$/$(EXE)/;exec "./$$e" or die "exec failed";'>$@
@$(PERL) $(TOOLS)/makeTestfile.pl $@ $<
# Ext, app and module rules
RULES_INCLUDE CONFIG_APP_INCLUDE: $(wildcard $(TOP)/configure/RELEASE*)
@$(RM) $@
$(PERL) $(TOOLS)/convertRelease.pl -h $(EPICS_HOST_ARCH) $@
#---------------------------------------------------------------
## Install rules for BIN_INSTALLS and LIB_INSTALLS
define BIN_INSTALLS_template
$$(INSTALL_BIN)/$$(notdir $(1)) : $(1)
$(ECHO) "Installing $$(<F)"
@$$(INSTALL) -d -m $$(BIN_PERMISSIONS) $$^ $$(INSTALL_BIN)
endef
$(foreach file, $(BIN_INSTALLS), $(eval $(call BIN_INSTALLS_template, $(file))))
binInstalls: $(BIN_INSTALLS)
@echo "Installing $(^F)"
@$(INSTALL) -d -m 555 $^ $(INSTALL_BIN)
define LIB_INSTALLS_template
$$(INSTALL_LIB)/$$(notdir $(1)) : $(1)
$(ECHO) "Installing $$(<F)"
@$$(INSTALL) -d -m $$(LIB_PERMISSIONS) $$^ $$(INSTALL_LIB)
endef
$(foreach file, $(LIB_INSTALLS), $(eval $(call LIB_INSTALLS_template, $(file))))
libInstalls: $(LIB_INSTALLS)
@echo "Installing $(^F)"
@$(INSTALL) -d -m 555 $^ $(INSTALL_LIB)
#---------------------------------------------------------------
$(INSTALL_BIN)/%: ../os/$(OS_CLASS)/%
@echo "Installing os-specific script $@"
@$(INSTALL_PRODUCT) -d -m 555 $< $(INSTALL_BIN)
$(ECHO) "Installing os-specific script $@"
@$(INSTALL_PRODUCT) -d -m $(BIN_PERMISSIONS) $< $(INSTALL_BIN)
$(INSTALL_BIN)/%: %
@echo "Installing binary $@"
@$(INSTALL_PRODUCT) -d -m 555 $< $(INSTALL_BIN)
$(ECHO) "Installing created file $@"
@$(INSTALL_PRODUCT) -d -m $(BIN_PERMISSIONS) $< $(INSTALL_BIN)
$(INSTALL_BIN)/%: ../%
@echo "Installing script $@"
@$(INSTALL_PRODUCT) -d -m 555 $< $(INSTALL_BIN)
$(ECHO) "Installing script $@"
@$(INSTALL_PRODUCT) -d -m $(BIN_PERMISSIONS) $< $(INSTALL_BIN)
$(INSTALL_LIB)/%.a: %.a
@echo "Installing library $@"
@$(INSTALL_LIBRARY) -d -m 644 $< $(INSTALL_LIB)
$(ECHO) "Installing library $@"
@$(INSTALL_LIBRARY) -d -m $(LIB_PERMISSIONS) $< $(INSTALL_LIB)
ifneq ($(strip $(RANLIB)),)
$(RANLIB) $@
endif # RANLIB
$(INSTALL_LIB)/%.lib: %.lib
@echo "Installing library $@"
@$(INSTALL_LIBRARY) -d -m 644 $< $(INSTALL_LIB)
$(ECHO) "Installing library $@"
@$(INSTALL_LIBRARY) -d -m $(LIB_PERMISSIONS) $< $(INSTALL_LIB)
$(INSTALL_SHRLIB)/lib%: lib%
@echo "Installing shared library $@"
@$(INSTALL_LIBRARY) -d -m 555 $< $(INSTALL_SHRLIB)
$(ECHO) "Installing shared library $@"
@$(INSTALL_LIBRARY) -d -m $(LIB_PERMISSIONS) $< $(INSTALL_SHRLIB)
ifneq (,$(strip $(SHRLIB_VERSION)))
@$(RM) $(subst .$(SHRLIB_VERSION),,$@)
ln -s $< $(subst .$(SHRLIB_VERSION),,$@)
@@ -377,20 +378,20 @@ endif # SHRLIB_VERSION
ifneq ($(INSTALL_TCLLIB),$(INSTALL_BIN))
$(INSTALL_TCLLIB)/%: %
@echo "Installing Tcl library $@"
@$(INSTALL) -d -m 555 $< $(INSTALL_TCLLIB)
$(ECHO) "Installing Tcl library $@"
@$(INSTALL) -d -m $(BIN_PERMISSIONS) $< $(INSTALL_TCLLIB)
$(INSTALL_TCLLIB)/%: ../%
@echo "Installing Tcl library $@"
@$(INSTALL) -d -m 555 $< $(INSTALL_TCLLIB)
$(ECHO) "Installing Tcl library $@"
@$(INSTALL) -d -m $(BIN_PERMISSIONS) $< $(INSTALL_TCLLIB)
endif
$(INSTALL_TCLLIB)/$(TCLINDEX): $(INSTALL_TCLLIBS)
@echo "Updating $@"
@echo eval auto_mkindex $(INSTALL_TCLLIB) "$(TCLLIBNAME)" | tclsh
$(ECHO) "Updating $@"
$(ECHO) eval auto_mkindex $(INSTALL_TCLLIB) "$(TCLLIBNAME)" | tclsh
$(INSTALL_LOADABLE_SHRLIBS): $(INSTALL_SHRLIB)/%: %
@echo "Installing loadable shared library $@"
$(ECHO) "Installing loadable shared library $@"
@$(INSTALL_LIBRARY) -d -m 555 $< $(INSTALL_SHRLIB)
ifneq (,$(strip $(LOADABLE_SHRLIB_VERSION)))
@$(RM) $(subst .$(LOADABLE_SHRLIB_VERSION),,$@)
@@ -398,54 +399,56 @@ ifneq (,$(strip $(LOADABLE_SHRLIB_VERSION)))
endif # LOADABLE_SHRLIB_VERSION
$(INSTALL_CONFIG)/%: %
@echo "Installing config file $@"
@$(INSTALL) -d -m 644 $< $(@D)
$(ECHO) "Installing config file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_CONFIG)/%: ../%
@echo "Installing config file $@"
@$(INSTALL) -d -m 644 $< $(@D)
$(ECHO) "Installing config file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_INCLUDE)/% : $(COMMON_DIR)/%
@echo "Installing generated generic include file $@"
@$(INSTALL) -d -m 644 $< $(@D)
$(ECHO) "Installing generated generic include file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_INCLUDE)/% : %
@echo "Installing generic include file $@"
@$(INSTALL) -d -m 644 $< $(@D)
$(ECHO) "Installing generic include file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_INCLUDE)/os/$(OS_CLASS)/% : %
@echo "Installing os dependent include file $@"
@$(INSTALL) -d -m 644 $< $(@D)
$(ECHO) "Installing os dependent include file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_DOC)/%: %
@echo "Installing doc $@"
@$(INSTALL) -d -m 644 $< $(INSTALL_DOC)
$(ECHO) "Installing doc $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(INSTALL_DOC)
$(INSTALL_DOC)/%: ../%
@echo "Installing doc $@"
@$(INSTALL) -d -m 644 $< $(INSTALL_DOC)
$(ECHO) "Installing doc $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(INSTALL_DOC)
$(INSTALL_HTML)/$(HTMLS_DIR)/%: %
@echo "Installing html $@"
@$(INSTALL) -d -m 644 $< $(@D)
$(ECHO) "Installing html $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_HTML)/$(HTMLS_DIR)/%: ../%
@echo "Installing html $@"
@$(INSTALL) -d -m 644 $< $(@D)
$(ECHO) "Installing html $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_TEMPLATES_SUBDIR)/%: ../%
@echo "Installing $@"
@$(INSTALL) -d -m 644 $< $(@D)
$(ECHO) "Installing $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_TEMPLATES_SUBDIR)/%: %
@echo "Installing $@"
@$(INSTALL) -d -m 644 $< $(@D)
$(ECHO) "Installing $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
-include $(CONFIG)/RULES_EXPAND
.PRECIOUS: %.i %.o %.c %.nm %.cpp %.cc
.PRECIOUS: $(COMMON_INC)
.PHONY: all inc build install clean rebuild buildInstall binInstalls libInstalls
.PHONY: runtests
.PHONY: all inc build install clean rebuild buildInstall
.PHONY: runtests checkRelease warnRelease
endif # BASE_RULES_BUILD
# EOF RULES_BUILD

View File

@@ -14,9 +14,10 @@
ARCHS += $(BUILD_ARCHS)
ACTIONS += inc build install buildInstall clean realclean archclean runtests
dirPart = $(word 1, $(subst $(DIVIDER), ,$@))
actionArchPart = $(join $(word 2, $(subst $(DIVIDER), ,$@)), \
$(addprefix $(DIVIDER),$(word 3, $(subst $(DIVIDER), ,$@))))
dirPart = $(join $(dir $@), $(word 1, $(subst $(DIVIDER), ,$(notdir $@))))
actionArchPart = $(join $(word 2, $(subst $(DIVIDER), ,$(notdir $@))), \
$(addprefix $(DIVIDER),$(word 3, $(subst $(DIVIDER), ,$(notdir $@)))))
dirActionArchTargets = $(foreach dir, $(DIRS), \
$(foreach action, $(ACTIONS),\
@@ -36,6 +37,30 @@ all : install
rebuild : clean install
# Create directory dependancies lines for GNU make -j option
# Only works with GNU make 3.81 or later (uses eval function)
define DEP_template1
$(1): $$($(1)_DEPEND_DIRS)
endef
$(foreach dir, $(DIRS),$(eval $(call DEP_template1,$(dir))))
define DEP_template2
$(1)$$(DIVIDER)$(2) : $$(foreach ddir, $$($(1)_DEPEND_DIRS),$$(addsuffix $$(DIVIDER)$(2),$$(ddir)))
endef
$(foreach action, $(ACTIONS), $(foreach dir, $(DIRS),$(eval $(call DEP_template2,$(dir),$(action)))))
define DEP_template3
$(1)$$(DIVIDER)$(2) : $$(foreach ddir, $$($(1)_DEPEND_DIRS),$$(addsuffix $$(DIVIDER)$(2),$$(ddir)))
endef
$(foreach arch, $(ARCHS), $(foreach dir, $(DIRS),$(eval $(call DEP_template3,$(dir),$(arch)))))
define DEP_template4
$(1)$$(DIVIDER)$(2)$$(DIVIDER)$(3) : $$(foreach ddir, $$($(1)_DEPEND_DIRS),$$(addsuffix $$(DIVIDER)$(2)$$(DIVIDER)$(3),$$(ddir)))
endef
$(foreach arch, $(ARCHS), $(foreach action, $(ACTIONS), $(foreach dir, $(DIRS), \
$(eval $(call DEP_template4,$(dir),$(action),$(arch))))))
$(DIRS) $(dirActionTargets) $(dirArchTargets) $(dirActionArchTargets) :
$(MAKE) -C $(dirPart) $(actionArchPart)

23
configure/RULES_EXPAND Normal file
View File

@@ -0,0 +1,23 @@
# <top>/configure/RULES_EXPAND
ifeq ($(findstring Host,$(VALID_BUILDS)),Host)
# Default settings
EXPAND_TOOL ?= $(PERL) $(TOOLS)/expandVars.pl
EXPANDFLAGS += -t $(INSTALL_LOCATION) -a $(T_A)
EXPANDFLAGS += $(addprefix -D ,$(EXPAND_VARS))
EXPANDED = $(EXPAND:%@=%)
buildInstall: $(EXPANDED)
$(EXPANDED): %: ../%@
$(ECHO) "Expanding $< to $@"
@$(RM) $@
@$(EXPAND_TOOL) $(EXPANDFLAGS) $($@_EXPANDFLAGS) $< $@
clean::
@$(RM) $(EXPANDED)
endif

73
configure/RULES_FILE_TYPE Normal file
View File

@@ -0,0 +1,73 @@
#*************************************************************************
# Copyright (c) 2006 UChicago Argonne LLC, as Operator of Argonne
# National Laboratory.
# Copyright (c) 2002 The Regents of the University of California, as
# Operator of Los Alamos National Laboratory.
# EPICS BASE is distributed subject to a Software License Agreement found
# in the file LICENSE that is included with this distribution.
#*************************************************************************
# $Id$
#
#---------------------------------------------------------------
# Include <top>/configure/RULES_BUILD definitions from tops defined in RELEASE* files
#
RELEASE_RULES_BUILDS = $(foreach top, $(RELEASE_TOPS), $(wildcard $($(top))/configure/RULES_BUILD))
ifneq ($(RELEASE_RULES_BUILDS),)
include $(RELEASE_RULES_BUILDS)
endif
#---------------------------------------------------------------
# Include <top>/cfg/RULES* definitions from tops defined in RELEASE* files
#
RELEASE_CFG_RULES = $(foreach top, $(RELEASE_TOPS), $(wildcard $($(top))/cfg/RULES*))
ifneq ($(RELEASE_CFG_RULES),)
include $(RELEASE_CFG_RULES)
endif
#---------------------------------------------------------------
# If this is not BASE then include TOP/configure/RULES_BUILD definitions
#
ifeq ($(wildcard $(TOP)/configure/CONFIG_BASE_VERSION),)
TOP_RULES_BUILDS = $(wildcard $(TOP)/configure/RULES_BUILD)
ifneq ($(TOP_RULES_BUILDS),)
include $(TOP_RULES_BUILDS)
endif
endif
#---------------------------------------------
# Include existing and new $(INSTALL_CFG)/* definitions
#
TOP_CFG_FILES = $(sort $(wildcard $(INSTALL_CFG)/RULES*) \
$(wildcard $(INSTALL_CFG)/CONFIG*) \
$(addprefix $(INSTALL_CFG)/,$(CFG)))
ifneq ($(TOP_CFG_FILES),)
include $(TOP_CFG_FILES)
endif
#---------------------------------------------------------------
define FILE_TYPE_template
$(1) += $$(if $$(strip $$($(1)_$$(OS_CLASS))),$$(subst -nil-,,$$($(1)_$$(OS_CLASS))), $$($(1)_DEFAULT))
INSTALLS_$(1) = $$($(1):%=$$(INSTALL_$(1))/%)
$$(INSTALL_$(1))/%: ../%
$(ECHO) "Installing $(1) file $$@"
@$$(INSTALL) -d -m $$(INSTALL_PERMISSIONS) $$< $$(dir $$@)
$$(INSTALL_$(1))/%: %
$(ECHO) "Installing $(1) file $$@"
@$$(INSTALL) -d -m $$(INSTALL_PERMISSIONS) $$< $$(dir $$@)
buildInstall : $$(INSTALLS_$(1))
endef
$(foreach type, $(FILE_TYPE),$(eval $(call FILE_TYPE_template,$(strip $(type)))))
#---------------------------------------------
clean::
@$(RM) $(foreach type, $(FILE_TYPE), $($(type)))

View File

@@ -53,7 +53,6 @@ COMMON_JAVAINC += $(addprefix $(COMMON_DIR)/,$(JAVAINC))
JAVACFLAGS += $(USR_JAVACFLAGS)
CLASSES += $(subst .java,.class,$(JAVA))
DEPJAVA += $(subst .class,.java,$(CLASSES))
INSTALL_CLASSES = $(addprefix $(INSTALL_JAVA)/,$(CLASSES))
TESTCLASSES += $(subst .java,.class,$(notdir $(TESTJAVA)))
@@ -63,7 +62,7 @@ DEPTESTJAVA += $(subst .class,.java,$(TESTCLASSES))
#-------------------------------------------------------
# Java jar file
INSTALL_JAR =$(addprefix $(INSTALL_JAVA)/,$(JAR) $(JAR_INPUT))
INSTALL_JAR =$(addprefix $(INSTALL_JAVA)/,$(JAR))
JARMANIFEST += $(firstword $(MANIFEST) $(JAR_MANIFEST))
JARDEPFILES += $(addprefix $(INSTALL_JAVA)/,$(subst .java,.class,$(JAVA)) $(JAR_INPUT))
JARINPUT += $(foreach inp,$(JAR_INPUT),-C $(INSTALL_JAVA) $(subst .java,.class,$(inp)))
@@ -115,41 +114,41 @@ $(JAVA_DIRECTORY_TARGETS):
endif
$(COMMON_JAVAINC):$(JAVAINC_CLASSFILES)
@echo Creating header files $(COMMON_JAVAINC)
$(ECHO) Creating header files $(COMMON_JAVAINC)
@$(RM) $@
$(JAVAHCMD) $(JAVAINC_CLASSNAMES)
$(COMMON_TESTCLASSES): $(addprefix ../,$(DEPTESTJAVA))
@echo Creating test java class files $(COMMON_TESTCLASSES)
$(ECHO) Creating test java class files $(COMMON_TESTCLASSES)
@$(RM) $@
$(JAVACCMD) -d $(COMMON_DIR) $^
$(INSTALL_CLASSES): $(addprefix ../,$(DEPJAVA))
@echo Creating java class files
$(INSTALL_CLASSES): $(addprefix ../,$(JAVA))
$(ECHO) Creating java class files
@$(RM) $@
$(JAVACCMD) -d $(INSTALL_JAVA) $^
$(INSTALL_JAVADOC): $(addprefix ../,$(JAVA))
@echo Creating java doc files
$(ECHO) Creating java doc files
@$(RM) $@
$(JAVADOCCMD) -d $(addprefix $(INSTALL_HTML)/,$(JAVADOC)) $^
$(COMMON_DIR)/%.jar: $(JARDEPFILES)
@echo Creating java jar file $@
$(ECHO) Creating java jar file $@
@$(RM) $@
$(JARCMD)
$(INSTALL_JAVA)/%.jar: $(COMMON_DIR)/%.jar
@echo "Installing java jar file $@"
@$(INSTALL) -d -m 644 $< $(@D)
$(ECHO) "Installing java jar file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_JAVA)/%.jar: %.jar
@echo "Installing java jar file $@"
@$(INSTALL) -d -m 644 $< $(@D)
$(ECHO) "Installing java jar file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(addprefix $(INSTALL_JAVA)/, $(JARINPUT)): $(INSTALL_JAVA)/%: ../%
@echo "Installing jar input file $@"
@$(INSTALL) -d -m 644 $< $(@D)
$(ECHO) "Installing jar input file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
.PHONY: all install buildInstall rebuild clean build inc

52
configure/RULES_OCTAVE Normal file
View File

@@ -0,0 +1,52 @@
#*************************************************************************
# Copyright (c) 2002 The University of Chicago, as Operator of Argonne
# National Laboratory.
# Copyright (c) 2002 The Regents of the University of California, as
# Operator of Los Alamos National Laboratory.
# EPICS BASE Versions 3.13.7
# and higher are distributed subject to a Software License Agreement found
# in file LICENSE that is included with this distribution.
#*************************************************************************
# $Id$
#
#-------------------------------------------------------
# Octave definitions and rules
ifeq ($(findstring Host,$(VALID_BUILDS)),Host)
FILE_TYPE += OCTAVE
INSTALL_OCTAVE = $(INSTALL_LOCATION_LIB)/octave
DIRECTORY_TARGETS += $(INSTALL_OCTAVE)
ifdef T_A
MKOCTFILE_FLAGS += --mex --verbose -DOCTAVE
MKOCTFILE_FLAGS += $(RELEASE_INCLUDES) $(addprefix -L,$(SHRLIB_SEARCH_DIRS))
vpath %.mex $(USR_VPATH) $(ALL_SRC_DIRS)
vpath %.m $(USR_VPATH) $(ALL_SRC_DIRS)
define OCTAVES_template
$(1) : $$($(1)_SRCS)
endef
$(foreach file, $(OCTAVES),$(eval $(call OCTAVES_template,$(strip $(file)))))
#This clean works from O.* dirs.
clean::
@$(RM) *.mex *.m
.PRECIOUS: *.m *.mex
%.mex:
mkoctfile $(MKOCTFILE_FLAGS) $($*_LIBS:%=-l%) $($*_SRCS)
endif
endif
# Makefile usage:
# OCTAVES += abc.mex def.mex
# abc_SRCS = a1.c a2.c
# abc_LIBS = ca Com
# def_SRCS = a3.c a4.c
# def_LIBS = ca Com

111
configure/RULES_TARGET Executable file
View File

@@ -0,0 +1,111 @@
#*************************************************************************
# Copyright (c) 2002 The University of Chicago, as Operator of Argonne
# National Laboratory.
# Copyright (c) 2002 The Regents of the University of California, as
# Operator of Los Alamos National Laboratory.
# EPICS BASE Versions 3.13.7
# and higher are distributed subject to a Software License Agreement found
# in file LICENSE that is included with this distribution.
#*************************************************************************
#
# $Id$
#
# RULES_TARGET
#
# This file is to be maintained by the community.
#
#-----------------------------------------------------------------------
define TARGET_template
$(1)_$(2) += $$(if $$(strip $$($(1)_$(2)_$$(OS_CLASS))), \
$$(subst -nil-,,$$($(1)_$(2)_$$(OS_CLASS))), \
$$($(1)_$(2)_DEFAULT))
endef
$(foreach type, SRCS RCS OBJS LDFLAGS OBJLIBS LDOBJS SYS_LIBS , \
$(foreach target, $(PROD) $(TESTPROD) $(LIBRARY) $(LOADABLE_LIBRARY) , \
$(eval $(call TARGET_template,$(strip $(target)),$(type)))))
#-----------------------------------------------------------------------
# This define block requires GNU make 3.81
define PROD_template
ifeq ($$(strip $$($(1)_OBJS) $$($(1)_SRCS) $$(PRODUCT_OBJS)),)
$(1)_OBJS = $(1)$$(OBJ)
endif
endef
$(foreach target, $(PROD) $(TESTPROD), \
$(eval $(call PROD_template,$(strip $(target)))))
#-----------------------------------------------------------------------
define TARGET2_template
$(1)_LDLIBS += $$($(1)_LIBS)
$(1)_LDLIBS += $$(if $$(strip $$($(1)_LIBS_$$(OS_CLASS))), \
$$(subst -nil-,,$$($(1)_LIBS_$$(OS_CLASS))), \
$$($(1)_LIBS_DEFAULT))
$(1)_RESS = $$(if $$(RES),$$(addsuffix $$(RES),$$(basename $$($(1)_RCS))),)
$(1)_OBJSNAME = $$(addsuffix $$(OBJ),$$(basename $$($(1)_OBJS) $$($(1)_SRCS) ))
$(1)_DEPLIBS = $$(foreach lib, $$($(1)_LDLIBS),\
$$(firstword $$(wildcard $$(addsuffix /$$(LIB_PREFIX)$$(lib).*,\
$$($$(lib)_DIR) $$(SHRLIB_SEARCH_DIRS)))\
$$(addsuffix /$$(LIB_PREFIX)$$(lib)$$(LIB_SUFFIX),\
$$(firstword $$($$(lib)_DIR) $$(SHRLIB_SEARCH_DIRS)))))
endef
$(foreach target, $(PROD) $(TESTPROD) $(LIBRARY) $(LOADABLE_LIBRARY) , \
$(eval $(call TARGET2_template,$(strip $(target)))))
#-----------------------------------------------------------------------
define PROD2_template
$(1)$$(EXE): $$($(1)_OBJSNAME) $$($(1)_RESS) $$($(1)_DEPLIBS)
endef
$(foreach target, $(PROD) $(TESTPROD), \
$(eval $(call PROD2_template,$(strip $(target)))))
#-----------------------------------------------------------------------
define LIBRARY_template
BUILD_LIBRARY += $$(if $$(strip $$($(1)_OBJSNAME) $$(LIBRARY_OBJS)),$(1),)
$(1)_DLL_DEPLIBS=$$(foreach lib, $$($(1)_DLL_LIBS),\
$$(firstword $$(wildcard $$(addsuffix /$$(LIB_PREFIX)$$(lib).*,\
$$($$(lib)_DIR) $$(SHRLIB_SEARCH_DIRS)))\
$$(addsuffix /$$(LIB_PREFIX)$$(lib)$$(LIB_SUFFIX),\
$$(firstword $$($$(lib)_DIR) $$(SHRLIB_SEARCH_DIRS)))))
$$(LIB_PREFIX)$(1)$$(LIB_SUFFIX):$$($(1)_OBJSNAME) $$($(1)_RESS)
$$(LIB_PREFIX)$(1)$$(LIB_SUFFIX):$$($(1)_DEPLIBS)
$$(SHRLIB_PREFIX)$(1)$$(SHRLIB_SUFFIX):$$($(1)_OBJSNAME) $$($(1)_RESS)
$$(SHRLIB_PREFIX)$(1)$$(SHRLIB_SUFFIX):$$($(1)_DEPLIBS)
$$(SHRLIB_PREFIX)$(1)$$(SHRLIB_SUFFIX):$$($(1)_DLL_DEPLIBS)
endef
$(foreach target, $(LIBRARY), \
$(eval $(call LIBRARY_template,$(strip $(target)))))
#-----------------------------------------------------------------------
define LOADABLE_LIBRARY_template
LOADABLE_BUILD_LIBRARY += $$(if $$(strip $$($(1)_OBJSNAME) $$(LIBRARY_OBJS)),$(1),)
$(1)_DLL_DEPLIBS=$$(foreach lib, $$($(1)_DLL_LIBS),\
$$(firstword $$(wildcard $$(addsuffix /$$(LIB_PREFIX)$$(lib).\*,\
$$($$(lib)_DIR) $$(SHRLIB_SEARCH_DIRS)))\
$$(addsuffix /$$(LIB_PREFIX)$$(lib)$$(LIB_SUFFIX),\
$$(firstword $$($$(lib)_DIR) $$(SHRLIB_SEARCH_DIRS)))))
$$(LOADABLE_SHRLIB_PREFIX)$(1)$$(LOADABLE_SHRLIB_SUFFIX):$$($(1)_OBJSNAME) $$($(1)_RESS)
$$(LOADABLE_SHRLIB_PREFIX)$(1)$$(LOADABLE_SHRLIB_SUFFIX):$$($(1)_DEPLIBS)
$$(LOADABLE_SHRLIB_PREFIX)$(1)$$(LOADABLE_SHRLIB_SUFFIX):$$($(1)_DLL_DEPLIBS)
endef
$(foreach target, $(LOADABLE_LIBRARY), \
$(eval $(call LOADABLE_LIBRARY_template,$(strip $(target)))))

View File

@@ -16,6 +16,7 @@ include $(CONFIG)/RULES_DIRS
UNINSTALL_DIRS += $(INSTALL_DBD) $(INSTALL_INCLUDE) $(INSTALL_DOC)\
$(INSTALL_HTML) $(INSTALL_JAVA) $(INSTALL_TEMPLATES) \
$(INSTALL_DB)
UNINSTALL_DIRS += $(DIRECTORY_TARGETS)
uninstallArchTargets = $(foreach arch,$(BUILD_ARCHS), uninstall$(DIVIDER)$(arch))
archPart = $(word 2, $(subst $(DIVIDER), ,$@))
@@ -30,13 +31,15 @@ endif
ifeq ($(wildcard $(INSTALL_LOCATION_LIB)/*),)
@$(RMDIR) $(INSTALL_LOCATION_LIB)
endif
@echo
$(ECHO)
# The echo above stops a "nothing to be done for cleandirs" message
distclean: realclean realuninstall
CVSCLEAN=$(firstword $(wildcard $(TOOLS)/cvsclean.pl $(TOP)/src/tools/cvsclean.pl))
cvsclean:
@$(PERL) $(TOOLS)/cvsclean.pl
@$(PERL) $(CVSCLEAN)
realuninstall:
@$(RMDIR) $(INSTALL_LOCATION_BIN) $(INSTALL_LOCATION_LIB)
@@ -49,32 +52,32 @@ uninstallDirs:
@$(RMDIR) $(UNINSTALL_DIRS)
help:
@echo "Usage: gnumake [options] [target] ..."
@echo "Targets supported by all Makefiles:"
@echo " install - Builds and installs all targets (default rule)"
@echo " all - Same as install"
@echo " buildInstall - Same as install"
@echo " clean - Removes the O.<arch> dirs created by running make"
@echo " In O.<arch> dir, clean removes build created files"
@echo " realclean - Removes ALL O.<arch> dirs"
@echo " Cannot be used within an O.<arch> dir"
@echo " rebuild - Same as clean install"
@echo " inc - Installs header files"
@echo " build - Builds all targets"
@echo " archclean - Removes O.<arch> dirs but not O.Common dir"
@echo "\"Partial\" build targets supported by Makefiles:"
@echo " inc.<arch> - Installs <arch> only header files."
@echo " install.<arch> - Builds and installs <arch> only."
@echo " clean.<arch> - Cleans <arch> binaries in O.<arch> dirs only."
@echo " build.<arch> - Builds <arch> only."
@echo "Targets supported by top level Makefile:"
@echo " uninstall - Cleans directories created by the install."
@echo " realuninstall - Removes ALL install dirs"
@echo " distclean - Same as realclean realuninstall."
@echo " cvsclean - Removes cvs .#* files in all dirs of directory tree"
@echo " help - Prints this list of valid make targets "
@echo "Indiv. object targets are supported by O.<arch> level Makefile .e.g"
@echo " xxxRecord.o"
$(ECHO) "Usage: gnumake [options] [target] ..."
$(ECHO) "Targets supported by all Makefiles:"
$(ECHO) " install - Builds and installs all targets (default rule)"
$(ECHO) " all - Same as install"
$(ECHO) " buildInstall - Same as install"
$(ECHO) " clean - Removes the O.<arch> dirs created by running make"
$(ECHO) " In O.<arch> dir, clean removes build created files"
$(ECHO) " realclean - Removes ALL O.<arch> dirs"
$(ECHO) " Cannot be used within an O.<arch> dir"
$(ECHO) " rebuild - Same as clean install"
$(ECHO) " inc - Installs header files"
$(ECHO) " build - Builds all targets"
$(ECHO) " archclean - Removes O.<arch> dirs but not O.Common dir"
$(ECHO) "\"Partial\" build targets supported by Makefiles:"
$(ECHO) " inc.<arch> - Installs <arch> only header files."
$(ECHO) " install.<arch> - Builds and installs <arch> only."
$(ECHO) " clean.<arch> - Cleans <arch> binaries in O.<arch> dirs only."
$(ECHO) " build.<arch> - Builds <arch> only."
$(ECHO) "Targets supported by top level Makefile:"
$(ECHO) " uninstall - Cleans directories created by the install."
$(ECHO) " realuninstall - Removes ALL install dirs"
$(ECHO) " distclean - Same as realclean realuninstall."
$(ECHO) " cvsclean - Removes cvs .#* files in all dirs of directory tree"
$(ECHO) " help - Prints this list of valid make targets "
$(ECHO) "Indiv. object targets are supported by O.<arch> level Makefile .e.g"
$(ECHO) " xxxRecord.o"
.PHONY : $(uninstallArchTargets)
.PHONY : uninstall help cleandirs distclean uninstallDirs realuninstall

View File

@@ -63,9 +63,9 @@ a_file_CPPFLAGS_WIN32 = -DVERSION='WIN32 port'
# again: if INC_$(OS_CLASS) is defined, it is added to INC,
# otherwise INC_DEFAULT (if defined) is added:
#
INC_DEFAULT = for_all_but_WIN32_or_hp700.h
INC_DEFAULT = for_all_but_WIN32_or_vxWorks.h
INC_WIN32 = only_for_WIN32.h
INC_hpux = -nil- # hpux uses no special include
INC_vxWorks = -nil- # vxWorks uses no special include
INC = file.h
# --------------------------------------------------------------------

View File

@@ -18,11 +18,16 @@
-include $(CONFIG)/os/CONFIG.Common.UnixCommon
GNU_TARGET_INCLUDE_DIR =
unexport GCC_EXEC_PREFIX
#--------------------------------------------------
# Get RTEMS_BASE definition
-include $(CONFIG)/os/CONFIG_SITE.Common.RTEMS
ifneq ($(CONFIG),$(TOP)/configure)
-include $(TOP)/configure/CONFIG_SITE.Common.RTEMS
endif
#-------------------------------------------------------
# Pick up the RTEMS tool/path definitions from the RTEMS BSP directory.
include $(RTEMS_BASE)/$(RTEMS_TARGET_CPU)-rtems$(RTEMS_VERSION)/$(subst RTEMS-,,$(T_A))/Makefile.inc
@@ -31,13 +36,13 @@ include $(CONFIG.CC)
#-------------------------------------------------------
# RTEMS cross-development tools
CC = $(RTEMS_BASE)/bin/$(CC_FOR_TARGET) $(GCCSPECS) -fasm
CCC = $(RTEMS_BASE)/bin/$(CXX)
CPP = $(RTEMS_BASE)/bin/$(CC_FOR_TARGET) -x c -E
AR = $(RTEMS_BASE)/bin/$(AR_FOR_TARGET)
LD = $(RTEMS_BASE)/bin/$(LD_FOR_TARGET) -r
CC = $(RTEMS_TOOLS)/bin/$(CC_FOR_TARGET) $(GCCSPECS) -fasm
CCC = $(RTEMS_TOOLS)/bin/$(CXX)
CPP = $(RTEMS_TOOLS)/bin/$(CC_FOR_TARGET) -x c -E
AR = $(RTEMS_TOOLS)/bin/$(AR_FOR_TARGET)
LD = $(RTEMS_TOOLS)/bin/$(LD_FOR_TARGET) -r
RANLIB := $(RTEMS_BASE)/bin/$(RANLIB)
RANLIB := $(RTEMS_TOOLS)/bin/$(RANLIB)
#-------------------------------------------------------
# Build types
@@ -46,11 +51,11 @@ VALID_BUILDS = Ioc
#--------------------------------------------------
# The RTEMS Makefiles redefine several macros, so we have to go
# through the following contortions to get the EPICS flags back.
CFLAGS = $(CONFORM_CFLAGS) $(CROSS_CFLAGS) $(OPT_CFLAGS) $(DEBUG_CFLAGS)\
CFLAGS = $(CROSS_CFLAGS) $(OPT_CFLAGS) $(DEBUG_CFLAGS)\
$(WARN_CFLAGS) $(TARGET_CFLAGS) $(USR_CFLAGS) $(ARCH_DEP_CFLAGS)\
$(CODE_CFLAGS) $(STATIC_CFLAGS) $(OP_SYS_CFLAGS) $(LIBRARY_SRC_CFLAGS)
CXXFLAGS = $(CONFORM_CXXFLAGS) $(CROSS_CXXFLAGS) $(OPT_CXXFLAGS)\
CXXFLAGS = $(CROSS_CXXFLAGS) $(OPT_CXXFLAGS)\
$(DEBUG_CXXFLAGS) $(WARN_CXXFLAGS) $(TARGET_CXXFLAGS) $(USR_CXXFLAGS)\
$(ARCH_DEP_CXXFLAGS) $(CODE_CXXFLAGS) $(STATIC_CXXCFLAGS) $(OP_SYS_CXXFLAGS)\
$(LIBRARY_SRC_CFLAGS)
@@ -59,10 +64,10 @@ LDFLAGS = $(OPT_LDFLAGS) $(TARGET_LDFLAGS) $(USR_LDFLAGS) \
$(ARCH_DEP_LDFLAGS) $(DEBUG_LDFLAGS) $(OP_SYS_LDFLAGS) $(CROSS_LDFLAGS)\
$(RUNTIME_LDFLAGS) $(CODE_LDFLAGS)
LDLIBS = $(STATIC_LDLIBS)\
LDLIBS = \
$(POSIX_LDLIBS) $(ARCH_DEP_LDLIBS) $(DEBUG_LDLIBS) $(OP_SYS_LDLIBS)
CPPFLAGS += $(CONFORM_CPPFLAGS) $(CROSS_CPPFLAGS) $(POSIX_CPPFLAGS)\
CPPFLAGS += $(CROSS_CPPFLAGS) $(POSIX_CPPFLAGS)\
$(BASE_CPPFLAGS) $(TARGET_CPPFLAGS) $(USR_CPPFLAGS) $(ARCH_DEP_CPPFLAGS)\
$(OP_SYS_CPPFLAGS) $(OP_SYS_INCLUDE_CPPFLAGS) $(CODE_CPPFLAGS)
@@ -82,7 +87,7 @@ OS_CLASS = RTEMS
#--------------------------------------------------
# Operating system flags
OP_SYS_LDLIBS += -lrtemsCom -lrtemscpu -lCom -lrtemsNfs -lm
OP_SYS_LDLIBS += -lrtemsCom -lc -lrtemscpu -lCom -lnfs -lm
OP_SYS_LDFLAGS += $(CPU_CFLAGS) -u Init \
$(PROJECT_RELEASE)/lib/no-dpmem.rel \
$(PROJECT_RELEASE)/lib/no-mp.rel \
@@ -98,9 +103,8 @@ CODE_CFLAGS =
CODE_CXXFLAGS =
#--------------------------------------------------
# RTEMS uses the inline keyword so -pedantic causes too many problems.
CONFORM_CFLAGS_STRICT = -ansi
CONFORM_CXXFLAGS_STRICT = -ansi
# Override the usual RTEMS verbosity from ar
ARFLAGS = rc
#--------------------------------------------------
# Command-line input support
@@ -109,4 +113,4 @@ LDLIBS_READLINE = -lreadline -lncurses
#--------------------------------------------------
# Allow site overrides
-include $(CONFIG)/os/CONFIG_SITE.Common.RTEMS
-include $(CONFIG)/os/CONFIG_SITE.$(EPICS_HOST_ARCH).RTEMS

View File

@@ -0,0 +1,38 @@
#
# CONFIG.Common.RTEMS-beatnik
# A migration from Eric Norum's CONFIG.Common.RTEMS-mvme5500
# Author: Dayle Kotturi
# SLAC
# dayle@slac.stanford.edu
#
# All RTEMS targets use the same Makefile fragment
#
override EXE=.elf
RTEMS_TARGET_CPU = powerpc
GNU_TARGET=powerpc-rtems
ARCH_DEP_CFLAGS += -DMY_DO_BOOTP=NULL
ARCH_DEP_CFLAGS += -DHAVE_MOTLOAD
MUNCH_SUFFIX = .boot
MUNCHNAME = $(PRODNAME:%$(EXE)=%$(MUNCH_SUFFIX))
define MUNCH_CMD
$(RTEMS_TOOLS)/bin/$(OBJCOPY_FOR_TARGET) -O binary $< $@
endef
CROSS_COMPILER_TARGET_ARCHS=RTEMS-beatnik
include $(CONFIG)/os/CONFIG.Common.RTEMS
RTEMSSYMS=$(PRODNAME:%$(EXE)=%.sym)
RTEMSIMGS=$(PRODNAME:%$(EXE)=%.bin)
INSTALL_RTEMSSYMS=$(RTEMSSYMS:%=$(INSTALL_BIN)/%)
INSTALL_RTEMSIMGS=$(RTEMSIMGS:%=$(INSTALL_BIN)/%)
OP_SYS_LDLIBS += -lbspExt
%.sym: %$(EXE)
$(XSYMS) $^ $@
%.bin: %$(EXE)
$(OBJCOPY) -Obinary $^ $@
#PRODTARGETS+=$(INSTALL_RTEMSSYMS) $(INSTALL_RTEMSIMGS)

View File

@@ -13,9 +13,9 @@ ARCH_DEP_CFLAGS += -DHAVE_PPCBUG
MUNCH_SUFFIX = .boot
MUNCHNAME = $(PRODNAME:%$(EXE)=%$(MUNCH_SUFFIX))
define MUNCH_CMD
$(RTEMS_BASE)/bin/$(OBJCOPY_FOR_TARGET) -O binary -R .comment -S $< rtems
$(RTEMS_TOOLS)/bin/$(OBJCOPY_FOR_TARGET) -O binary -R .comment -S $< rtems
gzip -f9 rtems
$(RTEMS_BASE)/bin/$(LD_FOR_TARGET) -o $@ \
$(RTEMS_TOOLS)/bin/$(LD_FOR_TARGET) -o $@ \
$(PROJECT_RELEASE)/lib/bootloader.o \
--just-symbols=$< \
-b binary rtems.gz \
@@ -24,4 +24,6 @@ define MUNCH_CMD
rm -f rtems.gz
endef
OP_SYS_LDLIBS += -lbspExt
include $(CONFIG)/os/CONFIG.Common.RTEMS

View File

@@ -0,0 +1,25 @@
#
# Author: Matt Rippa
#
RTEMS_TARGET_CPU = powerpc
ARCH_DEP_CFLAGS += -DMY_DO_BOOTP=NULL
ARCH_DEP_CFLAGS += -DHAVE_PPCBUG
ARCH_DEP_CFLAGS += -DNVRAM_INDIRECT
MUNCH_SUFFIX = .boot
MUNCHNAME = $(PRODNAME:%$(EXE)=%$(MUNCH_SUFFIX))
define MUNCH_CMD
$(RTEMS_TOOLS)/bin/$(OBJCOPY_FOR_TARGET) -O binary -R .comment -S $< rtems
gzip -f9 rtems
$(RTEMS_TOOLS)/bin/$(LD_FOR_TARGET) -o $@ \
$(PROJECT_RELEASE)/lib/bootloader.o \
--just-symbols=$< \
-b binary rtems.gz \
-T $(PROJECT_RELEASE)/lib/ppcboot.lds \
-Map $<.map
rm -f rtems.gz
endef
OP_SYS_LDLIBS += -lbspExt
include $(CONFIG)/os/CONFIG.Common.RTEMS

View File

@@ -0,0 +1,32 @@
#
# All RTEMS targets use the same Makefile fragment
#
override EXE=.elf
RTEMS_TARGET_CPU = powerpc
GNU_TARGET=powerpc-rtems
ARCH_DEP_CFLAGS += -DMY_DO_BOOTP=NULL
ARCH_DEP_CFLAGS += -DHAVE_MOTLOAD
MUNCH_SUFFIX = .boot
MUNCHNAME = $(PRODNAME:%$(EXE)=%$(MUNCH_SUFFIX))
define MUNCH_CMD
$(RTEMS_TOOLS)/bin/$(OBJCOPY_FOR_TARGET) -O binary $< $@
endef
CROSS_COMPILER_TARGET_ARCHS=RTEMS-beatnik
include $(CONFIG)/os/CONFIG.Common.RTEMS
RTEMSSYMS=$(PRODNAME:%$(EXE)=%.sym)
RTEMSIMGS=$(PRODNAME:%$(EXE)=%.bin)
INSTALL_RTEMSSYMS=$(RTEMSSYMS:%=$(INSTALL_BIN)/%)
INSTALL_RTEMSIMGS=$(RTEMSIMGS:%=$(INSTALL_BIN)/%)
OP_SYS_LDLIBS += -lbspExt
%.sym: %$(EXE)
$(XSYMS) $^ $@
%.bin: %$(EXE)
$(OBJCOPY) -Obinary $^ $@
#PRODTARGETS+=$(INSTALL_RTEMSSYMS) $(INSTALL_RTEMSIMGS)

View File

@@ -9,11 +9,12 @@
RTEMS_TARGET_CPU = powerpc
ARCH_DEP_CFLAGS += -DMY_DO_BOOTP=NULL
ARCH_DEP_CFLAGS += -DHAVE_MOTLOAD
ARCH_DEP_CFLAGS += -DBSP_NVRAM_BASE_ADDR=0xf1110000
MUNCH_SUFFIX = .boot
MUNCHNAME = $(PRODNAME:%$(EXE)=%$(MUNCH_SUFFIX))
define MUNCH_CMD
$(RTEMS_BASE)/bin/$(OBJCOPY_FOR_TARGET) -O binary $< $@
$(RTEMS_TOOLS)/bin/$(OBJCOPY_FOR_TARGET) -O binary $< $@
endef
include $(CONFIG)/os/CONFIG.Common.RTEMS

View File

@@ -11,7 +11,7 @@ RTEMS_TARGET_CPU=i386
MUNCH_SUFFIX = .boot
MUNCHNAME = $(PRODNAME:%$(EXE)=%$(MUNCH_SUFFIX))
define MUNCH_CMD
$(RTEMS_BASE)/bin/$(OBJCOPY_FOR_TARGET) -O binary -R .comment -S $< temp.bin
$(RTEMS_TOOLS)/bin/$(OBJCOPY_FOR_TARGET) -O binary -R .comment -S $< temp.bin
$(PROJECT_RELEASE)/build-tools/bin2boot $@ 0x00097E00 \
$(PROJECT_RELEASE)/lib/start16.bin 0x00097C00 0 temp.bin 0x00100000 0
rm -f temp.bin

View File

@@ -12,12 +12,7 @@ ARCH_DEP_CFLAGS += -DMY_DO_BOOTP=NULL
MUNCH_SUFFIX = .boot
MUNCHNAME = $(PRODNAME:%$(EXE)=%$(MUNCH_SUFFIX))
define MUNCH_CMD
$(RTEMS_BASE)/bin/$(OBJCOPY_FOR_TARGET) -O binary -R .comment -S $< $@
$(RTEMS_TOOLS)/bin/$(OBJCOPY_FOR_TARGET) -O binary -R .comment -S $< $@
endef
include $(CONFIG)/os/CONFIG.Common.RTEMS
#
# Must put this one so it shows up after the -m528x
#
OP_SYS_LDFLAGS += -m5200

View File

@@ -12,10 +12,6 @@
# Unix valid build types
VALID_BUILDS = Host Ioc
#-------------------------------------------------------
# Gnu directory
GNU_DIR = /usr/local
#-------------------------------------------------------
# Unix prefix and suffix definitions
EXE =
@@ -36,7 +32,7 @@ SHRLIBNAME_YES = $(BUILD_LIBRARY:%=$(LIB_PREFIX)%$(SHRLIB_SUFFIX))
LOADABLE_SHRLIBNAME = $(LOADABLE_BUILD_LIBRARY:%=$(LOADABLE_SHRLIB_PREFIX)%$(LOADABLE_SHRLIB_SUFFIX))
#-------------------------------------------------------
# shrlib: DEPLIBS, LDFLAGS, and LDLIBS definitions
# shrlib: SHRLIB_DEPLIBS, SHRLIB_LDLIBS and SHRLIBDIR_LDFLAGS definitions
# SHRLIB_LIBS deprecated
LIB_LIBS += $(SHRLIB_LIBS)
@@ -47,16 +43,18 @@ SHRLIB_DEPLIBS=$(foreach lib, $(LIB_LIBS) $(USR_LIBS), \
$(addsuffix /$(LIB_PREFIX)$(lib)$(LIB_SUFFIX), \
$(firstword $($(lib)_DIR) $(INSTALL_LIB)))))
SHRLIB_LDLIBS = $(addprefix -l, $($*_LDLIBS) $(LIB_LIBS) $(USR_LIBS) \
$($*_SYS_LIBS) $(LIB_SYS_LIBS) $(USR_SYS_LIBS)) $(LDLIBS)
SHRLIB_LDLIBS = $(addprefix -l, $($*_LDLIBS) $(LIB_LIBS) $(USR_LIBS))\
$(STATIC_LDLIBS) \
$(addprefix -l, $($*_SYS_LIBS) $(LIB_SYS_LIBS) $(USR_SYS_LIBS)) \
$(LDLIBS)
SHRLIB_DEPLIB_DIRS = $(foreach word,$(sort $(dir $($*_DEPLIBS) $(SHRLIB_DEPLIBS))), \
$(shell $(PERL) $(TOOLS)/fullPathName.pl $(word)))
$(shell $(PERL) $(TOOLS)/fullPathName.pl $(word)))
SHRLIBDIR_LDFLAGS += $(SHRLIB_DEPLIB_DIRS:%=-L%)
#-------------------------------------------------------
# Prod: DEPLIBS, LDFLAGS, and LDLIBS definitions
# Prod: PROD_DEPLIBS, PROD_LDLIBS and PRODDIR_LDFLAGS definitions
PROD_DEPLIBS=$(foreach lib,$(PROD_LIBS) $(USR_LIBS), \
$(firstword $(wildcard $(addsuffix /$(LIB_PREFIX)$(lib).*, \
@@ -64,8 +62,9 @@ PROD_DEPLIBS=$(foreach lib,$(PROD_LIBS) $(USR_LIBS), \
$(addsuffix /$(LIB_PREFIX)$(lib)$(LIB_SUFFIX), \
$(firstword $($(lib)_DIR) $(INSTALL_LIB)))))
PROD_LDLIBS = $(addprefix -l, $($*_LDLIBS) $(PROD_LIBS) $(USR_LIBS)\
$($*_SYS_LIBS) $(PROD_SYS_LIBS) $(USR_SYS_LIBS))
PROD_LDLIBS = $(addprefix -l, $($*_LDLIBS) $(PROD_LIBS) $(USR_LIBS)) \
$(STATIC_LDLIBS) \
$(addprefix -l, $($*_SYS_LIBS) $(PROD_SYS_LIBS) $(USR_SYS_LIBS))
LDLIBS_STATIC_YES = LDLIBS
LDLIBS_SHARED_NO = LDLIBS
@@ -81,10 +80,8 @@ PRODDIR_LDFLAGS += $(PROD_DEPLIB_DIRS:%=-L%)
# Link definitions
LINK.cpp = $(CCC) -o $@ $(STATIC_LDFLAGS) $(PRODDIR_LDFLAGS) $(LDFLAGS)
LINK.cpp += $(PROD_LDFLAGS) $(PROD_LD_OBJS) $(PROD_LD_RESS) $(PROD_LDLIBS)
LINK.shrlib = $(CCC) -o $@ $(SHRLIB_LDFLAGS) $(SHRLIBDIR_LDFLAGS) $(LDFLAGS)
LINK.shrlib = $(CCC) -o $@ $(TARGET_LIB_LDFLAGS) $(SHRLIBDIR_LDFLAGS) $(LDFLAGS)
LINK.shrlib += $(LIB_LDFLAGS) $(LIBRARY_LD_OBJS) $(LIBRARY_LD_RESS) $(SHRLIB_LDLIBS)
LINK.loadable_shrlib = $(CCC) -o $@ $(LOADABLE_SHRLIB_LDFLAGS) $(SHRLIBDIR_LDFLAGS) $(LDFLAGS)
LINK.loadable_shrlib += $(LIB_LDFLAGS) $(LIBRARY_LD_OBJS) $(LIBRARY_LD_RESS) $(SHRLIB_LDLIBS)
#--------------------------------------------------
# Operating system definitions

View File

@@ -13,27 +13,59 @@ include $(CONFIG)/os/CONFIG.Common.UnixCommon
OS_CLASS = cygwin32
ARCH_CLASS = x86
EXE=.exe
# Definitions used when COMMANDLINE_LIBRARY is READLINE
LDLIBS_READLINE = -lreadline -lcurses
COMPILER_CPPFLAGS = -D_REENTRANT
#POSIX_CPPFLAGS = -D_POSIX_SOURCE=199506L -D_POSIX_THREADS -D_POSIX_TIMERS
# _POSIX_SOURCE eliminates select()
POSIX_CPPFLAGS = -D_POSIX_THREADS -D_POSIX_TIMERS
#POSIX_CPPFLAGS += -D_POSIX_SOURCE
POSIX_LDLIBS += -lpthread
ARCH_DEP_CPPFLAGS += -D_X86_
ARCH_DEP_CFLAGS += -m32
ARCH_DEP_LDFLAGS += -m32
OP_SYS_CPPFLAGS += -DCYGWIN32 -U_WIN32
# Compiler defines _X86_ 1
# Compiler defines __MSVCRT__ 1
# Compiler defines __CYGWIN__ 1
# Compiler defines __CYGWIN32__ 1
# Compiler defines __unix__ 1
# Compiler defines __unix 1
# Compiler defines unix 1
# Set runtime path for shared libraries
SHRLIBDIR_LDFLAGS += $(SHRLIB_DEPLIB_DIRS:%=-Wl,-rpath,%)
OP_SYS_CPPFLAGS += -DCYGWIN32
# Set runtime path for products
PRODDIR_LDFLAGS += $(PROD_DEPLIB_DIRS:%=-Wl,-rpath,%)
EXE=.exe
# Definitions used when COMMANDLINE_LIBRARY is READLINE
INCLUDES_READLINE = -I$(GNU_DIR)/include
LDFLAGS_READLINE += -L$(GNU_DIR)/lib
LDLIBS_READLINE = -lreadline
VISC_DLL_NO = -DEPICS_DLL_NO
VISC_DLL_YES =
VISC_DLL = $(VISC_DLL_$(SHARED_LIBRARIES))
STATIC_CFLAGS_YES= $(VISC_DLL)
STATIC_CFLAGS_NO= $(VISC_DLL) -D_DLL
STATIC_CXXFLAGS_YES= $(VISC_DLL)
STATIC_CXXFLAGS_NO= $(VISC_DLL) -D_DLL
# adjust names of libraries to build
#
# But: if there are no objects LIBRARY_LD_OBJS to include
# in this library (may be for e.g. base/src/libCompat
# on some archs), don't define (and build) any library!
SHRLIB_PREFIX=
SHRLIB_SUFFIX=.dll
SHRLIBNAME_YES = $(BUILD_LIBRARY:%=%$(SHRLIB_SUFFIX))
LOADABLE_SHRLIB_PREFIX=
LOADABLE_SHRLIB_SUFFIX=.dll
LOADABLE_SHRLIBNAME = $(LOADABLE_BUILD_LIBRARY:%=%$(LOADABLE_SHRLIB_SUFFIX))
#
# When SHARED_LIBRARIES is YES we are building a DLL link library
# and when SHARED_LIBRARIES is NO we are building an object library
#
LIB_PREFIX=
LIB_SUFFIX=.lib
DLL_LINK_LIBNAME_YES = $(BUILD_LIBRARY:%=%$(LIB_SUFFIX))
DLL_LINK_LIBNAME = $(DLL_LINK_LIBNAME_$(SHARED_LIBRARIES))
LIBNAME_NO = $(BUILD_LIBRARY:%=%$(LIB_SUFFIX))
LIBNAME = $(LIBNAME_$(SHARED_LIBRARIES))
# dll install location
INSTALL_SHRLIB = $(INSTALL_BIN)

View File

@@ -8,9 +8,8 @@
#-------------------------------------------------------
#
# Architecture-specific information
#
ARCH_CLASS = ppc
# To build universal binaries, configure ARCH_CLASS
# in the file CONFIG_SITE.Common.darwin-ppc
# Include definitions common to all Darwin targets
include $(CONFIG)/os/CONFIG.darwinCommon.darwinCommon

View File

@@ -3,20 +3,13 @@
# $Id$
# This file is maintained by the build community.
#
# Definitions for Darwin 'universal' (PowerPC, Intel) target builds
# Definitions for Darwin universal PowerPC + x86 target builds
# Sites may override these definitions in CONFIG_SITE.Common.darwin-ppcx86
#-------------------------------------------------------
#
# Set architecture-specific information
#
ARCH_CLASS = ppcx86
#
# Universal binary support
#
OP_SYS_CFLAGS += -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc
OP_SYS_LDFLAGS += -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc
# To build universal binaries, configure ARCH_CLASS
# in the file CONFIG_SITE.Common.darwin-ppcx86
# Include definitions common to all Darwin targets
include $(CONFIG)/os/CONFIG.darwinCommon.darwinCommon

View File

@@ -8,9 +8,8 @@
#-------------------------------------------------------
#
# Architecture-specific information
#
ARCH_CLASS = x86
# To build universal binaries, configure ARCH_CLASS
# in the file CONFIG_SITE.Common.darwin-x86
# Include definitions common to all Darwin targets
include $(CONFIG)/os/CONFIG.darwinCommon.darwinCommon

View File

@@ -30,3 +30,8 @@ PRODDIR_LDFLAGS += $(PROD_DEPLIB_DIRS:%=-Wl,-rpath,%)
LDLIBS_READLINE = -lreadline -lcurses
GNU_LDLIBS_YES = -lgcc_pic
#--------------------------------------------------
# Allow site overrides
-include $(CONFIG)/os/CONFIG_SITE.Common.freebsdCommon
-include $(CONFIG)/os/CONFIG_SITE.$(EPICS_HOST_ARCH).freebsdCommon

View File

@@ -1,34 +0,0 @@
# CONFIG.Common.hpux-parisc
#
# $Id$
# This file is maintained by the build community.
#
# Definitions for hpux-parisc target archs
# Sites may override these definitions in CONFIG_SITE.Common.hpux-parisc
#-------------------------------------------------------
#Include definitions common to unix targets
include $(CONFIG)/os/CONFIG.Common.UnixCommon
OS_CLASS = hpux
ARCH_CLASS = parisc
# Posix stuff is not set here as "-mt" (in CONFIG.hpux-parisc.hpux-parisc)
# does all defines and linker options to make posix threads work
OP_SYS_CPPFLAGS = -DHP_UX
OP_SYS_CFLAGS = -D_HPUX_SOURCE
OP_SYS_CXXFLAGS =
SHRLIB_SUFFIX = .sl$(addprefix .,$(SHRLIB_VERSION))
LOADABLE_SHRLIB_SUFFIX = .sl$(addprefix .,$(LOADABLE_SHRLIB_VERSION))
# Set runtime path for shared libraries
empty:= # trick from the make docs...
space:= $(empty) $(empty)
SHRLIBDIR_LDFLAGS += -Wl,+b$(subst $(space),:,$(SHRLIB_DEPLIB_DIRS)),+s
# Set runtime path for products
PRODDIR_LDFLAGS += -Wl,+b$(subst $(space),:,$(PROD_DEPLIB_DIRS)),+s
GNU_TARGET=parisc-hp-unix

View File

@@ -1,11 +0,0 @@
# CONFIG.Common.hpux-parisc-gnu
#
# $Id$
# This file is maintained by the build community.
#
# Definitions for hpux-parisc gnu compiler target archs
# Sites may override these definitions in CONFIG_SITE.Common.hpux-parisc-gnu
#-------------------------------------------------------
# Include definitions common to all hpux-parisc target archs
include $(CONFIG)/os/CONFIG.Common.hpux-parisc

View File

@@ -1,41 +0,0 @@
# CONFIG.Common.interix-x86
#
# $Id$
# This file is maintained by the build community.
#
# Definitions for interix-x86 target builds
# Sites may override these definitions in CONFIG_SITE.Common.interix-x86
#-------------------------------------------------------
# Include definitions common to all Unix targets
include $(CONFIG)/os/CONFIG.Common.UnixCommon
OS_CLASS = interix
ARCH_CLASS = x86
EXE=
POSIX_CPPFLAGS = -D_POSIX_C_SOURCE=199506L
POSIX_CPPFLAGS += -D_POSIX_THREADS
POSIX_CPPFLAGS += -D_ALL_SOURCE
POSIX_CPPFLAGS += -D_POSIX_TIMERS
POSIX_CPPFLAGS += -D_REENTRANT
POSIX_LDLIBS += -lpthread
ARCH_DEP_CPPFLAGS += -D_X86_
OP_SYS_CPPFLAGS += -DUNIX
# Set runtime path for shared libraries
SHRLIBDIR_LDFLAGS += $(SHRLIB_DEPLIB_DIRS:%=-Wl,-rpath,%)
# Set runtime path for products
PRODDIR_LDFLAGS += $(PROD_DEPLIB_DIRS:%=-Wl,-rpath,%)
# Definitions used when COMMANDLINE_LIBRARY is READLINE
INCLUDES_READLINE = -I$(GNU_DIR)/include
LDFLAGS_READLINE += -L$(GNU_DIR)/lib
LDLIBS_READLINE = -lreadline

View File

@@ -10,9 +10,13 @@
# Include definitions common to all linux x86 targets
include $(CONFIG)/os/CONFIG.Common.linux-x86
ARCH_DEP_CFLAGS = -march=i386
ARCH_DEP_CFLAGS += -march=i386
ifeq ($(BUILD_CLASS),CROSS)
GNU_TARGET=i386-pc-linux-gnu
VALID_BUILDS = Ioc
endif
# If your crosscompiler name has a GNU target prefix like <gnutarget>-gcc,
# e.g. i386-pc-linux-gnu-gcc, put a GNU_TARGET definition in
# CONFIG_SITE.<host>.linux-386 file, e.g. GNU_TARGET=i386-pc-linux-gnu

View File

@@ -10,9 +10,13 @@
# Include definitions common to all linux x86 targets
include $(CONFIG)/os/CONFIG.Common.linux-x86
ARCH_DEP_CFLAGS = -march=i486
ARCH_DEP_CFLAGS += -march=i486
ifeq ($(BUILD_CLASS),CROSS)
GNU_TARGET=i486-pc-linux-gnu
VALID_BUILDS = Ioc
endif
# If your crosscompiler name has a GNU target prefix like <gnutarget>-gcc,
# e.g. i486-pc-linux-gnu-gcc, put a GNU_TARGET definition in
# CONFIG_SITE.<host>.linux-486 file, e.g. GNU_TARGET=i486-pc-linux-gnu

View File

@@ -10,10 +10,15 @@
# Include definitions common to all linux x86 targets
include $(CONFIG)/os/CONFIG.Common.linux-x86
# i586 is euivalent to pentiumpro
ARCH_DEP_CFLAGS = -march=i586
# i586 is equivalent to pentium
ARCH_DEP_CFLAGS += -march=i586
ifeq ($(BUILD_CLASS),CROSS)
GNU_TARGET=i586-pc-linux-gnu
VALID_BUILDS = Ioc
endif
# If your crosscompiler name has a GNU target prefix like <gnutarget>-gcc,
# e.g. i586-pc-linux-gnu-gcc, put a GNU_TARGET definition in
# CONFIG_SITE.<host>.linux-586 file, e.g. GNU_TARGET=i586-pc-linux-gnu

View File

@@ -11,9 +11,13 @@
include $(CONFIG)/os/CONFIG.Common.linux-x86
# i686 is euivalent to pentiumpro
ARCH_DEP_CFLAGS = -march=i686
ARCH_DEP_CFLAGS += -march=i686
ifeq ($(BUILD_CLASS),CROSS)
GNU_TARGET=i686-pc-linux-gnu
VALID_BUILDS = Ioc
endif
# If your crosscompiler name has a GNU target prefix like <gnutarget>-gcc,
# e.g. i686-pc-linux-gnu-gcc, put a GNU_TARGET definition in
# CONFIG_SITE.<host>.linux-686 file, e.g. GNU_TARGET=i686-pc-linux-gnu

View File

@@ -13,8 +13,10 @@ ARCH_CLASS = arm
# Set a special definition for network order of Netwinder ARM floating point
ARCH_DEP_CPPFLAGS += -D_ARM_NWFP_
ARCH_DEP_CPPFLAGS += -mcpu=arm9 -marm
ifeq ($(BUILD_CLASS),CROSS)
VALID_BUILDS = Ioc
GNU_TARGET = arm-linux
# prefix of compiler tools

View File

@@ -0,0 +1,11 @@
# CONFIG.Common.linux-arm_eb
#
# This file is maintained by the build community.
#
# Definitions for linux-arm_eb (big endian) target builds
# Sites may override these definitions in CONFIG_SITE.Common.linux-arm_eb
#-------------------------------------------------------
# Include definitions common to all Linux-arm targets
include $(CONFIG)/os/CONFIG.Common.linux-arm

View File

@@ -0,0 +1,11 @@
# CONFIG.Common.linux-arm_el
#
# This file is maintained by the build community.
#
# Definitions for linux-arm_el (little endian) target builds
# Sites may override these definitions in CONFIG_SITE.Common.linux-arm_el
#-------------------------------------------------------
# Include definitions common to all linux-arm targets
include $(CONFIG)/os/CONFIG.Common.linux-arm

View File

@@ -12,8 +12,11 @@ include $(CONFIG)/os/CONFIG.Common.linux-x86
ARCH_DEP_CFLAGS += -march=athlon-mp -mfpmath=sse
ifeq ($(BUILD_CLASS),CROSS)
GNU_TARGET=athlon-pc-linux-gnu
VALID_BUILDS = Ioc
endif
# If your crosscompiler name has a GNU target prefix like <gnutarget>-gcc,
# e.g. athlon-pc-linux-gnu-gcc, put a GNU_TARGET definition in
# CONFIG_SITE.<host>.linux-athlon file, e.g. GNU_TARGET=athlon-pc-linux-gnu

View File

@@ -0,0 +1,58 @@
# CONFIG.Common.linux-cris
#
# Author: Peter Zumbruch
# GSI
# P.Zumbruch@gsi.de
#
# Definitions for linux-cris target builds
# Sites may override these definitions in CONFIG_SITE.Common.linux-cris
#-------------------------------------------------------
# Include definitions common to all linux targets
include $(CONFIG)/os/CONFIG.Common.linuxCommon
ARCH_CLASS = cris
ifeq ($(BUILD_CLASS),CROSS)
GNU_TARGET = cris-axis-linux-gnu
# prefix of compiler tools
CMPLR_SUFFIX =
CMPLR_PREFIX = $(addsuffix -,$(GNU_TARGET))
# CROSS_TOP_DIR
# usually AXIS_TOP_DIR is defined via
# the init_env script of the SDK provided by Axis
#
## AXIS_TOP_DIR defined? Make missing mandatory variable visible
AXIS_TOP_DIR?=UNDEFINED_ENV__AXIS_TOP_DIR
AXIS_SDK_DIR?=$(AXIS_TOP_DIR)
# CROSS_INCLUDES
AXIS_SDK_TARGET_INCLUDE_DIR = $(AXIS_SDK_DIR)/target/$(GNU_TARGET)/include
AXIS_SDK_TARGET_INCLUDE_DIR +=$(AXIS_SDK_DIR)/target/$(GNU_TARGET)/usr/include
CROSS_INCLUDES = $(addprefix -isystem ,$(AXIS_SDK_TARGET_INCLUDE_DIR))
# CROSS_LDFLAGS
AXIS_SDK_TARGET_LIB_DIR = $(AXIS_SDK_DIR)/target/$(GNU_TARGET)/lib
AXIS_SDK_TARGET_LIB_DIR += $(AXIS_SDK_DIR)/target/$(GNU_TARGET)/usr/lib
CROSS_LDFLAGS = $(addprefix -L,$(AXIS_SDK_TARGET_LIB_DIR))
-include $(CONFIG)/os/CONFIG_SITE.Common.linux-cris
ifeq ($(EPICS_HOST_ARCH), linux-x86)
-include $(CONFIG)/os/CONFIG.linux-x86.linux-cris
-include $(CONFIG)/os/CONFIG_SITE.linux-x86.linux-cris
endif
endif
SHARED_LIBRARIES=NO
STATIC_BUILD=YES
ARCH_DEP_CFLAGS += -mno-mul-bug-workaround
OP_SYS_CFLAGS += -mlinux
ARCH_DEP_CPPFLAGS += -D_cris_ -mlinux
#uncomment CRIS_COMPILER_DEBUG for debugging cris-compiled code
#CRIS_COMPILER_DEBUG

View File

@@ -9,9 +9,6 @@
# Include definitions common to all Unix targets
include $(CONFIG)/os/CONFIG.Common.linuxCommon
#
# Set OS-specific information
#
ARCH_CLASS = ppc
ARCH_DEP_CPPFLAGS += -D_ppc_

View File

@@ -13,23 +13,10 @@ include $(CONFIG)/os/CONFIG.Common.linuxCommon
ARCH_CLASS = x86
ARCH_DEP_CPPFLAGS += -D_X86_
ARCH_DEP_CFLAGS += -m32
ARCH_DEP_LDFLAGS += -m32
ifeq ($(BUILD_CLASS),CROSS)
ifeq ($(EPICS_HOST_ARCH),linux-x86)
# Added for 386,486,... cross builds
CMPLR_PREFIX=
CROSS_INCLUDES=
CROSS_LDFLAGS=
# Use -w not -Wall
#WARN_CFLAGS_YES = -w
#WARN_CXXFLAGS_YES = -w
-include $(CONFIG)/os/CONFIG_SITE.Common.linux-x86
-include $(CONFIG)/os/CONFIG.linux-x86.linux-x86
-include $(CONFIG)/os/CONFIG_SITE.linux-x86.linux-x86
else
GNU_TARGET=i586-pc-linux-gnu
CMPLR_SUFFIX=
CMPLR_PREFIX=$(addsuffix -,$(GNU_TARGET))
endif
endif
# If your crosscompiler name has a GNU target prefix like <gnutarget>-gcc,
# e.g. x86-redhat-linux-gcc, put a GNU_TARGET definition in
# CONFIG_SITE.<host>.linux-x86 file, e.g. GNU_TARGET=x86-redhat-linux

View File

@@ -10,3 +10,4 @@
# Include definitions common to all linux-x86 target archs
include $(CONFIG)/os/CONFIG.Common.linux-x86
HOST_OPT=NO

View File

@@ -13,23 +13,14 @@ include $(CONFIG)/os/CONFIG.Common.linuxCommon
ARCH_CLASS = x86_64
ARCH_DEP_CPPFLAGS += -D_X86_64_
ARCH_DEP_CFLAGS += -m64
ARCH_DEP_LDFLAGS += -m64
ifeq ($(BUILD_CLASS),CROSS)
ifeq ($(EPICS_HOST_ARCH),linux-x86_64)
# Added for 386,486,... cross builds
CMPLR_PREFIX=
CROSS_INCLUDES=
CROSS_LDFLAGS=
# Use -w not -Wall
#WARN_CFLAGS_YES = -w
#WARN_CXXFLAGS_YES = -w
-include $(CONFIG)/os/CONFIG_SITE.Common.linux-x86_64
-include $(CONFIG)/os/CONFIG.linux-x86_64.linux-x86_64
-include $(CONFIG)/os/CONFIG_SITE.linux-x86_64.linux-x86_64
else
GNU_TARGET=i586-pc-linux-gnu
CMPLR_SUFFIX=
CMPLR_PREFIX=$(addsuffix -,$(GNU_TARGET))
endif
VALID_BUILDS = Ioc
endif
# If your crosscompiler name has a GNU target prefix like <gnutarget>-gcc,
# e.g. x86_64-redhat-linux-gcc, put a GNU_TARGET definition in
# CONFIG_SITE.<host>.linux-x86_64 file, e.g. GNU_TARGET=x86_64-redhat-linux

View File

@@ -10,3 +10,4 @@
# Include definitions common to all linux-x86_64 target archs
include $(CONFIG)/os/CONFIG.Common.linux-x86_64
HOST_OPT=NO

View File

@@ -0,0 +1,25 @@
# CONFIG.Common.linux-xscale_be
#
# This file is maintained by the build community.
#
# Definitions for linux-xscale_be (big-endian) target builds.
# This target has been tested with the MOXA UC-7408-LX Plus.
# Sites may override these definitions in CONFIG_SITE.Common.linux-xscale_be
#-------------------------------------------------------
# Include definitions common to all Linux targets
include $(CONFIG)/os/CONFIG.Common.linuxCommon
ARCH_CLASS = xscale
#
# The vendor's tool chain needs to be located here
#
GNU_DIR=/usr/local/xscale_be
ifeq ($(BUILD_CLASS),CROSS)
VALID_BUILDS = Ioc
GNU_TARGET = xscale_be
CMPLR_PREFIX = $(addsuffix -,$(GNU_TARGET))
endif

View File

@@ -20,7 +20,12 @@ POSIX_LDLIBS = -lpthread
# -D_BSD_SOURCE for gethostname() in unistd.h as needed by cacChannelIO.cpp.
OP_SYS_CPPFLAGS += -D_BSD_SOURCE
OP_SYS_CPPFLAGS += -Dlinux
OP_SYS_LDLIBS += -lrt
OP_SYS_LDLIBS += -lrt -ldl
# Added here for cross-target builds which include this file
STATIC_LDFLAGS_YES= -Wl,-Bstatic
STATIC_LDFLAGS_NO=
STATIC_LDLIBS_YES= -Wl,-Bdynamic
# Set runtime path for shared libraries
SHRLIBDIR_LDFLAGS += $(SHRLIB_DEPLIB_DIRS:%=-Wl,-rpath,%)
@@ -29,5 +34,9 @@ SHRLIBDIR_LDFLAGS += $(SHRLIB_DEPLIB_DIRS:%=-Wl,-rpath,%)
PRODDIR_LDFLAGS += $(PROD_DEPLIB_DIRS:%=-Wl,-rpath,%)
# Definitions used when COMMANDLINE_LIBRARY is READLINE
LDLIBS_READLINE = -lreadline -lcurses
LDLIBS_READLINE = -lreadline -lncurses
#--------------------------------------------------
# Allow site overrides
-include $(CONFIG)/os/CONFIG_SITE.Common.linuxCommon
-include $(CONFIG)/os/CONFIG_SITE.$(EPICS_HOST_ARCH).linuxCommon

View File

@@ -16,7 +16,8 @@ ARCH_CLASS = alpha
CODE_CPPFLAGS =
POSIX_CPPFLAGS += -pthread -ieee
POSIX_LDFLAGS += -pthread -ieee
# Unknown reason why this doesn't work in POSIX_LDFLAGS:
POSIX_LDLIBS += -pthread -ieee
OP_SYS_CPPFLAGS += -D_OSF_SOURCE
OP_SYS_LDLIBS += -lrt

View File

@@ -20,9 +20,9 @@ COMPILER_LDFLAGS += -mt
SOLARIS_VERSION = $(subst 5.,,$(shell uname -r))
POSIX_CPPFLAGS += -D_POSIX_C_SOURCE=199506L $(POSIX_CPPFLAGS_YES_$(SOLARIS_VERSION))
POSIX_CPPFLAGS += -D_POSIX_C_SOURCE=199506L $(POSIX_CPPFLAGS_$(SOLARIS_VERSION))
POSIX_CPPFLAGS += -D_XOPEN_SOURCE=500
POSIX_LDLIBS += -lposix4 -lpthread $(POSIX_LDLIBS_YES_$(SOLARIS_VERSION))
POSIX_LDLIBS += -lposix4 -lpthread $(POSIX_LDLIBS_$(SOLARIS_VERSION))
OP_SYS_CPPFLAGS += -DSOLARIS=$(SOLARIS_VERSION) $(COMPILER_CPPFLAGS)
OP_SYS_LDFLAGS += $(COMPILER_LDFLAGS)
@@ -37,16 +37,30 @@ RUNTIME_LDFLAGS += $(RUNTIME_LDFLAGS_$(COMMANDLINE_LIBRARY))
GNU_TARGET=sparc-sun-solaris2
STLPORT_CFLAGS_YES= -library=stlport4
STLPORT_CFLAGS_NO=
STLPORT_LDLIBS_YES =
STLPORT_LDLIBS_NO = -lCstd
# can be overridden in CONFIG_SITE.Common.solaris-sparc
USE_STLPORT=NO
OP_SYS_CFLAGS+=$(STLPORT_CFLAGS_$(USE_STLPORT))
OP_SYS_LDFLAGS+=$(STLPORT_CFLAGS_$(USE_STLPORT))
OP_SYS_LDLIBS += $(STLPORT_LDLIBS_$(USE_STLPORT))
# OS libraries used when generating shared libraries or static binaries
OP_SYS_LDLIBS += -lsocket -lnsl
OP_SYS_LDLIBS_8 += -lCrun -lc -lCstd
OP_SYS_LDLIBS_9 += -lCrun -lc -lCstd
OP_SYS_LDLIBS_10 += -lCrun -lc -lCstd
OP_SYS_LDLIBS_8 += -lCrun -lc
OP_SYS_LDLIBS_9 += -lumem -lCrun -lc
OP_SYS_LDLIBS_10 += -lumem -lCrun -lc
OP_SYS_LDLIBS += $(OP_SYS_LDLIBS_$(SOLARIS_VERSION))
# Definitions used when COMMANDLINE_LIBRARY is READLINE
INCLUDES_READLINE = -I$(GNU_DIR)/include
RUNTIME_LDFLAGS_READLINE += -R$(GNU_DIR)/lib
LDFLAGS_READLINE += -L$(GNU_DIR)/lib
READLINE_DIR = $(GNU_DIR)
INCLUDES_READLINE = -I$(READLINE_DIR)/include
RUNTIME_LDFLAGS_READLINE += -R$(READLINE_DIR)/lib
LDFLAGS_READLINE += -L$(READLINE_DIR)/lib
LDLIBS_READLINE = -lreadline -lcurses
# Use archive if there is a problem with the readline shared library
#LDLIBS_READLINE = -Bstatic -lreadline -Bdynamic -lcurses

View File

@@ -10,3 +10,5 @@
# Include definitions common to all solaris-sparc target archs
include $(CONFIG)/os/CONFIG.Common.solaris-sparc
# Removes -O optimization and adds -g compile option
HOST_OPT=NO

View File

@@ -13,9 +13,9 @@ include $(CONFIG)/os/CONFIG.Common.solaris-sparc
COMPILER_CPPFLAGS = -D_REENTRANT
OP_SYS_LDLIBS_8 = -lc
OP_SYS_LDLIBS_9 = -lc
STLPORT_LDLIBS_NO =
RUNTIME_LDFLAGS += -R$(GNU_LIB)
OP_SYS_LDFLAGS += -L$(GNU_LIB)
OP_SYS_LDLIBS_8 =
OP_SYS_LDLIBS_9 =
OP_SYS_LDLIBS_10 =

View File

@@ -10,6 +10,5 @@
# Include definitions common to all solaris-sparc target archs
include $(CONFIG)/os/CONFIG.Common.solaris-sparc
ARCH_DEP_CFLAGS += -xarch=generic64
ARCH_DEP_CXXFLAGS += -xarch=generic64
ARCH_DEP_LDFLAGS += -xarch=generic64
ARCH_DEP_CFLAGS += -m64
ARCH_DEP_LDFLAGS += -m64

View File

@@ -11,8 +11,5 @@
include $(CONFIG)/os/CONFIG.Common.solaris-sparc-gnu
ARCH_DEP_CFLAGS += -mcpu=v9 -m64
ARCH_DEP_CXXFLAGS += -mcpu=v9 -m64
ARCH_DEP_LDFLAGS += -mcpu=v9 -m64
ARCH_DEP_LDFLAGS += -L$(GNU_LIB)/sparcv9 -R$(GNU_LIB)/sparcv9

View File

@@ -38,15 +38,29 @@ RUNTIME_LDFLAGS += $(RUNTIME_LDFLAGS_$(COMMANDLINE_LIBRARY))
GNU_TARGET=x86-sun-solaris2
STLPORT_CFLAGS_YES= -library=stlport4
STLPORT_CFLAGS_NO=
STLPORT_LDLIBS_YES =
STLPORT_LDLIBS_NO = -lCstd
# can be overridden from ...SITE
USE_STLPORT=NO
OP_SYS_CFLAGS+=$(STLPORT_CFLAGS_$(USE_STLPORT))
OP_SYS_LDFLAGS+=$(STLPORT_CFLAGS_$(USE_STLPORT))
OP_SYS_LDLIBS += -lsocket -lnsl
OP_SYS_LDLIBS_8 += -lCrun -lc -lCstd
OP_SYS_LDLIBS_9 += -lCrun -lc -lCstd
OP_SYS_LDLIBS_8 += -lCrun -lc
OP_SYS_LDLIBS_9 += -lCrun -lc
OP_SYS_LDLIBS_10 += -lCrun -lc
OP_SYS_LDLIBS += $(OP_SYS_LDLIBS_$(SOLARIS_VERSION))
OP_SYS_LDLIBS += $(STLPORT_LDLIBS_$(USE_STLPORT))
# Definitions used when COMMANDLINE_LIBRARY is READLINE
INCLUDES_READLINE = -I$(GNU_DIR)/include
RUNTIME_LDFLAGS_READLINE += -R$(GNU_DIR)/lib
LDFLAGS_READLINE += -L$(GNU_DIR)/lib
READLINE_DIR = $(GNU_DIR)
INCLUDES_READLINE = -I$(READLINE_DIR)/include
RUNTIME_LDFLAGS_READLINE += -R$(READLINE_DIR)/lib
LDFLAGS_READLINE += -L$(READLINE_DIR)/lib
LDLIBS_READLINE = -lreadline -lcurses
# Use archive if there is a problem with the readline shared library
#LDLIBS_READLINE = -Bstatic -lreadline -Bdynamic -lcurses

View File

@@ -12,9 +12,9 @@ include $(CONFIG)/os/CONFIG.Common.solaris-x86
COMPILER_CPPFLAGS = -D_REENTRANT
STLPORT_LDLIBS_NO =
OP_SYS_LDLIBS_8 = -lc
OP_SYS_LDLIBS_9 = -lc
RUNTIME_LDFLAGS += -R$(GNU_LIB)
OP_SYS_LDFLAGS += -L$(GNU_LIB)
OP_SYS_LDLIBS_10 = -lc

View File

@@ -0,0 +1,14 @@
# CONFIG.Common.solaris-x86_64
#
# $Id$
# This file is maintained by the build community.
#
# Definitions for solaris-x86_64 compiler target archs
# Sites may override these definitions in CONFIG_SITE.Common.solaris-x86_64
#-------------------------------------------------------
# Include definitions common to all solaris-x86 target archs
include $(CONFIG)/os/CONFIG.Common.solaris-x86
ARCH_DEP_CFLAGS += -m64
ARCH_DEP_LDFLAGS += -m64

View File

@@ -0,0 +1,15 @@
# CONFIG.Common.solaris-x86_64-gnu
#
# $Id$
# This file is maintained by the build community.
#
# Definitions for solaris-x86_64 gnu compiler target archs
# Sites may override these definitions in CONFIG_SITE.Common.solaris-x86_64-gnu
#-------------------------------------------------------
# Include definitions common to all solaris-x86-gnu target archs
include $(CONFIG)/os/CONFIG.Common.solaris-x86-gnu
ARCH_DEP_CFLAGS += -m64
ARCH_DEP_LDFLAGS += -m64
#ARCH_DEP_LDFLAGS += -L$(GNU_LIB)/amd64 -R$(GNU_LIB)/amd64

View File

@@ -20,6 +20,4 @@ ARCH_DEP_CFLAGS = -m486
ARCH_DEP_CXXFLAGS += -x 'c++'
ARCH_DEP_CFLAGS += -fno-defer-pop
# Allow site overrides
-include $(CONFIG)/os/CONFIG_SITE.Common.vxWorks-486

View File

@@ -0,0 +1,14 @@
# CONFIG.Common.vxWorks-486-debug
#
# $Id$
# This file is maintained by the build community.
#
# Definitions for vxWorks-486-debug target archs
# Sites may override these definitions in CONFIG_SITE.Common.vxWorks-486-debug
#-------------------------------------------------------
# Include definitions common to all vxWorks archs
include $(CONFIG)/os/CONFIG.Common.vxWorks-486
CROSS_OPT = NO

View File

@@ -0,0 +1,14 @@
# CONFIG.Common.vxWorks-68040-debug
#
# $Id$
# This file is maintained by the build community.
#
# Definitions for vxWorks-68040-debug target archs
# Sites may override these definitions in CONFIG_SITE.Common.vxWorks-68040-debug
#-------------------------------------------------------
# Include definitions common to all vxWorks archs
include $(CONFIG)/os/CONFIG.Common.vxWorks-68040
CROSS_OPT = NO

View File

@@ -0,0 +1,14 @@
# CONFIG.Common.vxWorks-68040lc-debug
#
# $Id$
# This file is maintained by the build community.
#
# Definitions for vxWorks-68040lc-debug target archs
# Sites may override these definitions in CONFIG_SITE.Common.vxWorks-68040lc-debug
#-------------------------------------------------------
# Include definitions common to all vxWorks archs
include $(CONFIG)/os/CONFIG.Common.vxWorks-68040lc
CROSS_OPT = NO

View File

@@ -0,0 +1,14 @@
# CONFIG.Common.vxWorks-68060-debug
#
# $Id$
# This file is maintained by the build community.
#
# Definitions for vxWorks-68060-debug target archs
# Sites may override these definitions in CONFIG_SITE.Common.vxWorks-68060-debug
#-------------------------------------------------------
# Include definitions common to all vxWorks archs
include $(CONFIG)/os/CONFIG.Common.vxWorks-68060
CROSS_OPT = NO

View File

@@ -0,0 +1,14 @@
# CONFIG.Common.vxWorks-mpc8540-debug
#
# $Id$
# This file is maintained by the build community.
#
# Definitions for vxWorks-mpc8540-debug target archs
# Sites may override these definitions in CONFIG_SITE.Common.vxWorks-mpc8540-debug
#-------------------------------------------------------
# Include definitions common to all vxWorks archs
include $(CONFIG)/os/CONFIG.Common.vxWorks-mpc8540
CROSS_OPT = NO

View File

@@ -0,0 +1,14 @@
# CONFIG.Common.vxWorks-pentium-debug
#
# $Id$
# This file is maintained by the build community.
#
# Definitions for vxWorks-pentium-debug target archs
# Sites may override these definitions in CONFIG_SITE.Common.vxWorks-pentium-debug
#-------------------------------------------------------
# Include definitions common to all vxWorks archs
include $(CONFIG)/os/CONFIG.Common.vxWorks-pentium
CROSS_OPT = NO

View File

@@ -0,0 +1,14 @@
# CONFIG.Common.vxWorks-ppc603-debug
#
# $Id$
# This file is maintained by the build community.
#
# Definitions for vxWorks-ppc603-debug target archs
# Sites may override these definitions in CONFIG_SITE.Common.vxWorks-ppc603-debug
#-------------------------------------------------------
# Include definitions common to all vxWorks archs
include $(CONFIG)/os/CONFIG.Common.vxWorks-ppc603
CROSS_OPT = NO

View File

@@ -0,0 +1,14 @@
# CONFIG.Common.vxWorks-ppc603_long-debug
#
# $Id$
# This file is maintained by the build community.
#
# Definitions for vxWorks-ppc603_long-debug target archs
# Sites may override these definitions in CONFIG_SITE.Common.vxWorks-ppc603_long-debug
#-------------------------------------------------------
# Include definitions common to all vxWorks archs
include $(CONFIG)/os/CONFIG.Common.vxWorks-ppc603_long
CROSS_OPT = NO

View File

@@ -16,6 +16,9 @@ ARCH_CLASS = ppc
# Architecture specific build flags
ARCH_DEP_CPPFLAGS = -DCPU=PPC604
ARCH_DEP_CFLAGS = -mcpu=604 -mstrict-align -mno-implicit-fp
ARCH_DEP_CFLAGS_2 = -mcpu=604 -mstrict-align -mno-implicit-fp
ARCH_DEP_CFLAGS_3 = -mcpu=604 -mstrict-align -mno-implicit-fp
ARCH_DEP_CFLAGS_4 = -mcpu=604 -mstrict-align -fno-implicit-fp
ARCH_DEP_CFLAGS = $(ARCH_DEP_CFLAGS_$(VX_GNU_MAJOR_VERSION))
GNU_TARGET = powerpc-wrs-vxworks

View File

@@ -0,0 +1,14 @@
# CONFIG.Common.vxWorks-ppc604-debug
#
# $Id$
# This file is maintained by the build community.
#
# Definitions for vxWorks-ppc604-debug target archs
# Sites may override these definitions in CONFIG_SITE.Common.vxWorks-ppc604-debug
#-------------------------------------------------------
# Include definitions common to all vxWorks archs
include $(CONFIG)/os/CONFIG.Common.vxWorks-ppc604
CROSS_OPT = NO

View File

@@ -13,10 +13,10 @@ defval = $(if $(strip $(1),),$(1),$(2))
# Tell compiler to include altivec support; not available in 5.4
ALTIVEC_CFLAG_5.4 = THIS_VERSION_OF_VXWORKS DOES_NOT_SUPPORT_ALTIVEC
ALTIVEC_CFLAG_5.5 = -fvec
ALTIVEC_CFLAG_6.0 = -fvec
ALTIVEC_CFLAG_5.5 = -fvec -DALTIVEC
ALTIVEC_CFLAG_6.0 = -fvec -DALTIVEC
# From 6.1 onwards the compiler option changed
ALTIVEC_CFLAG = -maltivec
ALTIVEC_CFLAG = -maltivec -DALTIVEC
ARCH_DEP_CFLAGS += $(call defval,$(ALTIVEC_CFLAG_$(VXWORKS_VERSION)),$(ALTIVEC_CFLAG))

View File

@@ -0,0 +1,14 @@
# CONFIG.Common.vxWorks-ppc604_altivec-debug
#
# $Id$
# This file is maintained by the build community.
#
# Definitions for vxWorks-ppc604_altivec-debug target archs
# Sites may override these definitions in CONFIG_SITE.Common.vxWorks-ppc604_altivec-debug
#-------------------------------------------------------
# Include definitions common to all vxWorks archs
include $(CONFIG)/os/CONFIG.Common.vxWorks-ppc604_altivec
CROSS_OPT = NO

View File

@@ -1,4 +1,4 @@
# $Id
# $Id$
#
# Definitions for vxWorks-ppc604 targets with >32MB of RAM
# Site-specific overrides go in CONFIG_SITE.Common.vxWorks-ppc604_long

View File

@@ -0,0 +1,14 @@
# CONFIG.Common.vxWorks-ppc604_long-debug
#
# $Id$
# This file is maintained by the build community.
#
# Definitions for vxWorks-ppc604_long-debug target archs
# Sites may override these definitions in CONFIG_SITE.Common.vxWorks-ppc604_long-debug
#-------------------------------------------------------
# Include definitions common to all vxWorks archs
include $(CONFIG)/os/CONFIG.Common.vxWorks-ppc604_long
CROSS_OPT = NO

View File

@@ -65,7 +65,7 @@ OBJLIB_SUFFIX = Library.o
OBJLIBNAME = $(addsuffix $(OBJLIB_SUFFIX),$(basename $(OBJLIB)))
OBJLIB_LD_OBJS += $(addsuffix $(OBJ),$(basename $(OBJLIB_SRCS) $(OBJLIB_OBJS)))
PRODTARGETS += $(OBJLIBNAME)
INSTALL_PROD += $(OBJLIBNAME:%=$(INSTALL_BIN)/%)
INSTALL_PROD = $(OBJLIBNAME:%=$(INSTALL_BIN)/%)
OBJLIB_MUNCHNAME += $(OBJLIBNAME:%$(OBJ)=%$(MUNCH_SUFFIX))
INSTALL_MUNCHS += $(OBJLIB_MUNCHNAME:%=$(INSTALL_BIN)/%)
PRODTARGETS += $(OBJLIB_MUNCHNAME)
@@ -82,12 +82,19 @@ VXWORKS_MAJOR_VERSION = $(basename $(basename $(VXWORKS_VERSION)))
# These are needed for vxWorks 6.x; the GNU toolset version number
# is in the path to the compiler tools:
VX_GNU_VERSION_5.4 = 2.95
VX_GNU_VERSION_5.5 = 2.96
VX_GNU_VERSION_6.0 = 3.3.2
VX_GNU_VERSION_6.1 = 3.3.2
VX_GNU_VERSION_6.2 = 3.3.2
VX_GNU_VERSION_6.3 = 3.4.4
VX_GNU_VERSION_6.4 = 3.4.4
VX_GNU_VERSION_6.5 = 3.4.4
VX_GNU_VERSION_6.6 = 4.1.2
VX_GNU_VERSION = $(VX_GNU_VERSION_$(VXWORKS_VERSION))
VX_GNU_MAJOR_VERSION = $(basename $(basename $(VX_GNU_VERSION)))
#--------------------------------------------------
# Fix WIND_BASE for vxWorks 6.x on linux
# NB: We know the value of WIND_HOST_TYPE here, but not VXWORKS_VERSION
@@ -114,12 +121,20 @@ GNU_DIR_5 = $(WIND_BASE)/host/$(WIND_HOST_TYPE)
GNU_DIR_6 = $(WIND_BASE)/gnu/$(VX_GNU_VERSION)-vxworks-$(VXWORKS_VERSION)/$(WIND_HOST_TYPE)
GNU_DIR = $(GNU_DIR_$(VXWORKS_MAJOR_VERSION))
# GCC_EXEC_PREFIX considered harmful since vxWorks 6 moved it
unexport GCC_EXEC_PREFIX
#--------------------------------------------------
# C++ host processing
NM = $(GNU_BIN)/$(CMPLR_PREFIX)nm$(CMPLR_SUFFIX)$(HOSTEXE)
NM_DIR_5 = $(GNU_BIN)
NM_DIR_6.0 = $(GNU_BIN)
NM_DIR_6.1 = $(GNU_BIN)
NM_DIR_6.2 = $(GNU_BIN)
NM_DIR_6.3 = $(GNU_BIN)
NM_DIR_6.4 = $(GNU_BIN)
NM_DIR_6.5 = $(GNU_BIN)
NM_DIR_6.6 = $(WIND_BASE)/workbench-$(WORKBENCH_VERSION)/$(WIND_HOST_TYPE)/bin
NM_DIR_6 = $(NM_DIR_$(VXWORKS_VERSION))
NM_DIR = $(NM_DIR_$(VXWORKS_MAJOR_VERSION))
NM = $(NM_DIR)/$(CMPLR_PREFIX)nm$(CMPLR_SUFFIX)$(HOSTEXE)
#--------------------------------------------------
# The follow 2 exports prevent gnu cross-compiler

View File

@@ -13,22 +13,15 @@ include $(CONFIG)/os/CONFIG.Common.UnixCommon
OS_CLASS = WIN32
ARCH_CLASS = x86
EXE=.exe
COMPILER_CPPFLAGS = -D_REENTRANT
# Set runtime path for shared libraries
SHRLIBDIR_LDFLAGS += $(SHRLIB_DEPLIB_DIRS:%=-Wl,-rpath,%)
# Set runtime path for products
PRODDIR_LDFLAGS += $(PROD_DEPLIB_DIRS:%=-Wl,-rpath,%)
# Definitions used when COMMANDLINE_LIBRARY is READLINE
INCLUDES_READLINE = -I$(GNU_DIR)/include
LDFLAGS_READLINE += -L$(GNU_DIR)/lib
LDLIBS_READLINE = -lreadline
LDLIBS_READLINE = -lreadline -lcurses
OP_SYS_CXXFLAGS += -D__cplusplus
POSIX_CPPFLAGS = -D_POSIX_THREADS -D_POSIX_TIMERS
#POSIX_CPPFLAGS += -D_POSIX_SOURCE
POSIX_LDLIBS += -lpthread
ARCH_DEP_CFLAGS += -m32
ARCH_DEP_LDFLAGS += -m32
# With no-cygwin option:
# compiler defines _X86_ 1
@@ -39,14 +32,47 @@ OP_SYS_CXXFLAGS += -D__cplusplus
# compiler defines _WIN32 1
# compiler defines WIN32 1
# compiler defines WINNT 1
# compiler defines __GNUC__ 3
# compiler does not define __unix __unix__ unix
# compiler does not define __CYGWIN__ __CYGWIN32__
# Overrides -DUNIX from CONFIG.Common.UnixCommon
OP_SYS_CPPFLAGS = -mno-cygwin
LIBRARY_LD_RESS=
OP_SYS_LDFLAGS += -mno-cygwin
OP_SYS_LDLIBS = -lws2_32 -ladvapi32 -luser32 -lkernel32 -lwinmm
EXE=.exe
VISC_DLL_NO = -DEPICS_DLL_NO
VISC_DLL_YES =
VISC_DLL = $(VISC_DLL_$(SHARED_LIBRARIES))
STATIC_CFLAGS_YES= $(VISC_DLL)
STATIC_CFLAGS_NO= $(VISC_DLL) -D_DLL
STATIC_CXXFLAGS_YES= $(VISC_DLL)
STATIC_CXXFLAGS_NO= $(VISC_DLL) -D_DLL
# adjust names of libraries to build
#
# But: if there are no objects LIBRARY_LD_OBJS to include
# in this library (may be for e.g. base/src/libCompat
# on some archs), don't define (and build) any library!
SHRLIB_PREFIX=
SHRLIB_SUFFIX=.dll
SHRLIBNAME_YES = $(BUILD_LIBRARY:%=%$(SHRLIB_SUFFIX))
LOADABLE_SHRLIB_PREFIX=
LOADABLE_SHRLIB_SUFFIX=.dll
LOADABLE_SHRLIBNAME = $(LOADABLE_BUILD_LIBRARY:%=%$(LOADABLE_SHRLIB_SUFFIX))
#
# When SHARED_LIBRARIES is YES we are building a DLL link library
# and when SHARED_LIBRARIES is NO we are building an object library
#
LIB_PREFIX=
LIB_SUFFIX=.lib
DLL_LINK_LIBNAME_YES = $(BUILD_LIBRARY:%=%$(LIB_SUFFIX))
DLL_LINK_LIBNAME = $(DLL_LINK_LIBNAME_$(SHARED_LIBRARIES))
LIBNAME_NO = $(BUILD_LIBRARY:%=%$(LIB_SUFFIX))
LIBNAME = $(LIBNAME_$(SHARED_LIBRARIES))
# dll install location
INSTALL_SHRLIB = $(INSTALL_BIN)

View File

@@ -13,21 +13,13 @@ include $(CONFIG)/os/CONFIG.Common.UnixCommon
OS_CLASS = WIN32
ARCH_CLASS = x86
EXE=.exe
# Library used when COMMANDLINE_LIBRARY is READLINE
LDLIBS_READLINE = -lreadline
# Set runtime path for shared libraries
SHRLIBDIR_LDFLAGS += $(SHRLIB_DEPLIB_DIRS:%=-Wl,-rpath,%)
# Set runtime path for products
PRODDIR_LDFLAGS += $(PROD_DEPLIB_DIRS:%=-Wl,-rpath,%)
# Definitions used when COMMANDLINE_LIBRARY is READLINE
LDLIBS_READLINE = -lreadline -lcurses
ARCH_DEP_CFLAGS += -m32
ARCH_DEP_LDFLAGS += -m32
# Compiler defines _X86_ 1
# Compiler defines __MSVCRT__ 1
# Compiler defines __MINGW32__ 1
# Compiler defines __WIN32 1
@@ -40,12 +32,42 @@ PRODDIR_LDFLAGS += $(PROD_DEPLIB_DIRS:%=-Wl,-rpath,%)
# Compiler does not define __unix __unix__ unix
# Override for -DUNIX from CONFIG.Common.UnixCommon
OP_SYS_CPPFLAGS =
OP_SYS_CPPFLAGS = -D_MINGW
OP_SYS_CXXFLAGS += -D__cplusplus
EXE=.exe
LIBRARY_LD_RESS=
VISC_DLL_NO = -DEPICS_DLL_NO
VISC_DLL_YES =
VISC_DLL = $(VISC_DLL_$(SHARED_LIBRARIES))
STATIC_CFLAGS_YES= $(VISC_DLL)
STATIC_CFLAGS_NO= $(VISC_DLL) -D_DLL
STATIC_CXXFLAGS_YES= $(VISC_DLL)
STATIC_CXXFLAGS_NO= $(VISC_DLL) -D_DLL
# adjust names of libraries to build
#
# But: if there are no objects LIBRARY_LD_OBJS to include
# in this library (may be for e.g. base/src/libCompat
# on some archs), don't define (and build) any library!
SHRLIB_PREFIX=
SHRLIB_SUFFIX=.dll
SHRLIBNAME_YES = $(BUILD_LIBRARY:%=%$(SHRLIB_SUFFIX))
LOADABLE_SHRLIB_PREFIX=
LOADABLE_SHRLIB_SUFFIX=.dll
LOADABLE_SHRLIBNAME = $(LOADABLE_BUILD_LIBRARY:%=%$(LOADABLE_SHRLIB_SUFFIX))
#
# When SHARED_LIBRARIES is YES we are building a DLL link library
# and when SHARED_LIBRARIES is NO we are building an object library
#
LIB_PREFIX=
LIB_SUFFIX=.lib
DLL_LINK_LIBNAME_YES = $(BUILD_LIBRARY:%=%$(LIB_SUFFIX))
DLL_LINK_LIBNAME = $(DLL_LINK_LIBNAME_$(SHARED_LIBRARIES))
LIBNAME_NO = $(BUILD_LIBRARY:%=%$(LIB_SUFFIX))
LIBNAME = $(LIBNAME_$(SHARED_LIBRARIES))
# dll install location
INSTALL_SHRLIB = $(INSTALL_BIN)
OP_SYS_LDLIBS = -lws2_32 -ladvapi32 -luser32 -lkernel32 -lwinmm
#STATIC_LDLIBS_YES=-lws2_32 -ladvapi32 -luser32 -lkernel32 -lwinmm

View File

@@ -1,8 +1,8 @@
# CONFIG.aix-ppc.aix-ppc
# CONFIG.aix-ppc-gnu.aix-ppc-gnu
#
#
# Definitions for aix-ppc host - aix-ppc target builds
# Sites may override these definitions in CONFIG_SITE.aix-ppc.aix-ppc
# Definitions for aix-ppc-gnu host - aix-ppc-gnu target builds
# Sites may override these definitions in CONFIG_SITE.aix-ppc-gnu.aix-ppc-gnu
#-------------------------------------------------------
# Include common gnu compiler definitions
@@ -14,6 +14,3 @@ AR = ar
ARFLAGS = rcv
RANLIB = ranlib -t
SHRLIB_LDFLAGS = -shared -fPIC
LOADABLE_SHRLIB_LDFLAGS = -shared -fPIC

View File

@@ -16,6 +16,5 @@ OSITHREAD_USE_DEFAULT_STACK = NO
HOSTEXE=.exe
# Needed to find dlls for base installed build tools (antelope,eflex,...)
PATH := $(EPICS_BASE_TOOLS_BIN):$(PATH)
PATH := $(EPICS_BASE_BIN):$(PATH)

View File

@@ -9,23 +9,21 @@
# Include common gnu compiler definitions
include $(CONFIG)/CONFIG.gnuCommon
## Shared libraries for cygwin not implemented yet
SHARED_LIBRARIES=NO
# cygwin's gcc, g++, ar, ld, and ranlib must be in user's path
CC = gcc
CCC = g++
AR = ar -rc
LD = ld -r
RANLIB = ranlib
RES=.coff
RCCMD = windres $(INCLUDES) $< $@
# Avoid position-independent code is always generated message
# No -fPIC avoids "-fPIC ignored for target (all code is position independent)"
SHRLIB_CFLAGS =
SHRLIB_LDFLAGS = -shared -Wl,--out-implib,$(LIB_PREFIX)$*$(LIB_SUFFIX)
LOADABLE_SHRLIB_LDFLAGS = -shared -Wl,--out-implib,$(LIB_PREFIX)$*$(LIB_SUFFIX)
# -ansi eliminates strdup
CONFORM_CFLAGS_ANSI =
CONFORM_CFLAGS_STRICT = -pedantic
CONFORM_CXXFLAGS_NORMAL =
CONFORM_CXXFLAGS_STRICT = -pedantic
# Override linking with gcc library from CONFIG.gnuCommon
GNU_LDLIBS_YES =

View File

@@ -0,0 +1,15 @@
# CONFIG.cygwin-x86.cygwin-x86-debug
#
# $Id$
# This file is maintained by the build community.
#
# Definitions for cygwin-x86 host - cygwin-x86-debug target build
# Sites may override these definitions in CONFIG_SITE.cygwin-x86.cygwin-x86-debug
#-------------------------------------------------------
include $(CONFIG)/os/CONFIG.Common.cygwin-x86
include $(CONFIG)/os/CONFIG.cygwin-x86.cygwin-x86
BUILD_CLASS = HOST
HOST_OPT = NO

View File

@@ -0,0 +1,14 @@
# CONFIG.darwin-ppc.darwin-ppc-debug
#
# $Id$
# This file is maintained by the build community.
#
# Definitions for darwin-ppc host - darwin-ppc-debug target build with debug compiler flags
# Sites may override these definitions in CONFIG_SITE.darwin-ppc.darwin-ppc-debug
#-------------------------------------------------------
-include $(CONFIG)/os/CONFIG.Common.darwin-ppc
-include $(CONFIG)/os/CONFIG.darwin-ppc.darwin-ppc
BUILD_CLASS=HOST
HOST_OPT = NO

View File

@@ -3,7 +3,7 @@
# $Id$
# This file is maintained by the build community.
#
# Definitions for Darwin 'universal' (PowerPC, Intel) host builds
# Definitions for Darwin universal PowerPC + x86 host builds
# Sites may override these definitions in CONFIG_SITE.darwin-ppcx86.Common
#-------------------------------------------------------

View File

@@ -0,0 +1,14 @@
# CONFIG.darwin-x86.darwin-x86-debug
#
# $Id$
# This file is maintained by the build community.
#
# Definitions for darwin-x86 host - darwin-x86-debug target build with debug compiler flags
# Sites may override these definitions in CONFIG_SITE.darwin-x86.darwin-x86-debug
#-------------------------------------------------------
-include $(CONFIG)/os/CONFIG.Common.darwin-x86
-include $(CONFIG)/os/CONFIG.darwin-x86.darwin-x86
BUILD_CLASS=HOST
HOST_OPT = NO

View File

@@ -1,20 +1,35 @@
# CONFIG.Common.darwinCommon
# CONFIG.darwinCommon.darwinCommon
#
# $Id$
# This file is maintained by the build community.
#
# Definitions for darwin target builds
# Sites may override these definitions in CONFIG_SITE.Common.darwin-<arch>
# Common definitions for darwin builds
# Sites may override these definitions in CONFIG_SITE.darwinCommon.darwinCommon
#-------------------------------------------------------
# Include definitions common to all Unix targets
include $(CONFIG)/os/CONFIG.Common.UnixCommon
# Include common gnu compiler definitions
include $(CONFIG)/CONFIG.gnuCommon
#
# Set OS-specific information
#
OS_CLASS = Darwin
#
# Build architecture flags
# For Darwin, ARCH_CLASS may be empty, or may contain a list of CPU
# architectures which must be valid arguments to the -arch options
# for the cc and ld commands.
# ARCH_CLASS is defined in a CONFIG_SITE file which is not loaded
# until after this file.
#
ARCH_DEP_FLAGS = $(addprefix -arch ,$(ARCH_CLASS))
ARCH_DEP_CFLAGS += $(ARCH_DEP_FLAGS)
ARCH_DEP_LDFLAGS += $(ARCH_DEP_FLAGS)
#
# Special flags for Darwin
# No common blocks (as required when using shared libraries)
@@ -61,9 +76,6 @@ LDLIBS_READLINE = -lreadline
#
COMMANDLINE_LIBRARY=READLINE
# Include common gnu compiler definitions
include $(CONFIG)/CONFIG.gnuCommon
GNU_DIR = /usr
CC = $(GNU_BIN)/cc
@@ -94,8 +106,7 @@ vpath %.m $(USR_VPATH) $(ALL_SRC_DIRS)
%.o: %.m
$(COMPILE.c) -c $<
#
# Pedantic produces way too many unnecessary messages
#
CONFORM_CFLAGS_STRICT=-ansi
CONFORM_CXXFLAGS_STRICT=-ansi
#--------------------------------------------------
# Allow site overrides
-include $(CONFIG)/os/CONFIG_SITE.darwinCommon.darwinCommon
-include $(CONFIG)/os/CONFIG_SITE.$(EPICS_HOST_ARCH).darwinCommon

View File

@@ -1,19 +1,14 @@
# $Id$
#
# Definitions for freebsd-x86_64 host - freebsd-x86_64 target builds
# Sites may override these definitions in CONFIG_SITE.freebsd-x86_64.freebsd-x86_64
# Definitions for freebsd-x86 host - freebsd-x86 target builds
# Sites may override these definitions in CONFIG_SITE.freebsd-x86.freebsd-x86
#-------------------------------------------------------
# Include common gnu compiler definitions
include $(CONFIG)/CONFIG.gnuCommon
GNU_DIR = /usr
STATIC_LDFLAGS_YES= -Wl,-Bstatic
STATIC_LDFLAGS_NO=
STATIC_LDLIBS_YES= -Wl,-Bdynamic
STATIC_LDLIBS_NO=
SHRLIB_LDFLAGS += -shared -fPIC
LOADABLE_SHRLIB_LDFLAGS = -shared -fPIC

View File

@@ -7,13 +7,8 @@
# Include common gnu compiler definitions
include $(CONFIG)/CONFIG.gnuCommon
GNU_DIR = /usr
STATIC_LDFLAGS_YES= -Wl,-Bstatic
STATIC_LDFLAGS_NO=
STATIC_LDLIBS_YES= -Wl,-Bdynamic
STATIC_LDLIBS_NO=
SHRLIB_LDFLAGS += -shared -fPIC
LOADABLE_SHRLIB_LDFLAGS = -shared -fPIC

View File

@@ -1,12 +0,0 @@
# CONFIG.hpux-parisc-gnu.Common
#
# $Id$
# This file is maintained by the build community.
#
# Definitions for hpux-parisc gnu compiler host builds
# Sites may override these definitions in CONFIG_SITE.hpux-parisc-gnu.Common
#-------------------------------------------------------
#Include definitions common to hpux-parisc hosts
include $(CONFIG)/os/CONFIG.hpux-parisc.Common

View File

@@ -1,29 +0,0 @@
# CONFIG.hpux-parisc-gnu.hpux-parisc-gnu
#
# $Id$
# This file is maintained by the build community.
#
# Definitions for hpux-parisc gnu compiler host - hpux-parisc gnu compiler target builds
# Sites may override these definitions in CONFIG_SITE.hpux-parisc-gnu.hpux-parisc-gnu
#-------------------------------------------------------
# Include common gnu compiler definitions
include $(CONFIG)/CONFIG.gnuCommon
AR = ar -rc
RANLIB=
LD = ld -r
STATIC_LDFLAGS_YES= -Wl,-a,archive
STATIC_LDFLAGS_NO =
STATIC_LDLIBS_YES = -Wl,-a,default
STATIC_LDLIBS_NO =
# Switch explicitly from default DCE threads to posix threads
POSIX_CPPFLAGS += -D_REENTRANT -D_PTHREADS -D_POSIX_C_SOURCE=199506L
USR_SYS_LIBS += pthread
# C++ templates need PIC definition also in link phase
SHRLIB_LDFLAGS += -shared -fPIC
LOADABLE_SHRLIB_LDFLAGS += $(SHRLIB_LDFLAGS)

View File

@@ -1,13 +0,0 @@
# CONFIG.hpux-parisc.Common
#
# $Id$
# This file is maintained by the build community.
#
# Definitions for hpux-parisc host archs
# Sites may override these definitions in CONFIG_SITE.hpux-parisc.Common
#-------------------------------------------------------
#Include definitions common to unix hosts
include $(CONFIG)/os/CONFIG.UnixCommon.Common
WIND_HOST_TYPE = parisc-hpux10

Some files were not shown because too many files have changed in this diff Show More