Compare commits

...

950 Commits

Author SHA1 Message Date
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
Andrew Johnson
d468d7f462 R3.14.9-RC1 2007-01-26 20:29:41 +00:00
Andrew Johnson
8dfea0ce50 Added description of the NPTL Abort issue. 2007-01-26 19:03:56 +00:00
Andrew Johnson
cda58de74a Win32 doesn't support line buffering, so fflush after every printf. 2007-01-25 21:21:05 +00:00
Andrew Johnson
2d031c46a2 Fixed bad example code. 2007-01-24 22:05:16 +00:00
Janet B. Anderson
5e4b2d03ad More changes for osf-alpha from Kazuro Furukawa. 2007-01-22 15:25:47 +00:00
Jeff Hill
db067c9780 1) replaced elimateExcessiveSendBacklog with
requestMessageBytesPending and flush
2) Removed callback control guards from this interface
2007-01-11 22:07:47 +00:00
Jeff Hill
3ec09adf20 added code to catch bugs where a guard is used when it is released 2007-01-11 22:04:44 +00:00
Jeff Hill
57e9e59714 fixed a bug where the callback control gaurd was used from a different thread
than the one that created it
2007-01-11 22:02:47 +00:00
Jeff Hill
cde78f0b70 fixed a bug where the callback control gaurd was used from a different thread
than the one that created it
2007-01-11 21:45:58 +00:00
Jeff Hill
6ed4f091b2 1) replaced elimateExcessiveSendBacklog with
requestMessageBytesPending and flush
2) Removed callback control guards from this interface
2007-01-11 21:43:40 +00:00
Jeff Hill
bb625c7f25 flushBlockThreshold no longer takes a message size argument 2007-01-11 21:38:59 +00:00
Jeff Hill
47f5203faa improved doc on preemptive callback mode 2007-01-11 21:37:43 +00:00
Jeff Hill
287743f140 1) replaced elimateExcessiveSendBacklog with
requestMessageBytesPending and flush
2) Removed callback control guards from this interface
2007-01-11 21:33:31 +00:00
Janet B. Anderson
a841a79194 Added changes from Kazuro FURUKAWA (modified for R3.14.9). 2007-01-09 19:02:15 +00:00
Andrew Johnson
9e2c64ecfd Make vxDevWriteProbe() actually do a write - Mantis #280. 2007-01-09 00:21:43 +00:00
Jeff Hill
6fb7d5255b made comnsistent with workaround for T202 issue 2007-01-09 00:00:12 +00:00
Jeff Hill
00fc1ce769 workaround for T202 issue 2007-01-08 23:59:56 +00:00
W. Eric Norum
852afdc4d8 Create properly-formatted POSIX TZ environment variable from EPICS_TIMEZONE. 2007-01-08 15:11:31 +00:00
Andrew Johnson
ae06349563 Make fracFormatFind static.
Removed 'const' from epicsTime::strftime pointer args to match prototype,
needed by Sun C++ complier which doesn't find the symbol otherwise.
2007-01-02 19:37:57 +00:00
Andrew Johnson
a710bff122 Fixed testPlan, added test for %% in strtfime format strings. 2007-01-02 19:30:04 +00:00
Jeff Hill
fe2b0e599d fix dll exports 2006-12-22 21:56:46 +00:00
Jeff Hill
255751f420 export shared lib symbols 2006-12-22 21:36:13 +00:00
Jeff Hill
7787f5906d use temporaries 2006-12-22 21:32:10 +00:00
Jeff Hill
de34f5de03 removed workaround for problems in visual C++ 8.0 2006-12-22 19:43:59 +00:00
Jeff Hill
40bb69f5fd workaround for problems in visual C++ 8.0 2006-12-22 19:43:04 +00:00
Jeff Hill
6ce83fc9e4 fixed throw specification 2006-12-22 19:35:37 +00:00
Jeff Hill
e0b4715c98 fixed mantis 279 - epicsTimeToStrftime problem with %06f format 2006-12-22 18:57:53 +00:00
Jeff Hill
e989af9b01 fix for dec c++ compiler detected issue 2006-12-21 22:15:42 +00:00
Andrew Johnson
3c1b10dfce Clear out old issues. 2006-12-21 20:09:13 +00:00
Andrew Johnson
27342322ec Cygwin make issue. 2006-12-21 19:39:03 +00:00
Andrew Johnson
3d3ad47e47 Added test using timeout = DBL_MAX. 2006-12-21 17:11:33 +00:00
Andrew Johnson
f2154fec35 Fix for Mantis #254. 2006-12-21 16:47:56 +00:00
Andrew Johnson
6bed83c70e OSF-Alpha. 2006-12-21 15:52:04 +00:00
Andrew Johnson
4f2cb790e5 Additional instances needed for 3.14.9-pre2 to load. 2006-12-21 15:44:41 +00:00
Andrew Johnson
15f3358e39 Prevent vxWorks 5.4 builds of altivec targets. 2006-12-20 23:28:12 +00:00
Andrew Johnson
285f1e03ba Wind River don't support osf-alpha as a vxWorks host architecture. 2006-12-20 23:25:56 +00:00
Janet B. Anderson
03e9ce2855 Moved ca to immediately follow libCom. 2006-12-20 21:21:44 +00:00
Janet B. Anderson
c5563644db Removed code that makes each depend file a target. 2006-12-20 15:25:36 +00:00
Janet B. Anderson
75aa6bbf97 Deleted unused definition. 2006-12-19 22:34:28 +00:00
Janet B. Anderson
8b8b61b797 Removed obsolete comment. 2006-12-19 22:24:59 +00:00
Janet B. Anderson
8540fdd813 Added gcc version requirement. 2006-12-19 21:46:26 +00:00
Janet B. Anderson
23c1596d22 Applied patches for recognizing external dependencies from B. Franksen. 2006-12-19 19:43:02 +00:00
Janet B. Anderson
9e292ca085 Applied patches for recognizing external dependencies from B. Franksen.
Print one file dependancy per line.
2006-12-19 19:34:42 +00:00
Janet B. Anderson
410eca1633 Removing os/alpha directory and adding osf directory and files. 2006-12-19 17:14:08 +00:00
Janet B. Anderson
44d742e147 Initail version from Kazuro Furukawa. 2006-12-19 17:08:02 +00:00
Janet B. Anderson
abe127c6f9 Initial version from Kazuro Furukawa. 2006-12-19 17:08:01 +00:00
Janet B. Anderson
beacc52519 Changes for osf-alpha from Kazuro Furukawa. 2006-12-19 17:03:02 +00:00
Janet B. Anderson
5a9e8d156e Initial version from Kazuro Furukawa. 2006-12-19 17:02:01 +00:00
Janet B. Anderson
239cd857a8 Added osf-alpha files from Kazuro FURUKAWA (modified for R3.14.9). 2006-12-19 16:57:05 +00:00
Janet B. Anderson
dea42bdf66 Initial version. 2006-12-19 16:50:54 +00:00
Andrew Johnson
196f107432 Breakpoint initialization and cleanup. 2006-12-19 16:29:38 +00:00
Andrew Johnson
2a7c2e9d26 Breakpoint initialization and cleanup. 2006-12-19 16:20:47 +00:00
Andrew Johnson
556724f050 Fixed warning. 2006-12-12 21:04:19 +00:00
Andrew Johnson
0f0ff1eec0 Fix for when size=1. 2006-12-12 20:44:53 +00:00
Andrew Johnson
b937142ff3 Fixes for vxWorks: permit multiple runs, don't use assert(). 2006-12-12 19:58:52 +00:00
Andrew Johnson
a6527232cf Revert to -CVS 2006-12-11 22:32:14 +00:00
Andrew Johnson
d820ed034a R3.14.9-pre2 2006-12-11 22:30:17 +00:00
Andrew Johnson
4452f97536 Might as well build the softIoc on everything... 2006-12-11 22:27:00 +00:00
Andrew Johnson
c48bf48f52 Don't set GCC_EXEC_PREFIX for any vxWorks target. 2006-12-11 22:21:10 +00:00
Andrew Johnson
bf77401cea Need to have built the RTEMS stuff before any programs. 2006-12-11 21:53:43 +00:00
Janet B. Anderson
d4adf4a0d6 Move softIoc after RTEMS dir. 2006-12-11 21:23:15 +00:00
Andrew Johnson
f2fac70923 Can't use ifeq(VXWORKS_VERSION) because we don't know its value yet. 2006-12-11 19:46:39 +00:00
Jeff Hill
a00a246b0d fixed html 4.01 compliance issues 2006-12-11 18:56:00 +00:00
Janet B. Anderson
537f9954bf Dont do a STATIC build. 2006-12-11 18:20:32 +00:00
Janet B. Anderson
d206dd92f6 Use PERL macro definition. 2006-12-11 18:12:42 +00:00
Andrew Johnson
f50c49131c Make it <cstddef> so it builds everywhere else. 2006-12-11 17:51:48 +00:00
Janet B. Anderson
55986a1e92 Fix for Borland build. 2006-12-11 17:46:23 +00:00
Andrew Johnson
5fa24ad581 Added new target arch's to comments. 2006-12-11 17:04:54 +00:00
Andrew Johnson
9a81831a85 vxWorks optimization. 2006-12-11 16:53:45 +00:00
Andrew Johnson
11a865805e Make test bail out if socket bind fails; usually there's a CAS running. 2006-12-11 16:52:36 +00:00
Andrew Johnson
bcc41d0e72 Changed build order: build tests immediately after their parent.
Move template stuff lower down.
2006-12-09 00:04:15 +00:00
Andrew Johnson
fc4b09f84d Changed headings to show previous and new release numbers.
New architectures listed.
2006-12-09 00:02:41 +00:00
Andrew Johnson
682bb4150c Incorporated vxWorks 6 settings from SNS.
Added the vxWorks-mpc8540 architecture.
Added the ppc604_altivec sub-architecture.
Some cleanup.
2006-12-09 00:01:57 +00:00
Andrew Johnson
fc98fe2335 Added my local toolset path. 2006-12-08 23:27:18 +00:00
Andrew Johnson
8a4e442705 menuSimmRAW fixes. 2006-12-07 23:32:48 +00:00
Andrew Johnson
11ef0bca03 Fixes for vxWorks 6.x. 2006-12-07 21:10:24 +00:00
Jeff Hill
1e9986a2ed fix for mantis 278 - PCAS should refresh strng table cache for enum PV every time that a channel connects 2006-12-07 20:30:44 +00:00
Andrew Johnson
2e9bd68b2f Added freebsd-x86 support, modifying freebsd-x86_64 for commonality. 2006-12-07 20:05:20 +00:00
Jeff Hill
4840787079 use proper type for ioctl 2006-12-07 19:55:54 +00:00
Jeff Hill
2c9414a881 installed epics thread exit capabilities 2006-12-07 17:00:20 +00:00
Janet B. Anderson
99e9d60725 Replaced .o with $(OBJ). 2006-12-07 15:50:16 +00:00
Jeff Hill
f16d241662 installed epics thread exit capabilities 2006-12-07 00:49:19 +00:00
Andrew Johnson
cc9473339d Added freebsd-x86, fixed some freebsd-x86_64 stuff. 2006-12-06 23:31:39 +00:00
Andrew Johnson
a400c37cc7 Optimization fiddling, fix for linux-arm. 2006-12-06 23:28:06 +00:00
Andrew Johnson
c25282bf58 Can't override the two _LDFLAGS var's, have to append to them. 2006-12-06 22:35:21 +00:00
Andrew Johnson
3fe19655a1 Fixes for various GCC warnings. 2006-12-06 17:10:26 +00:00
Jeff Hill
724a589fe1 fixed warnings 2006-12-05 22:54:52 +00:00
Jeff Hill
b8bcfdcdda fixed warnings 2006-12-05 22:45:24 +00:00
Jeff Hill
da75453a22 fixed no address returned from devAllocAddress 2006-12-05 22:44:40 +00:00
Andrew Johnson
d25e7107a7 Really remove warning... 2006-12-05 22:28:28 +00:00
Andrew Johnson
e93b833c27 Cleaning up warnings. 2006-12-05 22:12:17 +00:00
Andrew Johnson
f0b99cc9c1 No version of vxWorks currently provides numeric_limits<T> ... 2006-12-05 21:44:01 +00:00
Jeff Hill
94dfec0999 fixed compiler warning 2006-12-05 19:56:28 +00:00
Andrew Johnson
88c68422af Fixes for cross-compiling shared libraries properly. 2006-12-05 19:43:20 +00:00
Andrew Johnson
db9f3d81a3 vxWorks 6 changes WIND_HOST_TYPE x86-linux2. 2006-12-05 19:40:00 +00:00
Jeff Hill
947822da70 use function template specialization instead of function overloading
hoping to workaround issues with gcc 4.0
2006-12-05 01:22:33 +00:00
Janet B. Anderson
f48fe4c1c0 Added WIN32_RUNTIME definitions. 2006-12-04 22:45:43 +00:00
Janet B. Anderson
4d30f6adaa Added test JAVA changes. 2006-12-04 22:44:31 +00:00
Janet B. Anderson
9fb0faf86e Modifies python dirs. Modified X11/Motif dirs. 2006-12-04 22:43:25 +00:00
Janet B. Anderson
f42e4195c5 Added JAVA_INC defination. 2006-12-04 22:41:51 +00:00
Janet B. Anderson
a3808ec393 Modified comment. 2006-12-04 22:40:46 +00:00
Janet B. Anderson
41786fef1f Added oag lib dir defs. Added JAVA_INC def. Added X11 and Motif comments. 2006-12-04 22:40:15 +00:00
Janet B. Anderson
82d59c8d75 Added JAVA_INC definition. 2006-12-04 22:38:38 +00:00
Janet B. Anderson
0fa08d07c8 Modified JAVA directories. Added oag directories. 2006-12-04 22:37:45 +00:00
Janet B. Anderson
a4ab66c867 Initial version. 2006-12-04 22:34:31 +00:00
Janet B. Anderson
565d931b4b Changes to add ALL library dirs to the runtime search option on link line. 2006-12-04 21:15:10 +00:00
Janet B. Anderson
e372769b45 Remove -ansi compiler option. 2006-12-04 17:41:15 +00:00
Janet B. Anderson
f011531538 Added SHARED_LIBRARIES=NO. 2006-12-04 17:30:12 +00:00
Andrew Johnson
52e28d7a7a Ok, so all vxWorks 5.x versions need the -include vxWorks.h flag... 2006-12-02 00:09:16 +00:00
Andrew Johnson
f4d3632afd Cleanup gcc warnings. 2006-12-01 23:58:23 +00:00
Andrew Johnson
22d9f942e2 Cleanup obscure gcc warning. 2006-12-01 23:57:04 +00:00
Andrew Johnson
29c43d0cdb Cleanup some of the more obscure gcc warnings. 2006-12-01 23:52:59 +00:00
Andrew Johnson
318e5247f1 Fix dependencies. 2006-12-01 23:48:21 +00:00
Ralph Lange
bdd9d96603 Fix for 3.13 compatibility (OBJLIB) 2006-12-01 18:25:17 +00:00
Jeff Hill
afc4bdd3be fixed comment 2006-12-01 16:34:01 +00:00
Jeff Hill
ce17ed5ae2 fixed gnu warning 2006-12-01 00:19:31 +00:00
Jeff Hill
e553c3ec56 added comment 2006-12-01 00:17:58 +00:00
Jeff Hill
bac905a5a9 hack for non-standard sun pro cstring 2006-12-01 00:11:05 +00:00
Jeff Hill
049e054c31 fixed win32 dll exports 2006-11-30 22:29:26 +00:00
Jeff Hill
634f37c225 fixed func and func proto dont match warning 2006-11-30 22:27:34 +00:00
Jeff Hill
0dd205f750 installed osdWireFormat.h 2006-11-30 22:20:10 +00:00
Jeff Hill
ee8eec3fdb installed 2006-11-30 22:03:40 +00:00
Jeff Hill
8de0f7bf7a removed 2006-11-30 22:03:22 +00:00
Andrew Johnson
fb15db1454 Updated for new release process. 2006-11-30 21:50:14 +00:00
Andrew Johnson
577b65a67f Return libraries to original order and re-add registryIoc, in case it matters. 2006-11-30 18:23:35 +00:00
Andrew Johnson
6c5dedead5 New iocshHost library. 2006-11-30 18:09:41 +00:00
Andrew Johnson
514bb7f897 Created an iocshHost library, added it to EPICS_BASE_HOST_LIBS 2006-11-30 18:09:15 +00:00
Jeff Hill
9785a839b7 fixed mantis 261 2006-11-29 21:50:31 +00:00
Jeff Hill
f2cc4a73e9 fixed gnu warnings 2006-11-29 21:37:05 +00:00
Andrew Johnson
d443b72d29 Added CAS, fixed some other wording and HTML encoding. 2006-11-29 20:29:06 +00:00
Janet B. Anderson
d3069f12bc Removed iocsh and registryIoc from EPICS_BASE_HOST_LIBS. 2006-11-29 19:25:27 +00:00
Janet B. Anderson
3b50639eef Added D_cplusplus c++ compiler option. Undefined LIBRARY_LD_RESS. 2006-11-29 16:37:09 +00:00
Janet B. Anderson
39128f134e Undefine LIBRARY_LD_RESS. 2006-11-29 16:32:26 +00:00
W. Eric Norum
6802509e6d Fix missed edit in previous change. 2006-11-29 13:00:12 +00:00
Jeff Hill
5b6a358fab fixed gnu build issue 2006-11-29 01:07:57 +00:00
Jeff Hill
bdc071f3c5 fix for mantis 276 - EDM on OS X gets access fault in ipAddrToAsciiEngine::allocate 2006-11-28 23:45:04 +00:00
Jeff Hill
de19586072 updated to accomodate what I shouldnt have forgotten about strict aliasing 2006-11-28 23:07:06 +00:00
Andrew Johnson
b61e4bcb59 Don't cast away const unnecessarily - gcc warning. 2006-11-28 21:33:55 +00:00
Andrew Johnson
4a98bdd599 Clear up gcc warnings. 2006-11-28 21:23:25 +00:00
Janet B. Anderson
54ab39d0cf Changes for R3.14.9. 2006-11-28 19:29:31 +00:00
Janet B. Anderson
af35f163ec Modified comment. 2006-11-28 19:16:12 +00:00
Janet B. Anderson
936f194885 Put quote marks aroung option with #. 2006-11-28 19:00:16 +00:00
Janet B. Anderson
5150a9404c Removed comment about CONFIG.Vx. 2006-11-28 18:56:50 +00:00
Jeff Hill
ecb43bedd9 cleaned up locking - this is an old code written w/o consideration of SMP
thread safe locking issues
2006-11-28 18:54:03 +00:00
Janet B. Anderson
1707e28d2e Changed "-xtarget=ultra -xarch=v9" to "-xarch=generic64". 2006-11-28 18:52:13 +00:00
Jeff Hill
91e3c129df db flush extra labor now returns void 2006-11-28 18:51:16 +00:00
Janet B. Anderson
b50c8f5882 Use definitions from CONFIG.Host.solaris. 2006-11-28 18:51:10 +00:00
Janet B. Anderson
47d7b63b4f Removed comment about CONFIG.Vx. 2006-11-28 18:50:20 +00:00
Janet B. Anderson
522e090992 Changes for solaris10. Added libraries -lc -lCstd. 2006-11-28 18:34:58 +00:00
Andrew Johnson
e16dc7852e Fixed gcc warnings. 2006-11-28 18:00:37 +00:00
Andrew Johnson
48337e2382 Fixed gcc '0 flag' warnings. 2006-11-28 17:04:18 +00:00
Janet B. Anderson
d23b8bb1d0 Added and modifiec definitons for win32-x86-cygwin build. 2006-11-28 16:57:01 +00:00
Janet B. Anderson
ce55fe1c78 Added OP_SYS_CPPFLAGS to CPPFLAGS definition. 2006-11-28 16:55:29 +00:00
Andrew Johnson
aa08e33707 Fixed problem saving hostnames in HAG. 2006-11-28 15:32:06 +00:00
Jeff Hill
c51438c597 fixed infinite recursion introduced by change in generic epicsThreadOnce code 2006-11-28 00:46:35 +00:00
Janet B. Anderson
0b481a519d Changed "-xtarget=ultra -xarch=v9" to " -xarch=generic64" 2006-11-27 20:23:03 +00:00
Janet B. Anderson
ec8e064333 Changed -KPIC to -xcode=pic32. 2006-11-27 20:20:37 +00:00
Janet B. Anderson
257c7fd23b Put quotes around option with # in manifest mt.exe command. 2006-11-27 20:11:45 +00:00
Andrew Johnson
1e72aa61f0 Reverting Janet's cygdrive change which she says breaks other Win32 builds.
Until Cygwin's version of Make gets fixed, use the mingw Make instead.
2006-11-21 22:52:41 +00:00
Janet B. Anderson
deeda7b04f Set OS_CLASS to Linux and ARCH_DEP_CFLAGS to override CONFIG.Host.Linux. 2006-11-20 23:11:33 +00:00
Janet B. Anderson
e7655058d0 Initial version. 2006-11-20 21:37:53 +00:00
Andrew Johnson
78afaf42f3 Revert to -CVS for snapshots. 2006-11-20 21:12:08 +00:00
Andrew Johnson
44ef13d8b2 Version for 3-14-9-pre1 2006-11-20 21:09:36 +00:00
Andrew Johnson
e9c984ff06 #include vxWorks.h needed for definition of NULL. 2006-11-20 20:53:31 +00:00
Andrew Johnson
e100e141a6 Make runtests work properly in non-HOST builds. 2006-11-20 17:38:36 +00:00
Andrew Johnson
26f27b3a69 Automate the running of callbackTest. 2006-11-20 17:14:05 +00:00
Andrew Johnson
52896cc78a Updated runtests wording again. 2006-11-20 16:31:39 +00:00
Andrew Johnson
52584a53e0 Made runtests a more generic target.
Ensure it doesn't fail if no tests are defined.
2006-11-20 16:25:01 +00:00
Janet B. Anderson
8fd5f456ce Cygwin Make 3.81 now requires /cygdrive/<drive>/... in fullpath names. 2006-11-20 16:23:51 +00:00
Janet B. Anderson
db3407a3ab Cygwin Make 3.81 now requires /cygdrive/<drive>/... in fullpath names. 2006-11-20 16:22:23 +00:00
W. Eric Norum
945182eac9 Remove duplicate typedef to which gcc objected. 2006-11-20 16:10:02 +00:00
Jeff Hill
b9acd32dfa fixed half duplex udp socket set up 2006-11-18 01:03:15 +00:00
Jeff Hill
60d6328016 use new data conversion interface 2006-11-18 01:02:18 +00:00
Jeff Hill
de6ce2f679 dont allow unbounded round trip estimates 2006-11-18 00:56:59 +00:00
Jeff Hill
ffb5e239f2 catch client initiated write requests with invalid dbr types in the client library 2006-11-18 00:52:09 +00:00
Jeff Hill
4bf25982fa added guards to interface 2006-11-18 00:51:08 +00:00
Jeff Hill
e308021980 initialize time at last send when creating search timer. This
guarantees no possibility of bogus search response delay
measurement
2006-11-18 00:50:35 +00:00
Jeff Hill
b0e5ae5a58 use new data conversion interface 2006-11-18 00:48:36 +00:00
Jeff Hill
01f39d3e47 use new data conversion interface 2006-11-18 00:42:32 +00:00
Jeff Hill
7b461161fc write request now goes directly to iiu 2006-11-18 00:41:56 +00:00
Jeff Hill
d2404e93a5 socket related data structures should use socket byte swap 2006-11-18 00:41:16 +00:00
Jeff Hill
e9a208a78f remove writeRequest from the interface 2006-11-18 00:33:09 +00:00
Jeff Hill
a8ed82801f byte swap socket data structures with socket lib byte swap 2006-11-18 00:31:48 +00:00
Jeff Hill
f3f56fb2bc o fixed deadlock occurring when access security callback blocks for
unresponsive client
o made data conversion more standalone in the client library
2006-11-18 00:29:04 +00:00
Jeff Hill
a6d8cf0cec use parenthesis during time stamp assign 2006-11-18 00:27:08 +00:00
Jeff Hill
2fdf182a5d socket related data structures should use socket byte swap 2006-11-18 00:25:54 +00:00
Jeff Hill
2988a11e25 moved all arch dependent byte swapping code to this file 2006-11-18 00:25:04 +00:00
Jeff Hill
4195457cdd base types on std C if recent dialect is available 2006-11-18 00:24:29 +00:00
Jeff Hill
4aa661f418 added warning 2006-11-18 00:16:33 +00:00
Jeff Hill
e03effe257 C style comments for C compilers 2006-11-18 00:14:41 +00:00
Jeff Hill
8a255f913e byte swap port number (even if it is zero) 2006-11-18 00:13:53 +00:00
Jeff Hill
962e36768e C style comments for C compilers 2006-11-18 00:09:27 +00:00
Andrew Johnson
dde131368d Fixed dbLoadTemplates comments. 2006-11-17 23:22:56 +00:00
Andrew Johnson
3b481d69c2 'use strict' stuff from Nick Rees, plus some cleanup. 2006-11-17 22:53:03 +00:00
Andrew Johnson
6f361280c3 Cosmetic. 2006-11-17 22:45:50 +00:00
Andrew Johnson
0f75477dfa Copyright header. 2006-11-17 22:45:23 +00:00
Janet B. Anderson
e68859beee Set ARCH_freebsd to freebsd-x86_64 and ARCH_hp700 to hpux-parisc. 2006-11-17 22:31:54 +00:00
Janet B. Anderson
83569ffcbc Updates for R3.14.9. 2006-11-17 22:27:27 +00:00
Janet B. Anderson
533b4696ea Initial version. 2006-11-17 22:26:44 +00:00
Andrew Johnson
e1e6ae787d Ok, so we should allow / and \ in bareword... 2006-11-17 22:18:35 +00:00
Andrew Johnson
bc9fab6417 Removed a whole load of unnecessary characters from bareword, which now
matches the dbStaticLib parser's definition.
2006-11-17 22:04:37 +00:00
Janet B. Anderson
291e5b89cf Set HOST_OPT = NO. 2006-11-17 22:01:09 +00:00
Janet B. Anderson
7ee4842463 Initial version. 2006-11-17 22:00:03 +00:00
Janet B. Anderson
0f3461a808 Changed test to runtests. 2006-11-17 21:58:06 +00:00
Andrew Johnson
1ad998c0d6 Oops. 2006-11-17 20:26:56 +00:00
Andrew Johnson
0f200c25c8 dbLoadTemplate. 2006-11-17 20:26:25 +00:00
Andrew Johnson
c3e3f6be37 Added two example database substitutions files and converted the example st.cmd
files to use these instead of repeated dbLoadRecords commands.
2006-11-17 19:36:17 +00:00
Andrew Johnson
a2739882f2 Fixed lex & yacc parsers for dbLoadTemplate() - this is now stricter in what
it will accept, but any rejected characters weren't legal before anyway.
2006-11-17 17:06:52 +00:00
W. Eric Norum
b7bad20900 Don't need action for characters which are silently consumed. 2006-11-17 14:28:13 +00:00
W. Eric Norum
34316144bd Clean up several problems with lexical analyzer. 2006-11-17 14:24:45 +00:00
Janet B. Anderson
207171d336 Made vxWorks.h include depend on VXWORKS_VERSION. 2006-11-16 22:44:34 +00:00
Janet B. Anderson
ae4199eb82 test is now .PHONY. 2006-11-16 22:27:48 +00:00
Janet B. Anderson
1dfdf98f87 Added the test rule for the perl Test::Harness expect test programs. 2006-11-16 22:26:24 +00:00
Janet B. Anderson
6217ec86af Added perl test rule. 2006-11-16 22:17:51 +00:00
Janet B. Anderson
cfefdbf067 Moved test rule to RULES_BUILD. 2006-11-16 22:15:51 +00:00
Janet B. Anderson
60c8cbbb7b Use new TESTSCRIPTS definition. 2006-11-16 21:40:42 +00:00
Janet B. Anderson
ada4b680b2 Added TESTSCRIPT definitions 2006-11-16 21:35:50 +00:00
Janet B. Anderson
b6d618cf5d Added test script, TESTSCRIPT, rules. 2006-11-16 21:34:56 +00:00
Andrew Johnson
1995c7cd5e Escaped characters. 2006-11-16 20:36:13 +00:00
Andrew Johnson
ecac0269dd Stop "warning: `id' defined but not used" messages from gcc -- use a char[]
instead of a char* and they go away!
2006-11-16 19:32:13 +00:00
Andrew Johnson
27fcfac8b8 Use the same TRUE/FALSE test in the dump routines as in the actual rule
evaluation, in case the results are different.
2006-11-16 17:26:38 +00:00
Ralph Lange
ad7f71d41c DST changes for 2007 2006-11-16 16:12:53 +00:00
Andrew Johnson
a4948d15fd Fix to Mantis #250, support escaped characters in record field values. 2006-11-15 23:33:31 +00:00
Janet B. Anderson
6cbcb67e56 Initial version. 2006-11-15 22:41:39 +00:00
Janet B. Anderson
e48d957906 Initail version. 2006-11-15 22:08:22 +00:00
Andrew Johnson
ad1f8f9925 Added round-trip testing of char escapes. 2006-11-15 20:14:46 +00:00
Janet B. Anderson
6911c54755 Changed -Xc to -Xa. Needed for solaris 10 builds. 2006-11-15 19:26:18 +00:00
W. Eric Norum
c89bfe8cf1 Back out name change since RTEMS will not change until the next RTEMS release. 2006-11-15 16:13:52 +00:00
Andrew Johnson
31547e98f5 Patch from Diamond; App names may include chars that are not
valid in a C identifier, such as '-', but we use the App name
in the <name>_registerRecordDeviceDriver routine name.
This patch replaces all such invalid chars with '_'.
2006-11-14 22:14:53 +00:00
Janet B. Anderson
4ad9f05421 Added OP_SYS_LDLIBS definition for solaris 10. 2006-11-14 20:18:26 +00:00
Andrew Johnson
2998cff567 Configuration files for FreeBSD, from Artem Kazakov <kazakov@gmail.com> 2006-11-14 19:40:47 +00:00
Andrew Johnson
20ede98a35 Make .t files work with prove, where $cwd may be a parent directory.
Won't work if you give prove an absolute path to the .t file though...
2006-11-14 17:42:20 +00:00
Andrew Johnson
e661027615 Fixed printing calc expressions with % chars in them. 2006-11-14 17:29:27 +00:00
Andrew Johnson
d58e5e2a77 Revised old message about thread stack sizes. 2006-11-14 16:20:16 +00:00
Andrew Johnson
cbedb32d50 Added a .db file with a single record $(IOC):exit.
Set the .A field to the exit status you want the softIoc to return.
2006-11-13 21:45:40 +00:00
Andrew Johnson
7b7bdb82a6 libCom/test, Breakpoints, vxWorks 6, postFix/calcPerform, calc/calcout/asLib,
recGblAlarmHook, raw simulation mode.
2006-11-13 21:32:06 +00:00
Andrew Johnson
fc0fd6ec0d Removed old comment. 2006-11-13 21:04:54 +00:00
Andrew Johnson
343efa2028 Cosmetic changes. 2006-11-13 20:40:00 +00:00
Andrew Johnson
4ca2bc86e5 Changed configuration for vxWorks 6.x; now uses the same files as vx 5.x.
Removed the vxWorks6-mvXXXX targets, use vxWorks-ppc604_long or similar.
2006-11-13 20:31:07 +00:00
Andrew Johnson
e66768314f Converted to use epicsUntiTest.h. 2006-11-13 20:21:05 +00:00
Andrew Johnson
2c23952b9c Removed Main.c file, converted to use testMain.h and epicsUnitTest.h. 2006-11-10 23:52:50 +00:00
Andrew Johnson
db0d1f1156 TESTPROD_LIBS doesn't work, use PROD_LIBS instead. 2006-11-10 23:09:26 +00:00
Andrew Johnson
52b7171576 Moved testMain.h into libCom/misc, since db/test is built before libCom/test. 2006-11-10 22:43:04 +00:00
Andrew Johnson
de29cb834f Moved timing measurement of epicsThreadPrivateGet() to epicsThreadPerform.cpp 2006-11-10 21:43:16 +00:00
Andrew Johnson
242a7b9027 Fixed bug in posix implementation of osdThreadOnce and added assertion
to the other implementations that will fire in the one case the Posix
code can't cope with.
2006-11-10 20:19:34 +00:00
Andrew Johnson
62963c7d5d Fixes for make test if '.' is not in $PATH. 2006-11-10 16:32:26 +00:00
Andrew Johnson
6c19051727 Major reorganization:
Removed all Main.cpp files, use the macro in testMain.h instead and
defaulted all argc/argv parameters.
Converted all real test programs to use epicsUnitTest.h.
Moved performance measurements from epicsThreadTest to epicsThreadPerform.
Moved epicsOkToBlockTest tests into epicsThreadTest.
On a host arch,  make test  inside the O.arch directory runs all tests.
2006-11-09 22:38:41 +00:00
Andrew Johnson
d8b9856252 Lock around testDiag(), so multiple threads don't mix output. 2006-11-09 22:28:33 +00:00
W. Eric Norum
6536905f85 Add universal binary support for OS X. 2006-11-09 14:50:20 +00:00
W. Eric Norum
8c8b77d767 Add example CONFIG_SITE files. 2006-11-09 14:47:59 +00:00
W. Eric Norum
e91873e3f6 Name change in RTEMS release. 2006-11-09 01:03:42 +00:00
Andrew Johnson
927951ec18 Added errlogInit2() command. 2006-11-08 22:16:51 +00:00
Andrew Johnson
d7d3bf4a13 Added an errlogInit2() routine to allow an enlarged maximum message size to be
specified at initialization time.
2006-11-08 22:14:21 +00:00
Andrew Johnson
23a8c76db2 Removed unused header file. 2006-11-07 16:45:07 +00:00
Andrew Johnson
dac306887d Changed many of the char* arguments to printf-style varargs. 2006-11-07 15:35:14 +00:00
Andrew Johnson
333c97ee23 Does anybody know what this was ever used for? 2006-11-03 17:32:29 +00:00
Jeff Hill
2d136ebc29 fixed manfest was created for .exe during static build 2006-11-02 19:44:58 +00:00
Andrew Johnson
eca624545b Added epicsMath.h include. 2006-11-02 16:10:49 +00:00
Andrew Johnson
5d62cd2b5b Cleanup unused var's. 2006-10-31 20:41:59 +00:00
Andrew Johnson
0563bebee0 Removed definition of NULL. 2006-10-31 20:37:34 +00:00
W. Eric Norum
39a8d90553 Let epicsExitTest work on systems with strict priority scheduling. 2006-10-27 16:32:40 +00:00
W. Eric Norum
f046ff86be Exit properly. 2006-10-27 16:10:34 +00:00
W. Eric Norum
fd81d5f7ca Add epicsExit test.
Clean up some typos.
2006-10-27 15:43:49 +00:00
W. Eric Norum
8f5c1bb7a3 Add test harness for RTEMS. 2006-10-27 15:36:26 +00:00
Andrew Johnson
6c10ea0ad4 Modified diagnostic about macLib warnings to clarify. 2006-10-27 15:01:34 +00:00
Andrew Johnson
a1e28f3dec Fixed problem not resetting test count properly. 2006-10-26 22:21:08 +00:00
Andrew Johnson
20d6352d66 Solaris strtod() doesn't accept "Inf" or "Infinity". 2006-10-26 21:19:32 +00:00
Andrew Johnson
5a561ca613 Make epicsStrtod() parse the full "Infinity" and not stop after "Inf". 2006-10-26 21:18:05 +00:00
W. Eric Norum
5ee8b58411 Don't test 0-length buffer case -- semantics differ for C99/Single-Unix. 2006-10-26 20:51:56 +00:00
W. Eric Norum
54ad02986b Add checks that redirection worked -- handy for systems like RTEMS
where the file exists only in a in-memory filesystem.
2006-10-26 20:07:24 +00:00
Andrew Johnson
5dd24b7ad2 Permit multiple test programs to be run sequentially in the same process
(for RTEMS and vxWorks).
2006-10-26 19:28:30 +00:00
W. Eric Norum
594a28d221 Don't leave dandling tasks. 2006-10-26 19:08:58 +00:00
W. Eric Norum
a16bc712d8 Allow calls from C test harnesses. 2006-10-26 18:10:34 +00:00
Andrew Johnson
c2755088e6 Cleanup. 2006-10-26 17:47:47 +00:00
W. Eric Norum
8264714ea7 Improve message. 2006-10-26 17:42:02 +00:00
Andrew Johnson
7dc2eec5aa Permit breakpoint tables to run any direction as long as the slope doesn't
change sign. Reduced memory requirement by making the table a contiguous
array rather than an array of pointers to intervals. Improved error reporting.
2006-10-26 16:05:23 +00:00
Andrew Johnson
5c7fa0e3be Modified comments. 2006-10-26 15:34:45 +00:00
Jeff Hill
b75bdb1930 fixed wrong app type used when client is acknowledging an alarm
(slightly revised to also deal with arrays although they are technically
invalid when acking an alarm)
2006-10-04 20:46:11 +00:00
Jeff Hill
394222ac72 fixed wrong app type used when client is acknowledging an alarm
(slightly revised to use primitive type of request if writing to other than
gddAppType_value)
2006-10-04 18:49:29 +00:00
Andrew Johnson
e98b305246 Fix up calc and calcout record and associated code to use the new features
of postfix() and calcPerform().
2006-10-03 20:22:23 +00:00
Andrew Johnson
3725609bc8 Cleanup, added recGblAlarmHook pointer. 2006-10-03 16:05:21 +00:00
Andrew Johnson
e4a80f2350 Cleanup, added workaround text. 2006-10-03 15:36:51 +00:00
Andrew Johnson
eeac94ca3b Fix errors from MS compiler, which overloads pow() in C++. 2006-10-02 18:01:44 +00:00
Jeff Hill
7001736104 fixed wrong app type used when client is acknowledging an alarm 2006-10-02 15:53:52 +00:00
Janet B. Anderson
ad55de7aa4 Modified UnixPath and epics_base definitio for ActiveState perl. 2006-10-02 14:18:47 +00:00
Janet B. Anderson
3c9b4d761e Modified UnixPath for ActiveState perl. 2006-10-02 14:17:41 +00:00
Andrew Johnson
2d96451345 dbpr.TIME field. 2006-09-26 15:10:20 +00:00
Andrew Johnson
4bc1aabc0f TIME interest level changed from 4 => 2, now that dbpr displays it nicely. 2006-09-26 15:08:43 +00:00
Andrew Johnson
2c914b5183 Make dbpr output for TIME field human-readable (Mantis #270). 2006-09-26 14:56:53 +00:00
Janet B. Anderson
f0f6716352 Changed rules so that % rules only have 1 dependancy. 2006-09-25 19:09:13 +00:00
Ralph Lange
61600b730a Fix for skipping over the first ifreq list element, += ifreqSize wrapper function. 2006-09-21 20:28:55 +00:00
Ralph Lange
54c09890dd Minor fix in printf string. 2006-09-20 14:24:44 +00:00
Ralph Lange
e01a41c418 Fix in the new code (suggested by Eric Norum). 2006-09-20 14:10:03 +00:00
Ralph Lange
db3ba46ab0 += RTEMS on ARM 2006-09-19 16:50:33 +00:00
Andrew Johnson
67ff3dfb6a Comments and list of architectures. 2006-09-19 16:32:12 +00:00
Ralph Lange
952731fdd9 += Change for arm. == This should be BSP dependent, not CPU dependent! == 2006-09-19 16:18:26 +00:00
Ralph Lange
178f8e9008 Problem fixed that was found on ARM: ifreq buffer must always be word-aligned when passed to kernel functions. 2006-09-19 16:13:34 +00:00
Ralph Lange
622f3333e0 Get host name using gethostname() after network is init'd. 2006-09-19 15:49:19 +00:00
Ralph Lange
e768a7b7c6 += changes for arm (missing RTC) == Needs Review == 2006-09-19 15:46:13 +00:00
Jeff Hill
ca95134827 added missing include 2006-09-13 21:54:13 +00:00
Jeff Hill
bbd210d626 fixed missing shutdown for log client thread 2006-09-12 20:47:04 +00:00
W. Eric Norum
641bbb29a0 Don't use C++ comments in C code. 2006-09-12 16:03:13 +00:00
Jeff Hill
a1a8b1a7e7 fix for mantis 269 2006-09-12 00:05:05 +00:00
Andrew Johnson
e44add07df Added iocLogShow command, and fixed a problem in the eltc command. 2006-09-11 15:53:44 +00:00
Andrew Johnson
d359e6629d Permit any IOC name as long as it has 'ioc' in it somewhere.
This matches the current behavior of the wildcard in iocBoot/Makefile
2006-07-25 18:14:21 +00:00
Andrew Johnson
26938a98ed Indentation and code style changes only. 2006-07-13 20:01:33 +00:00
W. Eric Norum
2db98a08fe Add function prototype with Windows decorations. 2006-07-10 18:17:23 +00:00
W. Eric Norum
b874c0afaa Extensions can increase context-switch time, so use as few as possible. 2006-06-30 19:32:23 +00:00
W. Eric Norum
7dcd682f7d Force panic if application-supplied routine returns a non-zero value. 2006-06-29 20:07:10 +00:00
Jeff Hill
b3ff995884 fixed mantis 266
epicsTime <=> aitTimeStamp conversions dont work on 64 bit hosts
2006-06-29 15:28:36 +00:00
W. Eric Norum
eff6f305c8 Add RTEMS initialization hooks. 2006-06-29 15:22:53 +00:00
W. Eric Norum
3d06949492 Clean up OS X universal binary notes. 2006-06-25 16:39:16 +00:00
W. Eric Norum
61239a7be6 Use more descriptive name. 2006-06-25 16:35:09 +00:00
cvs2svn
d6deb6920b This commit was manufactured by cvs2svn to create branch 'B3.14'. 2006-06-25 16:34:52 +00:00
W. Eric Norum
b64d58145c Add RTEMS change. 2006-06-25 15:05:04 +00:00
Jeff Hill
ee7c2ed829 fixed epicsTime <=> aitTimeStamp conversions dont work on 64 bit hosts 2006-06-22 00:20:08 +00:00
Andrew Johnson
70a15c335d munch.pl for MIPS. 2006-06-20 17:07:23 +00:00
Andrew Johnson
7b8c42ec38 epicsUnitTest support and -include in configure/RELEASE files. 2006-06-16 19:30:31 +00:00
Andrew Johnson
b2012ebf80 Don't print results if no tests! 2006-06-16 19:27:36 +00:00
Andrew Johnson
82513dfcc6 Support "-include" syntax in configure/RELEASE* files 2006-06-16 19:24:15 +00:00
Ralph Lange
402d22eac6 Patches for max array size determination as suggested by Malcolm Waters (Diamond). 2006-06-07 07:24:19 +00:00
Ralph Lange
2bed5dd8bf Fixed comment. 2006-06-07 07:20:01 +00:00
Jeff Hill
0e4f45dac5 fixed mantis 260 2006-06-06 23:09:25 +00:00
Jeff Hill
679d754891 fix for mantis 258 2006-06-06 22:57:01 +00:00
Jeff Hill
ad093ea6a2 fix for mantis 258 2006-06-06 22:44:33 +00:00
Jeff Hill
a3e0f538f7 ipAddrToAsciiTransactionPrivate free list is __not__ locked externally
so the epicsMutexNOOP non-default template parameter causes
the free list to not be locked. The free list was changed to embed a
lock/unlock around all allocate and deallocate requests.
2006-05-22 22:49:06 +00:00
Andrew Johnson
73e3411beb Fixed off-by-one error in dbFindField(). 2006-05-12 15:34:04 +00:00
Andrew Johnson
bf45ed3869 Major reorganization and Perl cleanup:
Added support for MIPS; ignore duplicate symbols; run destructors in
reverse order; added comments to output source file.
2006-04-28 17:46:51 +00:00
Janet B. Anderson
d432014104 Fixed typo if commandline library definition. 2006-04-24 18:00:16 +00:00
Andrew Johnson
6a830abc9d Added WARN setting to CHECK_RELEASE. 2006-04-21 15:23:48 +00:00
Andrew Johnson
5b54b481e8 Added WARN setting for CHECK_RELEASE. 2006-04-21 15:19:25 +00:00
Janet B. Anderson
e1ca1a907a Modified comment. 2006-04-20 14:57:26 +00:00
Janet B. Anderson
cad78cca41 Added include for RELEASE.<epics_host_arch>.Common 2006-04-20 14:54:51 +00:00
W. Eric Norum
cd0a488fad New host. 2006-04-08 16:36:46 +00:00
W. Eric Norum
0aa4a34c2a Need a few more functions declared. 2006-04-07 20:59:48 +00:00
W. Eric Norum
fa34d5c8f3 Need isnan() declaration now to track changes in other header files. 2006-04-07 20:49:43 +00:00
W. Eric Norum
d077e5cbf5 Provide 'pure-perl' implementation for OS X. 2006-04-07 16:03:56 +00:00
W. Eric Norum
d20b063cb2 Add Intel support for OS X. 2006-04-06 00:57:59 +00:00
Janet B. Anderson
d7e9b9738e Changes for darwin hosts. 2006-04-05 18:34:20 +00:00
Andrew Johnson
1faaada240 Clean up warnings. 2006-04-03 21:49:49 +00:00
Andrew Johnson
6ca51a8f52 Improve error messages for CALC expressions. 2006-04-03 21:47:34 +00:00
Andrew Johnson
abfd3f0186 Improve error checking and messages from AS file parser. 2006-04-03 21:41:11 +00:00
Andrew Johnson
d7016a007c Oops, missed a few tests I'd added. 2006-03-30 20:46:20 +00:00
Andrew Johnson
4d67f3596a Converted some of the test routines to use the new epicsUnitTest facility. 2006-03-30 20:13:25 +00:00
Andrew Johnson
97a5aa16a0 Major update, code reorganization and enhancement. 2006-03-30 20:07:06 +00:00
Andrew Johnson
e9e4e34fdf Build epicsUnitTest facilitites.
Also make epicsVersion depend on CONFIG_SITE file.
2006-03-30 20:04:48 +00:00
Andrew Johnson
62dee96808 Added Test Anything Protocol unit test library.
See Perl documentation for Test::Harness and Test::More for format details.
2006-03-30 19:59:46 +00:00
Andrew Johnson
8496fae43c Ensure finite() is defined. 2006-03-30 19:54:25 +00:00
Andrew Johnson
ffc6368931 Print thread names when reporting suspensions. 2006-03-30 19:52:35 +00:00
Andrew Johnson
3caf5e10c4 Include stdio.h 2006-03-30 19:50:31 +00:00
Andrew Johnson
93bab7d518 Correct epicsMin/epicsMax behaviour for floating-point NaN arguments. 2006-03-30 19:48:12 +00:00
Andrew Johnson
3162d19551 Make cantProceed() take printf-style message args. 2006-03-30 19:42:36 +00:00
Janet B. Anderson
3431eb4a08 Modified comments. 2006-03-30 18:40:46 +00:00
Janet B. Anderson
ef3e27625c Added include for host specific RELEASE file. 2006-03-30 17:25:13 +00:00
Janet B. Anderson
055c451ab9 Modified comments. 2006-03-30 17:24:18 +00:00
Janet B. Anderson
5c8b48e8f0 Added includes for host specific RELEASE and CONFIG_SITE files. 2006-03-30 16:59:06 +00:00
Janet B. Anderson
30b0520b78 Added comments about files for Host/target specific settings. 2006-03-30 16:57:32 +00:00
Janet B. Anderson
2ae9d6ac55 Removed a comment line. 2006-03-30 16:44:55 +00:00
Janet B. Anderson
12f8a7bf2a Added Id line. 2006-03-29 21:59:14 +00:00
Janet B. Anderson
e477be1e94 Modified comment line. 2006-03-29 21:56:39 +00:00
Janet B. Anderson
85399c435c Added ifdef T_A around T_A includes. 2006-03-29 21:26:21 +00:00
Janet B. Anderson
6bb604313d Added ifdef $(T_A) around T_A includes. 2006-03-29 21:23:57 +00:00
Janet B. Anderson
6b43fe312e Allow target specific macro definition overrides. 2006-03-29 21:18:12 +00:00
Andrew Johnson
8823924561 Oops, currected *Strdup routines. 2006-03-29 20:53:54 +00:00
Andrew Johnson
daf8f033fa Use new xxStrdup() functions.
Cleanup compiler warnings due to our using 8-bit lexers.
2006-03-29 19:46:05 +00:00
Andrew Johnson
cd3806e189 Added an asStrdup() routine. 2006-03-29 19:37:22 +00:00
Andrew Johnson
976febd1ac Added dbmfStrdup() function. 2006-03-29 19:33:50 +00:00
Janet B. Anderson
d29a589bff Renamed CONFIG_EXTENSION to CONFIG_SITE. 2006-03-29 17:09:24 +00:00
Janet B. Anderson
c0a6adb516 Renamed CONFIG_EXTENSIONS to CONFIG_SITE. Moved includes to CONFIG.
Moved INSTALL_LOCATION definition.
2006-03-29 17:08:23 +00:00
Janet B. Anderson
8774f97acd Allow ioc application to be built with older version of base. 2006-03-29 16:49:06 +00:00
Janet B. Anderson
e1018e3edf Removed accidently committed INSTALL_LOCATION definition. 2006-03-29 16:47:00 +00:00
Janet B. Anderson
ae8b8295a6 Renamed CONFIG_APP to CONFIG_SITE. 2006-03-28 21:35:53 +00:00
Janet B. Anderson
3ee2785894 Renamed CONFIG_APP to CONFIG_SITE. Moved includes to CONFIG.
Moved INSTALL_LOCATION and CONFIG definitions.
2006-03-28 21:35:08 +00:00
Janet B. Anderson
d43342f06f Moved definitions INSTALL_LOCATION and CONFIG. 2006-03-28 21:31:58 +00:00
Andrew Johnson
e7f78a7d69 Fixed problem with previously generated scan.c which was not case-independent.
Regenerated scan.c, and added instructions for later maintainers.
2006-03-28 00:11:51 +00:00
W. Eric Norum
51018ac066 Add support for RTEMS tasks with string names. 2006-03-27 22:21:18 +00:00
W. Eric Norum
f648ab5f09 Ensure that RTEMS-style names are properly terminated. 2006-03-27 20:47:05 +00:00
W. Eric Norum
db49484d32 Typo. 2006-03-27 16:32:35 +00:00
W. Eric Norum
097e551f43 Add note about RTEMS user extensions. 2006-03-27 16:32:14 +00:00
W. Eric Norum
fc2e1fd651 Add infrastructure for spy command. 2006-03-27 16:30:27 +00:00
Jeff Hill
cf231b5af3 fixed repeated sentance 2006-03-27 15:47:49 +00:00
Andrew Johnson
4ee5d5130e Oops, EPICS_CA_BEACON_PORT was wrong... 2006-03-24 20:53:25 +00:00
Andrew Johnson
8e9e846c34 Build the S99 scripts on Linux.
Modified the scripts and build process to work on Linux.
2006-03-24 20:29:27 +00:00
Jeff Hill
f4068d6a49 upgraded tests for mantis 245 2006-03-21 00:59:25 +00:00
Jeff Hill
a49961afe6 I fixed the following issues:
1) The epicsTime constructor does not throw an exception when an invalid epicsTimeStamp is passed to it.
2) The "epicsTime::operator epicsTimeStamp ()" conversion operator should throw an exception instead of assert failing when it discovers that the internal state of the time stamp is invalid.
3) William Lupton's epicsTime::strftime doesnt add .OVF if the nano-seconds field is invalid. Kay's original issue.
4) William Lupton's epicsTime::strftime has a buffer overrun vulnerability.
5) Certain C interfaces to epicsTime were not bracketed by try catch blocks.
2006-03-21 00:58:43 +00:00
Janet B. Anderson
88e7ae91b0 Removed -Wtraditional option. 2006-03-20 21:29:07 +00:00
Janet B. Anderson
233d65ea0d Install config/tools/* into INSTALL_LOCATION/config/tools not bin/(arch>. 2006-03-20 19:18:35 +00:00
Janet B. Anderson
0a5f63db7b Use the INSTALL_LOCATION setting from a configure/RELEASE file. 2006-03-20 17:57:41 +00:00
Jeff Hill
f83e11167d accomodate visual c++ 6 2006-03-20 15:53:25 +00:00
Janet B. Anderson
034936e8a9 Added files and made modifications for R3.13 Makefile builds of extensions. 2006-03-16 17:29:00 +00:00
Jeff Hill
99d1b3dd04 improved string hash table distribution 2006-03-15 19:02:15 +00:00
Janet B. Anderson
b1b5bbab0e Need two MT commands, one for dll files and one for exe files. 2006-03-09 22:30:19 +00:00
Janet B. Anderson
d208fdf7cf Need two MT commands, one for dll filess and one for exe files. 2006-03-09 22:28:22 +00:00
Janet B. Anderson
7e841f73fe Added command to embed .manifest file into libs and prods. 2006-03-09 17:20:08 +00:00
Janet B. Anderson
45fae9aeac Added command to embed a .manifest file into a library or product target. 2006-03-09 17:18:37 +00:00
Janet B. Anderson
c035a50677 Initial version. 2006-03-09 17:09:56 +00:00
Janet B. Anderson
319ab854d7 Added command to embed .manifest file. Removed install of .manifest file. 2006-03-09 17:08:48 +00:00
Janet B. Anderson
0fb9b9feda Initial version. 2006-03-09 17:04:38 +00:00
Janet B. Anderson
13ce4feb1b Added command to embed a .manifest file into a library or product target. 2006-03-09 17:02:20 +00:00
Janet B. Anderson
1ea5b179d5 Added LIB_PREFIX SHRLIB_PREFIX defs. Fixed CONFORM_CXXFLAGS def. 2006-03-03 22:06:57 +00:00
Janet B. Anderson
7d6f60121a Changed LIB_PREFIX to SHRLIB_PREFIX. 2006-03-03 17:57:27 +00:00
Janet B. Anderson
ea23dcabb9 Initial version. 2006-03-01 19:55:21 +00:00
Andrew Johnson
df07bfc9e9 Lower-case operands a thru l are never used, the infix buffer was already
converted to upper-case.
2006-03-01 19:55:13 +00:00
Janet B. Anderson
c542b4f4d1 Initial version. 2006-03-01 19:44:55 +00:00
Janet B. Anderson
edd2499824 Initial version. 2006-03-01 15:56:20 +00:00
Andrew Johnson
a4a3ddfcdf e_flex DOS line endings. 2006-02-28 23:35:56 +00:00
Andrew Johnson
14ad2c5055 Modified scan.l.DISTRIB to accept DOS line-endings. Used itself to convert
this into the scan.c file.  The initscan.c file is not used at all.
2006-02-28 23:35:22 +00:00
Janet B. Anderson
6e2049d678 Added override comment. 2006-02-23 20:04:22 +00:00
Andrew Johnson
3fb500856d Universal devLib stuff. 2006-02-17 23:30:04 +00:00
Andrew Johnson
a57f10fb90 Build devLib on all archs now there's a default devLibOSD.c file. 2006-02-17 23:00:30 +00:00
Jeff Hill
0f4acafeae fixed mantis 239 2006-02-17 22:54:49 +00:00
Andrew Johnson
7b383a18b4 Make devLib available from other OSs iff they provide the right table in an
external support application.
2006-02-17 22:51:26 +00:00
Jeff Hill
b55729875d fixed mantis 239 2006-02-17 22:33:54 +00:00
Andrew Johnson
a5b4cb0766 PACT must be set during FLNK. 2006-02-15 22:25:24 +00:00
Jeff Hill
dd63c3177d improved test 2006-02-13 16:33:59 +00:00
Jeff Hill
ceb11f1fb4 fix for a potential race in ca_context_destroy 2006-02-13 16:33:46 +00:00
Ralph Lange
85eacf584c Integrating change by Malcolm Waters: fix for "-c -w 0" hanging forever 2006-02-06 16:08:04 +00:00
Ralph Lange
d6b6955903 Integrating change by Malcolm Waters: += put_callback option - heavily based on caget 2006-02-06 16:04:55 +00:00
W. Eric Norum
4074b45a30 Add epicsThreadResume to IOCSH. 2006-02-03 19:36:09 +00:00
Andrew Johnson
ba9499c786 Better solution to zero-sized alloc requests. 2006-01-31 20:44:55 +00:00
W. Eric Norum
dbac42746c [cm]allocMustSucceed() now accept values of 0 for their size and count arguments and can return a NULL in these cases. 2006-01-31 14:54:19 +00:00
Janet B. Anderson
7fe5335da7 Fixed CONFORM_CXXFLAGS_NORMAL definition. 2006-01-30 15:56:10 +00:00
Janet B. Anderson
6347d8f065 Fixed typo in CMPLR_PREFIX definition. 2006-01-30 15:21:34 +00:00
Janet B. Anderson
9516692138 Modified comments for > win32-x86-cygwin and linuxRT-mvme2100. 2006-01-26 16:45:46 +00:00
W. Eric Norum
a0dd3c1a9d Add note about OS X changes. 2006-01-26 03:38:28 +00:00
W. Eric Norum
d4abe3a8af Other sites aren't running RTEMS. 2006-01-25 21:18:53 +00:00
W. Eric Norum
3fee378da2 Reorganized OS X support. 2006-01-25 21:18:04 +00:00
W. Eric Norum
d6ae543a1e Reorganize OS X configuration files.
First steps towards Universal binaries.
2006-01-25 21:17:15 +00:00
Andrew Johnson
17c437048f include CONFIG_BASE_VERSION *after* CONFIG_SITE. 2006-01-20 20:22:55 +00:00
Janet B. Anderson
2942594c37 Set EPICS_CVS_SNAPSHOT to -CVS. 2006-01-06 16:00:21 +00:00
Janet B. Anderson
e9b49d233b R3.14.8.2 2006-01-06 15:55:13 +00:00
Andrew Johnson
16e0409813 epicsStrtod fix. 2006-01-05 21:38:14 +00:00
Andrew Johnson
10c03d3e19 We took epicsShareAPI out of Win32 already, which was the only arch that
might have needed it!
2006-01-05 21:12:32 +00:00
Andrew Johnson
7aa6a2ca98 Better fix to the epicsStrtod problem: Don't compile our function if epicsStrtod
is a macro; that way you can't set a breakpoint on it which would never fire.
2006-01-05 21:08:02 +00:00
Ken Evans
705d8ccf98 Added _CRT_NONSTDC_NO_DEPRECATE switch to disable MSVC 8 Posix
deprecated warnings.
2006-01-04 21:27:54 +00:00
Ken Evans
ae27b2ad0e Changed /GX to /EHsc and defined _CRT_SECURE_NO_DEPRECATE for MSVC 8. 2006-01-04 18:11:44 +00:00
W. Eric Norum
8d3dc9eb33 Avoid infinite recursion on systems with 'working' strtod() functions. 2005-12-26 18:32:43 +00:00
Janet B. Anderson
1e821d866e Set EPICS_CVS_SNAPSHOT to -CVS. 2005-12-20 15:25:07 +00:00
Janet B. Anderson
03bf89c7c2 R3.14.8.1 2005-12-20 14:59:00 +00:00
Janet B. Anderson
b01b09240c Added deprecated EPICS_UPDATE_LEVEL.. 2005-12-20 14:56:46 +00:00
W. Eric Norum
e0887d197e Get rid of a bunch of conditional compile statements. 2005-12-19 22:27:47 +00:00
Andrew Johnson
3191b9b404 Notes about the version number changes. 2005-12-19 21:57:57 +00:00
Janet B. Anderson
147e21b71f Changed EPICS_UPDATE_LEVEL to EPICS_PATCH_LEVEL. 2005-12-19 21:42:40 +00:00
Janet B. Anderson
c57beaad68 Win32 changes. 2005-12-19 21:10:30 +00:00
Janet B. Anderson
45685c52d2 Changed EPICS_UPDATE_LEVEL to EPICS_PATCH_LEVEL. 2005-12-19 21:09:44 +00:00
Janet B. Anderson
00d8ae7d79 Updated version number description. 2005-12-19 20:28:00 +00:00
Andrew Johnson
d9184abd62 Version numbering system change. 2005-12-16 16:47:52 +00:00
Andrew Johnson
66fbc8b27c R3.14.8.1 changes. 2005-12-15 19:39:03 +00:00
W. Eric Norum
a65943481d Improved epicsThreadGetName() so that it works for all threads, not just those
created by epicsThreadCreate().
2005-12-15 16:49:42 +00:00
Janet B. Anderson
09ea15376f Changed SCRIPT to SCRIPTS in comment. 2005-12-14 15:04:37 +00:00
Marty Kraimer
de797d11e2 fix win32 compiler warnings 2005-12-13 12:57:19 +00:00
Andrew Johnson
6e09e17a23 Moved Marty's latest comments into a "Changes since R3.14.8" section.
Cleaned up some &nbsp; entities that appeared lower down.
2005-12-12 22:19:01 +00:00
Janet B. Anderson
a0e61daaac Removed epicsShareAPI from epicsStrtod. 2005-12-12 21:27:07 +00:00
Janet B. Anderson
5506587d06 Removed epicsShareAPI where not needed. 2005-12-12 21:26:01 +00:00
Andrew Johnson
225f816f0e epicsShare macro fixes from Mark Rivers (copied from the main trunk). 2005-12-12 21:25:17 +00:00
Marty Kraimer
cdda915248 o and x format should have unsigned args 2005-12-12 20:09:02 +00:00
Marty Kraimer
1a1c4dceb0 changes for libCom/misc 2005-12-12 19:55:34 +00:00
Marty Kraimer
b283cb1fcd clean up epicsStdlib 2005-12-12 19:55:11 +00:00
Marty Kraimer
3499fbe51d get rid of epicsShareAPI; epicsStrtok_r is new; clean up epicsStdlib 2005-12-12 19:54:48 +00:00
Jeff Hill
bd14b17c94 fixed send thread blocks trying to destroy the IIU because the
callback lock was taken without using a callback lock manager
2005-12-08 16:23:15 +00:00
811 changed files with 31544 additions and 21993 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
ifeq ($(findstring YES,$(COMPAT_313) $(COMPAT_TOOLS_313)),YES)
DIRS += config config/tools
endif
# 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
src_DEPEND_DIRS = configure
config_DEPEND_DIRS = src
include $(TOP)/configure/RULES_TOP

View File

@@ -96,13 +96,14 @@ ACC_SLIBS_NO=
# Use of /Za would dissable DLL import/export keywords which
# EPICS include/excludes using architecture neutral macros
#
# /GX support C++ exceptions
# /EHsc support C++ exceptions
# /GR generate RTTI information
#
CCC = cl /GX /GR
CCC = cl /EHsc /GR
CCC_NORMAL = $(CCC) /nologo /D__STDC__=0
CCC_STRICT = $(CCC) /nologo /D__STDC__=0
CCC_TEMPL_INST_FLAG =
ARCH_DEP_CPPFLAGS += /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE
#
# /W<N> use warning level N
@@ -269,3 +270,14 @@ LINK.cc = $(WINLINK) -nologo $(LDFLAGS) -out:$@
# Overrides for CONFIG_COMMON default
POSIX_CPPFLAGS_YES =
#--------------------------------------------------
# UseManifestTool.pl checks MS Visual c++ compiler version number to
# decide whether or not to use the Manifest Tool command to embed the
# linker created .manifest file into a library or product target.
# useManifestTool.pl returns 0(don't use) or 1(use).
#
ifeq ($(shell $(PERL) $(EPICS_BASE_TOOLS)/useManifestTool.pl),1)
MT_DLL_COMMAND = mt.exe /manifest $@.manifest "/outputresource:$@;\#2"
MT_EXE_COMMAND = mt.exe /manifest $@.manifest "/outputresource:$@;\#1"
endif

View File

@@ -7,9 +7,7 @@
# and higher are distributed subject to a Software License Agreement found
# in file LICENSE that is included with this distribution.
#*************************************************************************
menu(menuArrType) {
choice(menuArrType8_bit_integers,"8 bit integers")
choice(menuArrType16_bit_integers,"16 bit integers")
choice(menuArrType32_bit_integers,"32 bit integers")
choice(menuArrTypeIEEE_floating_point,"IEEE floating point")
}
# $Id$
# cygwin-x86 is the new name for cygwin32
-include $(EPICS_BASE)/config/CONFIG.Host.cygwin32

View File

@@ -20,6 +20,17 @@ include $(EPICS_BASE)/config/CONFIG.Host.UnixCommon
EXE=.exe
#==========================
#These overrides remove -ansi because -ansi eliminates strdup
GCC_ANSI = $(GCC)
GCC_STRICT = $(GCC) -pedantic
G++_NORMAL = $(G++) -pedantic
G++_STRICT = $(G++) -pedantic
#==========================
#This override will eliminate warnings for old R3.13 extensions
#GCC_WARN_YES =
#==========================
# These are overrides of ANSI and CPLUSPLUS values in CONFIG_SITE
# since OS vendor compilers ACC and CCC are not defined here for cygwin32
@@ -32,7 +43,7 @@ SHARED_LIBRARIES=NO
#OP_SYS_INCLUDES += /usr/local/include/g++
#==========================
ARCH_DEP_CFLAGS = -DCYGWIN32 -U_WIN32
ARCH_DEP_CPPFLAGS = -DCYGWIN32 -U_WIN32
ARCH_DEP_LDLIBS =
OP_SYS_LDLIBS =
@@ -41,7 +52,9 @@ OP_SYS_LDLIBS =
GCC_DEP_CFLAGS = -D_REENTRANT
G++_DEP_CFLAGS = -D_REENTRANT
POSIX_CPPFLAGS_YES = -D_POSIX_SOURCE
#POSIX_SOURCE eliminates select()
#POSIX_CPPFLAGS_YES = -D_POSIX_SOURCE
POSIX_CPPFLAGS_YES = -D_POSIX_THREADS -D_POSIX_TIMERS
# Runtime ldflags
RUNTIME_LIBS =$(EPICS_BASE)/lib/$(EPICS_HOST_ARCH)\

View File

@@ -0,0 +1,14 @@
#*************************************************************************
# 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$
-include $(EPICS_BASE)/config/CONFIG.Host.Darwin
OP_SYS_CFLAGS += "-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386"
OP_SYS_LDFLAGS += "-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386"

View File

@@ -0,0 +1,12 @@
#*************************************************************************
# 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$
-include $(EPICS_BASE)/config/CONFIG.Host.Darwin

View File

@@ -0,0 +1,35 @@
#*************************************************************************
# 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 file LICENSE that is included with this distribution.
#*************************************************************************
# $Id$
#
# This file is maintained by the EPICS community.
# Sites may override these definitions in CONFIG_SITE.Host.freebsd
OS_CLASS = freebsd
# Include definitions common to all Unix archs
include $(EPICS_BASE)/config/CONFIG.Host.UnixCommon
CODE_CPPFLAGS = -D_REENTRANT
POSIX_CPPFLAGS = -D_POSIX_THREADS
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 += -Dfreebsd
# Set runtime path for shared libraries
RUNTIME_LDFLAGS = $(SHRLIB_SEARCH_FULLPATHDIRS:%=-Wl,-rpath,%)
# Definitions used when COMMANDLINE_LIBRARY is READLINE
LDLIBS_READLINE = -lreadline -lcurses
GNU_LDLIBS_YES = -lgcc_pic

View File

@@ -0,0 +1,15 @@
#*************************************************************************
# 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 file LICENSE that is included with this distribution.
#*************************************************************************
# $Id$
ARCH_CLASS = x86
-include $(EPICS_BASE)/config/CONFIG.Host.freebsd
ARCH_DEP_CPPFLAGS += -D_X86_

View File

@@ -0,0 +1,15 @@
#*************************************************************************
# 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 file LICENSE that is included with this distribution.
#*************************************************************************
# $Id$
ARCH_CLASS = x86_64
-include $(EPICS_BASE)/config/CONFIG.Host.freebsd
ARCH_DEP_CPPFLAGS += -D_X86_64_

View File

@@ -7,18 +7,18 @@
# and higher are distributed subject to a Software License Agreement found
# in file LICENSE that is included with this distribution.
#*************************************************************************
#
# $Id$
#
TOP=../..
-include $(EPICS_BASE)/config/CONFIG.Host.Linux
include $(TOP)/configure/CONFIG
ARCH_CLASS = ppc
ifeq ($(findstring YES,$(COMPAT_313) $(COMPAT_TOOLS_313)),YES)
SCRIPTS_HOST += $(subst ../,,$(wildcard ../*.pl))
SCRIPTS_HOST += installEpics
endif
ARCH_DEP_CPPFLAGS += -D_ppc_
include $(TOP)/configure/RULES
GNU_DIR = /usr
GCC = $(GNU_BIN)/gcc
G++ = $(GNU_BIN)/g++
ARCH_DEP_LDLIBS = -lgcc

View File

@@ -0,0 +1,12 @@
#*************************************************************************
# 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$
-include $(EPICS_BASE)/config/CONFIG.Host.Linux

View File

@@ -0,0 +1,17 @@
#*************************************************************************
# 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$
-include $(EPICS_BASE)/config/CONFIG.Host.Linux
ARCH_CLASS = Linux
ARCH_DEP_CFLAGS = -D_X86_64_ -Dlinux

View File

@@ -0,0 +1,13 @@
#*************************************************************************
# 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$
-include $(EPICS_BASE)/config/CONFIG.Host.linux-x86_64

View File

@@ -0,0 +1,20 @@
#*************************************************************************
# 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$
# osf-alpha is the new name for alpha
-include $(EPICS_BASE)/config/CONFIG.Host.alpha
#==========================
# These are overrides of ANSI and CPLUSPLUS values in CONFIG_SITE
ANSI=GCC
CPLUSPLUS=G++
#==========================

View File

@@ -71,16 +71,19 @@ POSIX_CPPFLAGS_YES += -D__EXTENSIONS__ -mt
ARCH_DEP_LDFLAGS += -mt
# socket and nsl needed by libca.a
# socket and nsl needed by libca.a when SHARED_LIBRARIES = NO
ARCH_DEP_LDLIBS += -lsocket -lnsl
ARCH_DEP_LDLIBS += -lposix4 -lpthread
ARCH_DEP_LDLIBS_8 = -lCrun
ARCH_DEP_LDLIBS_9 = -lCrun
ARCH_DEP_LDLIBS_8 += -lCrun -lc -lCstd
ARCH_DEP_LDLIBS_9 += -lCrun -lc -lCstd
ARCH_DEP_LDLIBS_10 += -lCrun -lc -lCstd
ARCH_DEP_LDLIBS += $(ARCH_DEP_LDLIBS_$(SOLARIS_VERSION))
#Allows R3.13 built extensions to load R3.14 shared libs
SYS_DLL_LIBS_solaris_8 = Crun
SYS_DLL_LIBS_solaris_9 = Crun
SYS_DLL_LIBS_solaris_10 = Crun
SYS_DLL_LIBS_solaris += posix4 pthread $(SYS_DLL_LIBS_solaris_$(SOLARIS_VERSION))
# Runtime ldflags

View File

@@ -0,0 +1,18 @@
#*************************************************************************
# 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$
# solaris-sparc is the new name for solaris
-include $(EPICS_BASE)/config/CONFIG.Host.solaris
ARCH_DEP_CFLAGS += -xarch=generic64
ARCH_DEP_CXXFLAGS += -xarch=generic64
ARCH_DEP_LDFLAGS += -xarch=generic64

View File

@@ -0,0 +1,18 @@
#*************************************************************************
# 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$
# solaris-sparc is the new name for solaris
-include $(EPICS_BASE)/config/CONFIG.Host.solarisGnu
ARCH_DEP_CFLAGS += -mcpu=v9 -m64
ARCH_DEP_CXXFLAGS += -mcpu=v9 -m64
ARCH_DEP_LDFLAGS += -mcpu=v9 -m64

View File

@@ -7,7 +7,7 @@
# and higher are distributed subject to a Software License Agreement found
# in file LICENSE that is included with this distribution.
#*************************************************************************
# CONFIG.Host.solaris-x86
# CONFIG.Host.solaris-x86-gnu
#
# This file is maintained by the EPICS community.
# Sites may override these definitions in CONFIG_SITE.Host.solaris-x86

View File

@@ -12,20 +12,7 @@
# This file is maintained by the EPICS community.
# Sites may override these definitions in CONFIG_SITE.Host.solarisGnu
ARCH_CLASS = solaris
# Include definitions common to all Unix archs
include $(EPICS_BASE)/config/CONFIG.Host.UnixCommon
#
# required by sun's C++ compiler
#
AR = ar
_AR = $(AR) $(ARFLAGS)
G++_AR = $(_AR)
CCC_AR = $(CCC) -xar -o
ARCMD = $($(CPLUSPLUS)_AR) $@
RANLIB =
include $(EPICS_BASE)/config/CONFIG.Host.solaris
#==========================
# These are overrides of ANSI and CPLUSPLUS values in CONFIG_SITE
@@ -33,25 +20,3 @@ ANSI=GCC
CPLUSPLUS=G++
#==========================
SOLARIS_VERSION = $(subst 5.,,$(shell uname -r))
ARCH_DEP_CPPFLAGS += -DSOLARIS=$(SOLARIS_VERSION)
POSIX_CPPFLAGS_YES += -D__EXTENSIONS__
ARCH_DEP_LDFLAGS += -mt
# socket and nsl needed by libca.a
ARCH_DEP_LDLIBS += -lsocket -lnsl
ARCH_DEP_LDLIBS += -lposix4 -lpthread
ARCH_DEP_LDLIBS_8 = -lCrun
ARCH_DEP_LDLIBS_9 = -lCrun
ARCH_DEP_LDLIBS += $(ARCH_DEP_LDLIBS_$(SOLARIS_VERSION))
#Allows R3.13 built extensions to load R3.14 shared libs
SYS_DLL_LIBS_solaris_8 = Crun
SYS_DLL_LIBS_solaris_9 = Crun
SYS_DLL_LIBS_solaris += posix4 pthread $(SYS_DLL_LIBS_solaris_$(SOLARIS_VERSION))
# Runtime ldflags
RUNTIME_LDFLAGS =$(addprefix -R,$(EPICS_BASE)/lib/$(EPICS_HOST_ARCH)\
$(EPICS_EXTENSIONS)/lib/$(EPICS_HOST_ARCH))

View File

@@ -0,0 +1,62 @@
#*************************************************************************
# 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$
#
# This file is maintained by the EPICS community.
# Sites may override these definitions in CONFIG_SITE.Host.win32-x86-cygwin
# Include definitions common to all Unix archs
include $(EPICS_BASE)/config/CONFIG.Host.UnixCommon
EXE = .exe
SHARED_LIBRARIES = NO
ARCH_CLASS = WIN32
AR = ar -rc
ARCMD = $(AR) $@
RANLIB = ranlib -t
ANSI=GCC
CPLUSPLUS=G++
# Dont use -ansi: -ansi eliminates strdup and _tempnam
GCC_ANSI = $(GCC)
GCC_STRICT = $(GCC) -pedantic
G++_NORMAL = $(G++) -pedantic
G++_STRICT = $(G++) -pedantic
# Dont use -fPIC: with -fPIC we get
# "warning: -fPIC ignored for target (all code is position independent) "
GCC_DEP_CFLAGS =
G++_DEP_CFLAGS =
OP_SYS_CFLAGS =
OP_SYS_CPPFLAGS = -mno-cygwin
OP_SYS_CXXFLAGS += -D__cplusplus
OP_SYS_LDFLAGS += -mno-cygwin
POSIX_CPPFLAGS_YES =
# With no-cygwin option:
# compiler defines _X86_ 1
# compiler defines __MSVCRT__ 1
# compiler defines __MINGW32__ 1
# compiler defines __WIN32 1
# compiler defines __WIN32__ 1
# compiler defines _WIN32 1
# compiler defines WIN32 1
# compiler defines WINNT 1
# compiler does not define __unix __unix__ unix
# compiler does not define __CYGWIN__ __CYGWIN32__
ARCH_DEP_LDLIBS = -lws2_32 -ladvapi32 -luser32 -lkernel32 -lwinmm

View File

@@ -0,0 +1,12 @@
#*************************************************************************
# 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$
-include $(EPICS_BASE)/config/CONFIG.Host.WIN32

View File

@@ -0,0 +1,58 @@
#*************************************************************************
# 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$
#
# This file is maintained by the EPICS community.
# Sites may override these definitions in CONFIG_SITE.Host.win32-x86-mingw
# Include definitions common to all Unix archs
include $(EPICS_BASE)/config/CONFIG.Host.UnixCommon
EXE = .exe
SHARED_LIBRARIES = NO
ARCH_CLASS = WIN32
AR = ar -rc
ARCMD = $(AR) $@
RANLIB = ranlib -t
ANSI=GCC
CPLUSPLUS=G++
# Compiler defines _X86_ 1
# Compiler defines __MSVCRT__ 1
# Compiler defines __MINGW32__ 1
# Compiler defines __WIN32 1
# Compiler defines __WINNT 1
# Compiler defines __WINNT__ 1
# Compiler defines __WIN32__ 1
# Compiler defines _WIN32 1
# Compiler defines WIN32 1
# Compiler defines WINNT 1
# Compiler does not define __unix __unix__ unix
OP_SYS_CFLAGS =
OP_SYS_CXXFLAGS += -D__cplusplus
GCC_DEP_CFLAGS =
G++_DEP_CFLAGS =
POSIX_CPPFLAGS_YES =
ARCH_DEP_LDLIBS = -lws2_32 -ladvapi32 -luser32 -lkernel32 -lwinmm
# Remove -ansi compile option for gcc (does not allow c++ type comments).
GCC_ANSI = $(GCC)
GCC_STRICT = $(GCC) -pedantic
G++_NORMAL = $(G++) -pedantic
G++_STRICT = $(G++) -pedantic

View File

@@ -52,6 +52,9 @@ EPICS_BASE = $(TOP)
# EPICS include config file
include $(EPICS_BASE)/config/CONFIG
-include $(EPICS_BASE)/configure/RELEASE
-include $(EPICS_BASE)/configure/RELEASE.$(EPICS_HOST_ARCH)
ifdef INSTALL_LOCATION_BASE
INSTALL_LOCATION = $(INSTALL_LOCATION_BASE)
endif

View File

@@ -10,24 +10,6 @@
#
# $Id$
#
# EPICS Version information
#
# This file is interpreted by the Bourne Shell (MakeRelease), so spaces are
# not allowed around the '=' signs or in unquoted values.
#
# EPICS Version information now comes from configure...
EPICS_VERSION=3
EPICS_REVISION=14
EPICS_MODIFICATION=8
EPICS_UPDATE_NAME=
EPICS_UPDATE_LEVEL=0
EPICS_LOCAL_NAME=B
EPICS_LOCAL_VERSION=0
EPICS_VERSION_STRING="EPICS Version ${EPICS_VERSION}.${EPICS_REVISION}.${EPICS_MODIFICATION}.${EPICS_UPDATE_NAME}${EPICS_UPDATE_LEVEL}.$(EPICS_LOCAL_NAME)$(EPICS_LOCAL_VERSION)"
CVS_DATE="\$$Date$$"
CVS_TAG="\$$Name$$"
BASE_3_14=YES
include $(EPICS_BASE)/configure/CONFIG_BASE_VERSION

View File

@@ -90,7 +90,7 @@ GCC_STRICT = $(GCC) -ansi -pedantic
GCC_TRAD = $(GCC)
GCC_DEP_CFLAGS = -fPIC -D_REENTRANT
GCC_WARN_YES = -Wall -Wtraditional -Wmissing-prototypes -Wstrict-prototypes
GCC_WARN_YES = -Wall -Wmissing-prototypes -Wstrict-prototypes
GCC_WARN_NO = -w
GCC_OPT_YES = -O3
GCC_OPT_NO = -g
@@ -244,7 +244,7 @@ LDFLAGS = $(OPT_LDFLAGS) $(TARGET_LDFLAGS) $(USR_LDFLAGS)\
LDLIBS = $(TARGET_LDLIBS) $(USR_LDLIBS) $(STATIC_LDLIBS) $(ARCH_DEP_LDLIBS)\
$(OP_SYS_LDLIBS) $(POSIX_LDLIBS)
CPPFLAGS += $(TARGET_CPPFLAGS) $(USR_CPPFLAGS) $(ARCH_DEP_CPPFLAGS) $(POSIX_CPPFLAGS)
CPPFLAGS += $(TARGET_CPPFLAGS) $(USR_CPPFLAGS) $(ARCH_DEP_CPPFLAGS) $(POSIX_CPPFLAGS) $(OP_SYS_CPPFLAGS)
CPPSNCFLAGS = $(INCLUDES)

View File

@@ -21,8 +21,9 @@ ARCH_solarisNonshared = solaris-sparc-nonshared
ARCH_solaris = solaris-sparc
ARCH_sun4 = sun4-sparc
ARCH_Linux = linux-x86
ARCH_freebsd = freebsd-x86_64
ARCH_WIN32 = win32-x86
ARCH_hp700 = hpux-m68k
ARCH_hp700 = hpux-parisc
ARCH_alpha = osf-alpha
ARCH_Borland = win32-x86-borland
ARCH_cygwin32 = cygwin-x86

View File

@@ -9,7 +9,6 @@
#*************************************************************************
# CONFIG_HOST_ARCH.Darwin
#
# Override values in CONFIG.Vx
# Include definitions common to all Unix archs
include $(EPICS_BASE)/config/CONFIG_HOST_ARCH.UnixCommon

View File

@@ -9,7 +9,6 @@
#*************************************************************************
# CONFIG_HOST_ARCH.Linux
#
# Override values in CONFIG.Vx
# Include definitions common to all Unix archs
include $(EPICS_BASE)/config/CONFIG_HOST_ARCH.UnixCommon

View File

@@ -9,7 +9,6 @@
#*************************************************************************
# CONFIG_HOST_ARCH.alpha
#
# Override values in CONFIG.Vx
# Include definitions common to all Unix archs
include $(EPICS_BASE)/config/CONFIG_HOST_ARCH.UnixCommon

View File

@@ -1,4 +1,3 @@
#!/usr/bin/perl
#*************************************************************************
# Copyright (c) 2002 The University of Chicago, as Operator of Argonne
# National Laboratory.
@@ -8,25 +7,17 @@
# and higher are distributed subject to a Software License Agreement found
# in file LICENSE that is included with this distribution.
#*************************************************************************
# CONFIG_HOST_ARCH.cygwin-x86
#
# UNIX-mkdir in Perl
#
# -p option generates full path to given dir
# This file is maintained by the EPICS community.
use File::Path;
use Getopt::Std;
getopt "";
# Include definitions common to all Unix archs
-include $(EPICS_BASE)/config/CONFIG_HOST_ARCH.UnixCommon
foreach $dir ( @ARGV )
{
if ($opt_p)
{
mkpath ($dir) or die "Cannot make directory $dir";
}
else
{
mkdir ($dir, 0777) or die "Cannot make directory $dir";
}
}
EXE=.exe
HOSTEXE=.exe
TORNADO=YES
WIND_HOST_TYPE = x86-win32
# EOF mkdir.pl

View File

@@ -0,0 +1,12 @@
#*************************************************************************
# 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$
-include $(EPICS_BASE)/config/CONFIG_HOST_ARCH.Darwin

View File

@@ -0,0 +1,12 @@
#*************************************************************************
# 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$
-include $(EPICS_BASE)/config/CONFIG_HOST_ARCH.Darwin

View File

@@ -0,0 +1,11 @@
#*************************************************************************
# 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 file LICENSE that is included with this distribution.
#*************************************************************************
# $Id$
-include $(EPICS_BASE)/config/CONFIG_HOST_ARCH.UnixCommon

View File

@@ -9,7 +9,6 @@
#*************************************************************************
# CONFIG_HOST_ARCH.hp700
#
# Override values in CONFIG.Vx
# Include definitions common to all Unix archs
include $(EPICS_BASE)/config/CONFIG_HOST_ARCH.UnixCommon

View File

@@ -0,0 +1,14 @@
#*************************************************************************
# 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$
-include $(EPICS_BASE)/config/CONFIG_HOST_ARCH.Linux
WIND_HOST_TYPE = ppc-linux

View File

@@ -0,0 +1,15 @@
#*************************************************************************
# 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$
# linux-x86 is the new name for linux
-include $(EPICS_BASE)/config/CONFIG_HOST_ARCH.Linux
HOST_OPT = NO

View File

@@ -0,0 +1,15 @@
#*************************************************************************
# 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$
# Include definitions common to all Unix archs
include $(EPICS_BASE)/config/CONFIG_HOST_ARCH.UnixCommon
WIND_HOST_TYPE = x86-linux2

View File

@@ -0,0 +1,15 @@
#*************************************************************************
# 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$
# Include definitions common to all Unix archs
include $(EPICS_BASE)/config/CONFIG_HOST_ARCH.linux-x86_64
HOST_OPT = NO

View File

@@ -9,7 +9,6 @@
#*************************************************************************
# CONFIG_HOST_ARCH.sgi
#
# Override values in CONFIG.Vx
# Include definitions common to all Unix archs
include $(EPICS_BASE)/config/CONFIG_HOST_ARCH.UnixCommon

View File

@@ -8,8 +8,6 @@
# in file LICENSE that is included with this distribution.
#*************************************************************************
# CONFIG_HOST_ARCH.solaris
#
# Override values in CONFIG.Vx
# Include definitions common to all Unix archs
include $(EPICS_BASE)/config/CONFIG_HOST_ARCH.UnixCommon

View File

@@ -11,3 +11,4 @@
-include $(EPICS_BASE)/config/CONFIG_HOST_ARCH.solaris
HOST_OPT = NO

View File

@@ -0,0 +1,13 @@
#*************************************************************************
# 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$
# solaris-sparc is the new name for solaris
-include $(EPICS_BASE)/config/CONFIG_HOST_ARCH.solaris

View File

@@ -0,0 +1,13 @@
#*************************************************************************
# 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$
-include $(EPICS_BASE)/config/CONFIG_HOST_ARCH.solarisGnu

View File

@@ -8,8 +8,6 @@
# in file LICENSE that is included with this distribution.
#*************************************************************************
# CONFIG_HOST_ARCH.solaris-x86
#
# Override values in CONFIG.Vx
# Include definitions common to all Unix archs
include $(EPICS_BASE)/config/CONFIG_HOST_ARCH.UnixCommon

View File

@@ -1,6 +1,5 @@
# CONFIG_HOST_ARCH.solarisGnu
#
# Override values in CONFIG.Vx
# Include definitions common to all Unix archs
include $(EPICS_BASE)/config/CONFIG_HOST_ARCH.UnixCommon

View File

@@ -9,7 +9,6 @@
#*************************************************************************
# CONFIG_HOST_ARCH.sun4
#
# Override values in CONFIG.Vx
# Include definitions common to all Unix archs
include $(EPICS_BASE)/config/CONFIG_HOST_ARCH.UnixCommon

View File

@@ -1,4 +1,3 @@
#!/usr/bin/perl
#*************************************************************************
# Copyright (c) 2002 The University of Chicago, as Operator of Argonne
# National Laboratory.
@@ -8,38 +7,14 @@
# and higher are distributed subject to a Software License Agreement found
# in file LICENSE that is included with this distribution.
#*************************************************************************
# $Id$
#
# UNIX-rm in Perl
# Override values in CONFIG_SITE_HOST_ARCH.win32-x86-cygwin
use File::Path;
use File::Find;
use Getopt::Std;
# Include definitions common to all Unix archs
include $(EPICS_BASE)/config/CONFIG_HOST_ARCH.UnixCommon
getopt "";
HOSTEXE=.exe
foreach $arg ( @ARGV )
{
next unless -e $arg;
WIND_HOST_TYPE = x86-win32
if (-d $arg)
{
if ($opt_r and $opt_f)
{
rmtree $arg;
}
else
{
rmdir ($arg) or die "Cannot delete $arg";
}
if (-d $arg)
{
die "Failed to delete $arg";
}
}
else
{
unlink ($arg) or die "Cannot delete $arg";
}
}
# EOF rm.pl

View File

@@ -0,0 +1,14 @@
#*************************************************************************
# 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$
-include $(EPICS_BASE)/config/CONFIG_HOST_ARCH.WIN32
HOST_OPT = NO

View File

@@ -0,0 +1,29 @@
#*************************************************************************
# 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$
#
# Override values in CONFIG_SITE_HOST_ARCH.win32-x86-mingw
# Include definitions common to all Unix archs
include $(EPICS_BASE)/config/CONFIG_HOST_ARCH.UnixCommon
EXE=.exe
HOSTEXE=.exe
CP =$(PERL) $(EPICS_BASE_TOOLS)/cp.pl
MV =$(PERL) $(EPICS_BASE_TOOLS)/mv.pl
RM =$(PERL) $(EPICS_BASE_TOOLS)/rm.pl -f
MKDIR=$(PERL) $(EPICS_BASE_TOOLS)/mkdir.pl
RMDIR=$(PERL) $(EPICS_BASE_TOOLS)/rm.pl -rf
CHMOD=echo
ECHO=echo
WIND_HOST_TYPE = x86-win32

View File

@@ -0,0 +1,5 @@
# $Id$
-include $(EPICS_BASE)/config/CONFIG_SITE.Host.Darwin
SHARED_LIBRARIES=NO

View File

@@ -0,0 +1,4 @@
# $Id$
# solaris-sparc is the new name for solaris
-include $(EPICS_BASE)/config/CONFIG_SITE.Host.solaris

View File

@@ -1,3 +1,4 @@
# CONFIG_SITE.Vx.ppc604
# APS override of tornado directory for ppc
#VX_DIR_YES = /usr/local/vw/tornado101ppc2

View File

@@ -20,6 +20,9 @@ INSTALL_CONFIG = $(INSTALL_LOCATION)/config
CONFIGS += $(subst ../,,$(wildcard ../CONFIG*))
CONFIGS += $(subst ../,,$(wildcard ../RULES*))
CONFIGS += $(subst ../,,$(wildcard ../tools/*.pl))
endif
include $(TOP)/configure/RULES

View File

@@ -427,6 +427,7 @@ else
$(PRODNAME): $(PRODNAME_OBJS) $(PRODNAME_RESS)
@$(RM) $@
$(PRODNAME_LINKER) $(PRODNAME_OBJS) $(PRODNAME_RESS) $(LDLIBS)
$(MT_EXE_COMMAND)
endif
endif # ifdef PRODNAME_SRCS
@@ -738,6 +739,7 @@ $(DLL_LINK_LIBNAME) $(SHRLIBNAME): $(LIBOBJS) $(LIBNAME_RESS)
else
$(DLL_LINK_LIBNAME) $(SHRLIBNAME): $(LIBOBJS) $(LIBNAME_RESS)
$(LINK.shrlib) $(LIBOBJS) $(DLL_LDLIBS) $(LIBNAME_RESS)
$(MT_DLL_COMMAND)
endif
ifdef BORLANDC

31
config/tools/useManifestTool.pl Executable file
View File

@@ -0,0 +1,31 @@
eval 'exec perl -S -w $0 ${1+"$@"}' # -*- Mode: perl -*-
if 0;
#
# Use MS Visual C++ compiler version number to determine if
# we want to use the Manifest Tool (status=1) or not (status=0)
#
# VC compiler versions >= 14.00 will have status=1
# VC compiler versions 10.00 - 13.10 will have status=0
# EPICS builds with older VC compilers is not supported
#
my $versionString=`cl 2>&1`;
if ($versionString =~ m/Version 14./) {
$status=1;
} elsif ($versionString =~ m/Version 13.10/){
$status=0;
} elsif ($versionString =~ m/Version 13.0/){
$status=0;
} elsif ($versionString =~ m/Version 12./){
$status=0;
} elsif ($versionString =~ m/Version 11./){
$status=0;
} elsif ($versionString =~ m/Version 10./){
$status=0;
} else {
$status=1;
}
print "$status\n";
exit;

View File

@@ -17,33 +17,43 @@
# Common build definitions
#
CONFIG ?= $(TOP)/configure
ifneq ($(wildcard $(TOP)/configure/CONFIG_BASE_VERSION),)
EPICS_BASE = $(INSTALL_LOCATION)
CONFIG = $(TOP)/configure
BASE_TOP=YES
else
CONFIG ?= $(EPICS_BASE)/configure
endif
-include $(CONFIG)/os/CONFIG_COMPAT
-include $(CONFIG)/RELEASE
-include $(CONFIG)/RELEASE.$(EPICS_HOST_ARCH)
-include $(CONFIG)/RELEASE.$(EPICS_HOST_ARCH).Common
ifdef T_A
-include $(CONFIG)/RELEASE.Common.$(T_A)
-include $(CONFIG)/RELEASE.$(EPICS_HOST_ARCH).$(T_A)
endif
include $(CONFIG)/CONFIG_COMMON
include $(CONFIG)/CONFIG_FILE_TYPE
# Base-specific build options
#
include $(CONFIG)/CONFIG_BASE
include $(CONFIG)/CONFIG_BASE_VERSION
# Site-specific build options
#
include $(CONFIG)/CONFIG_SITE
# Version numbering
#
include $(CONFIG)/CONFIG_BASE_VERSION
# Host architecture specific definitions
#
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
@@ -61,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)
@@ -68,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

View File

@@ -18,16 +18,14 @@ 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))
CMPLR_PREFIX_CROSS=$(addsuffix -,$(GNU_TARGET))
CMPLR_PREFIX=$(CMPLR_PREFIX_$(BUILD_CLASSS))
CMPLR_PREFIX=$(CMPLR_PREFIX_$(BUILD_CLASS))
# All cross builds use the gnu compiler
include $(CONFIG)/CONFIG.gnuCommon

View File

@@ -45,10 +45,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

@@ -51,9 +51,9 @@
# PROD products to build and install
# PROD_HOST products to build and install
# PROD_IOC products to build and install
# TESTPROD products to build and install
# TESTPROD_HOST products to build and install
# TESTPROD_IOC products to build and install
# TESTPROD products to build
# TESTPROD_HOST products to build
# TESTPROD_IOC products to build
# LIBRARY products to build and install
# LIBRARY_HOST products to build and install
# LIBRARY_IOC products to build and install
@@ -62,6 +62,9 @@
# SCRIPTS scripts and install
# SCRIPTS_HOST host system scripts to install
# SCRIPTS_IOC ioc system scripts to install
# TESTSCRIPTS scripts
# TESTSCRIPTS_HOST host system scripts
# TESTSCRIPTS_IOC ioc system scripts
# OBJS object files to build and install
# OBJS_HOST host system object files to build and install
# OBJS_IOC ioc system object files to build and install
@@ -172,8 +175,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
@@ -375,6 +376,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
#
@@ -493,6 +505,33 @@ SCRIPTS_HOST+=$(SCRIPTS_HOST_DEFAULT)
endif
endif
#
# concat specific scripts
#
ifneq ($(strip $(TESTSCRIPTS_$(OS_CLASS))),)
TESTSCRIPTS += $(subst -nil-,,$(TESTSCRIPTS_$(OS_CLASS)))
else
ifdef TESTSCRIPTS_DEFAULT
TESTSCRIPTS += $(TESTSCRIPTS_DEFAULT)
endif
endif
ifneq ($(strip $(TESTSCRIPTS_IOC_$(OS_CLASS))),)
TESTSCRIPTS_IOC+=$(subst -nil-,,$(TESTSCRIPTS_IOC_$(OS_CLASS)))
else
ifneq (,$(strip $(TESTSCRIPTS_IOC_DEFAULT)))
TESTSCRIPTS_IOC+=$(TESTSCRIPTS_IOC_DEFAULT)
endif
endif
ifneq ($(strip $(TESTSCRIPTS_HOST_$(OS_CLASS))),)
TESTSCRIPTS_HOST+=$(subst -nil-,,$(TESTSCRIPTS_HOST_$(OS_CLASS)))
else
ifneq (,$(strip $(TESTSCRIPTS_HOST_DEFAULT)))
TESTSCRIPTS_HOST+=$(TESTSCRIPTS_HOST_DEFAULT)
endif
endif
#
# concat specific resource files
#

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

@@ -8,10 +8,6 @@
# in file LICENSE that is included with this distribution.
#*************************************************************************
ifndef EPICS_BASE
EPICS_BASE = $(INSTALL_LOCATION)
endif
#---------------------------------------------------------------
# Epics base directories
@@ -25,23 +21,23 @@ 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 iocsh asHost dbStaticHost registryIoc
EPICS_BASE_HOST_LIBS += cas gdd asHost dbStaticHost registryIoc
EPICS_BASE_HOST_LIBS += ca Com
#---------------------------------------------------------------
# Version number for base shared libraries (and win32 products)
ifeq ($(EPICS_BASE),$(TOP))
ifdef BASE_TOP
SHRLIB_VERSION = $(EPICS_VERSION).$(EPICS_REVISION)
PROD_VERSION = $(EPICS_VERSION).$(EPICS_REVISION)
endif # EPICS_BASE
endif # BASE_TOP
#---------------------------------------------------------------
# Base c preprocessor flags
@@ -57,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,30 +1,50 @@
#*************************************************************************
# Copyright (c) 2002 The University of Chicago, as Operator of Argonne
# 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 Versions 3.13.7
# and higher are distributed subject to a Software License Agreement found
# in file LICENSE that is included with this distribution.
# EPICS BASE is distributed subject to a Software License Agreement found
# in the file LICENSE that is included with this distribution.
#*************************************************************************
#
# $Id$
#
# EPICS Version information
#
# This file is interpreted by the Bourne Shell (MakeRelease), so spaces are
# not allowed around the '=' signs or in unquoted values.
# Only the person making an official EPICS release should make changes in
# this file.
#
# EPICS_SITE_VERSION is defined in CONFIG_SITE for sites that want a local
# version number to be included in the reported version string.
EPICS_VERSION=3
EPICS_REVISION=14
EPICS_MODIFICATION=8
EPICS_UPDATE_NAME=
EPICS_UPDATE_LEVEL=0
BASE_3_14=YES
EPICS_VERSION_STRING="EPICS Version ${EPICS_VERSION}.${EPICS_REVISION}.${EPICS_MODIFICATION}.${EPICS_UPDATE_NAME}${EPICS_UPDATE_LEVEL}"
EPICS_VERSION = 3
EPICS_REVISION = 14
# This part may contain letters, eg 0beta1
EPICS_MODIFICATION = 10pre1
# Not included if zero
EPICS_PATCH_LEVEL = 0
# This will be -CVS or empty at an official release point
EPICS_CVS_SNAPSHOT=
#EPICS_CVS_SNAPSHOT=
# No changes should be needed below here
ifneq ($(EPICS_PATCH_LEVEL),0)
EPICS_PATCH_VSTRING=.$(EPICS_PATCH_LEVEL)
endif
ifneq ($(strip $(EPICS_SITE_VERSION)),)
EPICS_SITE_VSTRING=-$(EPICS_SITE_VERSION)
endif
EPICS_SHORT_VERSION=$(EPICS_VERSION).$(EPICS_REVISION).$(EPICS_MODIFICATION)$(EPICS_PATCH_VSTRING)
EPICS_VERSION_NUMBER=$(EPICS_SHORT_VERSION)$(EPICS_CVS_SNAPSHOT)$(EPICS_SITE_VSTRING)
EPICS_VERSION_STRING="EPICS Version $(EPICS_VERSION_NUMBER)"
CVS_DATE="\$$Date$$"
CVS_TAG="\$$Name$$"
BASE_3_14=YES

View File

@@ -16,6 +16,10 @@
#
# Common Configuration Information
#-------------------------------------------------------
# POSIX is OS default
POSIX=YES
#-------------------------------------------------------
# Divider symbol
DIVIDER = .
@@ -37,16 +41,26 @@ BUILD_ARCHS = $(EPICS_HOST_ARCH) $(CROSS1) $(CROSS2)
# otherwise override this in os/CONFIG_SITE.<host_arch>.Common
PERL=perl
#-------------------------------------------------------
# dbst based database optimization default
DB_OPT = NO
#-------------------------------------------------------
# Check configure/RELEASE file for consistency
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 = $(TOP)
INSTALL_LOCATION_LIB = $(INSTALL_LOCATION)/lib
INSTALL_LOCATION_BIN = $(INSTALL_LOCATION)/bin
@@ -66,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)
@@ -78,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
@@ -102,26 +116,17 @@ GNU=NO
# Prefix and suffix
DEP=.depends
OBJ = .
RES = .
CMPLR_SUFFIX=
CMPLR_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
LIB_PREFIX=
SHRLIB_PREFIX= $(LIB_PREFIX)
#--------------------------------------------------
# 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)
#--------------------------------------------------
@@ -129,7 +134,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
@@ -145,7 +150,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)
@@ -156,12 +161,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)
#--------------------------------------------------
@@ -223,7 +228,7 @@ TARGET_LDFLAGS = $($*_LDFLAGS)
# Level of ansi conformance flags
CONFORM_CPPFLAGS = $(CONFORM_CPPFLAGS_$(CMPLR))
CONFORM_CFLAGS = $(CONFORM_CFLAGS_$(CMPLR))
CONFORM_CXXFLAGS = $(CONFORM_CXXFLAGS_$(CMPLR))
CONFORM_CXXFLAGS = $(CONFORM_CXXFLAGS_$(CXXCMPLR))
# Warnings flags
WARN_CFLAGS = $(WARN_CFLAGS_$($(BUILD_CLASS)_WARN))
@@ -241,9 +246,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
@@ -253,16 +264,16 @@ 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)\
$(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 = $(CONFORM_CXXFLAGS) $($(BUILD_CLASS)_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) \
$(ARCH_DEP_LDFLAGS) $(DEBUG_LDFLAGS) $(OP_SYS_LDFLAGS) $($(BUILD_CLASS)_LDFLAGS)\
@@ -305,8 +316,7 @@ PREPROCESS.cpp = $(CPP) $(CPPFLAGS) $(INCLUDES) $< > $@
# Depends command
HDEPENDS_FLAGS =
# Use only dependancies from current top tree
HDEPENDS_INCLUDES = $(filter .%,$(subst -I,,$(INCLUDES)))
HDEPENDS_INCLUDES = $(subst -I,,$(INCLUDES))
HDEPENDSFLAGS = -m $*$(DEP) $(HDEPENDS_INCLUDES) $@ $<
HDEPENDS_CMD_YES = -$(MKMF) $(HDEPENDS_FLAGS) $(HDEPENDSFLAGS)
HDEPENDS_CMD_NO = echo ""
@@ -344,6 +354,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,67 @@
#*************************************************************************
# 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 += IDL
INSTALL_IDL = $(INSTALL_LOCATION_LIB)/idl
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

@@ -1,36 +1,32 @@
#*************************************************************************
# Copyright (c) 2002 The University of Chicago, as Operator of Argonne
# 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 Versions 3.13.7
# and higher are distributed subject to a Software License Agreement found
# in file LICENSE that is included with this distribution.
# EPICS BASE is distributed subject to a Software License Agreement found
# in the file LICENSE that is included with this distribution.
#*************************************************************************
#
# $Id$
#
# CONFIG_SITE - config file
# by Matthew Needes and Mike Bordua
#
# This file is to be modified by the build system manager
# only.
# CONFIG_SITE - Global site configuration file
#
# The host architecture performing the build,
# i.e.: the arch running DCT/getrel/etc.
# <operating system>-<architecture>[-<alternate compiler>]
# The host architecture performing the build, in the form
# <operating system>-<architecture>[-<toolset>]
#
# Currently Supporting:
# aix-ppc (HP compiler used for host builds)
# aix-ppc (IBM compiler used for host builds)
# aix-ppc-gnu (GNU compiler used for host builds)
# cygwin-x86 (cygwin compiler used for host builds)
# darwin-ppc
# darwin-ppc (PowerPC based Apple running OSX)
# darwin-x86 (Intel based Apple running OSX)
# 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-ppc-bgl
# 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)
@@ -41,9 +37,9 @@
# 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-mingw (MinGW compiler used for host builds)
# win32-x86-borland (Borland C++ compiler used for host builds)
# win32-x86-cygwin (cygwin GNU compiler used for host builds)
# win32-x86-cygwin (WIN32 API with cygwin GNU compiler used for host builds)
# Debugging builds
# linux-x86-debug (GNU compiler with -g option for host builds)
@@ -55,7 +51,7 @@
# EPICS_HOST_ARCH is a required environment variable
# Do not set EPICS_HOST_ARCH in this file.
# Use base/startup files to set EPICS_HOST_ARCH or
# set EPICS_HOST_ARCH on the GNU make command line.
# provide EPICS_HOST_ARCH on the GNU make command line.
# The cross-compiler architectures to build EPICS for
#
@@ -65,7 +61,10 @@
# linux-586 (linux-x86 host)
# linux-686 (linux-x86 host)
# linux-athlon (linux-x86 host)
# linuxRT-mvme2100 (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-arm
# vxWorks-486
# vxWorks-68040
# vxWorks-68040lc
@@ -75,8 +74,8 @@
# vxWorks-ppc603_long
# vxWorks-ppc604
# vxWorks-ppc604_long
# vxWorks6-mv2100
# vxWorks6-mv5100
# vxWorks-ppc604_altivec
# vxWorks-mpc8540
# RTEMS-gen68360
# RTEMS-mcp750
# RTEMS-mvme167
@@ -86,8 +85,6 @@
# RTEMS-psim
# RTEMS-uC5282
#
# Debugging builds
# vxWorks-68040-debug
# Definitions of CROSS_COMPILER_TARGET_ARCHS in
# configure/os/CONFIG_SITE.<host>.Common files will
@@ -158,7 +155,7 @@ CROSS_WARN=YES
# NOTE: Set to YES only if you have existing R3.13 extensions to be
# built with this base
#
COMPAT_TOOLS_313=NO
#COMPAT_TOOLS_313=YES
# Create and/or install files for R3.13 ioc application and extension builds?
# must be either YES or NO
@@ -169,8 +166,18 @@ COMPAT_TOOLS_313=NO
COMPAT_313=NO
# Installation directory
#Note: INSTALL_LOCATION definition moved to configure/RELEASE file
# If you don't want to install into $(TOP) dir then
# define INSTALL_LOCATION here
#INSTALL_LOCATION=<fullpathname>
# Use POSIX thread priority scheduling (YES or NO)
USE_POSIX_THREAD_PRIORITY_SCHEDULING = NO
# Site version number, if set will append '-' and this string to the
# 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 2006 US: Apr 2 - Oct 29
# EU: Mar 26 - Oct 29
# DST for 2007 US: Mar 11 - Nov 04
# EU: Mar 25 - Oct 28
# (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:040202:102902
#EPICS_TIMEZONE=MET::-60:032602:102902
EPICS_TIMEZONE=CUS::360:031102:110402
#EPICS_TIMEZONE=MET::-60:032502:102802
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

@@ -9,17 +9,13 @@
#*************************************************************************
# RELEASE: Define location of external EPICS products
# Define INSTALL_LOCATION in CONFIG_SITE
# VX_DIR definition now in os/CONFIG_SITE.Common.vxWorksCommon
# RTEMS_BASE (and RTEMS_VERSION) now in os/CONFIG_SITE.Common.RTEMS
# NB: Settings in RELEASE files can be overridden in files named
# RELEASE.$(EPICS_HOST_ARCH)
# RELEASE.Common.$(OS_CLASS)Common
# RELEASE.$(EPICS_HOST_ARCH).Common
# RELEASE.Common.$(T_A)
# RELEASE.$(EPICS_HOST_ARCH).$(T_A)
# If you don't want to install into $(TOP) dir then
# define INSTALL_LOCATION here
#INSTALL_LOCATION=<fullpathname>
#INSTALL_LOCATION=/home/phoebus/JBA/install

View File

@@ -17,14 +17,16 @@ 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
@@ -61,7 +63,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,6 +72,22 @@ 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))))
@@ -78,7 +96,7 @@ COMMON_DBDINC += $(addprefix $(COMMON_DIR),$(HINC))
DBDDEPENDS_FILES += $(addsuffix $(DEP),$(COMMON_DBDS) \
$(COMMON_DBDINC) $(COMMON_DBS))
DBDDEPENDS_FLAGS = $(filter .%,$(subst -I,,$(filter-out -S%,$(DBDFLAGS))))
DBDDEPENDS_FLAGS = $(subst -I,,$(filter-out -S%,$(DBDFLAGS)))
DBDDEPENDS_CMD = -$(MKMF) -m $@$(DEP) $(DBDDEPENDS_FLAGS) $@ $<
MAKEDBDEPENDS = $(PERL) $(TOOLS)/makeDbDepends.pl
@@ -94,7 +112,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 +134,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 +161,14 @@ $(COMMON_DIR)/%.edf: ../%.sch $(DEPSCHS)
ifdef CREATESUBSTITUTIONS
$(COMMON_DIR)/%.substitutions:
@echo "Create substitutions"
@$(RM) $@
@$(CREATESUBSTITUTIONS) $(COMMON_DIR)/$*
$(CREATESUBSTITUTIONS) $(COMMON_DIR)/$*
endif
$(INSTALL_DB)/%.substitutions: %.substitutions
@echo "Installing db file $@"
@$(INSTALL) -d -m 644 $< $(@D)
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
.PRECIOUS: $(COMMON_DIR)/%.substitutions
@@ -170,7 +182,7 @@ $(COMMON_DIR)/%.template: $(COMMON_DIR)/%.edf
$(INSTALL_DB)/%.template: %.template
@echo "Installing db file $@"
@$(INSTALL) -d -m 644 $< $(@D)
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
.PRECIOUS: $(COMMON_DIR)/%.template
@@ -192,6 +204,8 @@ $(COMMON_DIR)/menu%.h: menu%.dbd
@$(RM) $@
$(DBTOMENUH) $< $@
.PRECIOUS: $(COMMON_DIR)/%.h
##################################################### DBD files
$(COMMON_DIR)/bpt%.dbd: bpt%.data
@@ -201,6 +215,7 @@ $(COMMON_DIR)/bpt%.dbd: bpt%.data
$(COMMON_DIR)/%.dbd: $(COMMON_DIR)/%Include.dbd
@$(RM) $@$(DEP)
@$(DBDDEPENDS_CMD)
@echo "$<:../Makefile" >> $@$(DEP)
@echo "Expanding dbd"
@$(RM) $@
$(DBEXPAND) $(DBDFLAGS) -o $@ $<
@@ -217,16 +232,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)
@$(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
@@ -247,7 +265,7 @@ $(COMMON_DIR)/%.db$(RAW): $(COMMON_DIR)/%.edf
$(COMMON_DIR)/%.db$(RAW): %.substitutions
@$(RM) $@$(DEP)
@$(MAKEDBDEPENDS) $@ $< $(TEMPLATE_FILENAME) >> $@$(DEP)
$(MAKEDBDEPENDS) $@ $< $(TEMPLATE_FILENAME) >> $@$(DEP)
@echo "$@:$(TEMPLATE_FILENAME)" >> $@$(DEP)
@echo "Inflating database from $< $(TEMPLATE_FILENAME)"
@$(RM) $@
@@ -262,6 +280,15 @@ $(COMMON_DIR)/%.db$(RAW): %.template
$(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'
@@ -280,16 +307,19 @@ else
$(INSTALL_DB)/%: %
@echo "Installing db file $@"
@$(INSTALL) -d -m 644 $< $(@D)
@$(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

@@ -17,16 +17,15 @@ ifneq ($(findstring $(ARCH),$(BUILD_ARCHS)),)
buildInstall: $(TARGETS)
clean:
$(RM) cdCommands envPaths
$(RM) cdCommands envPaths dllPath.bat
else
buildInstall:
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 +33,5 @@ else
endif
realclean:
$(RM) cdCommands envPaths
$(RM) cdCommands envPaths dllPath.bat

View File

@@ -1,11 +1,10 @@
#*************************************************************************
# Copyright (c) 2002 The University of Chicago, as Operator of Argonne
# 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 Versions 3.13.7
# and higher are distributed subject to a Software License Agreement found
# in file LICENSE that is included with this distribution.
# EPICS BASE is distributed subject to a Software License Agreement found
# in the file LICENSE that is included with this distribution.
#*************************************************************************
#
# $Id$
@@ -20,8 +19,10 @@ rebuild: clean install
ACTIONS = inc
ACTIONS += build
ACTIONS += install
ACTIONS += buildInstall
ACTIONS += browse
ACTIONS += buildInstall
ACTIONS += browse
ACTIONS += runtests
#ACTIONS += rebuild
actionPart = $(word 1, $(subst $(DIVIDER), ,$@))
archPart = $(word 2, $(subst $(DIVIDER), ,$@))
@@ -33,6 +34,24 @@ 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.80 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)
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)))))
#*************************************************************************
$(actionArchTargets) : $(buildDirs) O.Common
$(MAKE) -C O.$(archPart) -f ../Makefile TOP=$(TOP)/.. T_A=$(archPart) $(actionPart)
@@ -41,7 +60,7 @@ $(BUILD_ARCHS) : % : O.% O.Common
$(ACTIONS):%: $(foreach arch, $(BUILD_ARCHS), %$(DIVIDER)$(arch))
$(buildDirs):
$(buildDirs):
$(PERL) $(TOOLS)/makeMakefile.pl $@ $(TOP)/..
O.Common:
@@ -54,13 +73,18 @@ O.Common:
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) $@
$(CONVERTRELEASE) checkRelease
$(checkReleaseTargets):checkRelease.%:
$(PERL) $(TOOLS)/convertRelease.pl -h $(EPICS_HOST_ARCH) -a $* checkRelease
$(CONVERTRELEASE) -a $* checkRelease
warnReleaseTargets = $(addprefix warnRelease, $(suffix $(targetReleaseFiles)))
warnRelease: $(warnReleaseTargets)
-$(CONVERTRELEASE) checkRelease
$(warnReleaseTargets):warnRelease.%:
-$(CONVERTRELEASE) -a $* checkRelease
#
# special clean rule
@@ -74,7 +98,7 @@ archclean ::
$(cleanArchTargets) ::
$(RMDIR) O.$(archPart)
realclean ::
realclean ::
$(RMDIR) O.*
.PHONY : $(actionArchTargets)
@@ -82,4 +106,3 @@ realclean ::
.PHONY : $(BUILD_ARCHS)
.PHONY : $(ACTIONS) clean realclean archclean all
.PHONY : checkRelease $(checkReleaseTargets)

View File

@@ -1,11 +1,10 @@
#*************************************************************************
# Copyright (c) 2002 The University of Chicago, as Operator of Argonne
# 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 Versions 3.13.7
# and higher are distributed subject to a Software License Agreement found
# in file LICENSE that is included with this distribution.
# EPICS BASE is distributed subject to a Software License Agreement found
# in the file LICENSE that is included with this distribution.
#*************************************************************************
# $Id$
#
@@ -34,12 +33,16 @@ 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)
OBJS += $(OBJS_HOST)
PROD += $(PROD_HOST)
SCRIPTS += $(SCRIPTS_HOST)
TESTSCRIPTS += $(TESTSCRIPTS_HOST)
TESTPROD += $(TESTPROD_HOST)
endif
@@ -48,6 +51,7 @@ LIBRARY += $(LIBRARY_IOC)
OBJS += $(OBJS_IOC)
PROD += $(PROD_IOC)
SCRIPTS += $(SCRIPTS_IOC)
TESTSCRIPTS += $(TESTSCRIPTS_IOC)
TESTPROD += $(TESTPROD_IOC)
endif
@@ -73,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
@@ -99,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
@@ -118,9 +113,9 @@ rebuild: clean install
build : inc
build: $(OBJSNAME) $(LIBTARGETS) $(PRODTARGETS) $(TESTPRODNAME) \
$(TARGETS)
$(TARGETS) $(TESTSCRIPTS) $(INSTALL_LIB_INSTALLS)
inc : $(COMMON_INC) $(INSTALL_INC)
inc : $(COMMON_INC) $(INSTALL_INC) $(INSTALL_CONFIGS)
buildInstall : \
$(INSTALL_SCRIPTS) $(INSTALL_PROD) $(INSTALL_MUNCHS) \
@@ -129,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) \
$(INC) $(TARGETS) $(DLL_LINK_LIBNAME) $(TDS) \
*.out MakefileInclude $(LOADABLE_SHRLIBNAME) *.manifest *.exp \
$(COMMON_INC) $(HDEPENDS_FILES) $(PRODTARGETS)
$(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
@@ -161,12 +154,17 @@ $(DIRECTORY_TARGETS) :
# The order of the following rules is
# VERY IMPORTANT !!!!
$(TESTPRODNAME) $(PRODNAME):%$(EXE): $(PRODUCT_OBJS) $(PROD_RESS) $(PROD_DEPLIBS)
$(TESTPRODNAME) $(PRODNAME): $(PRODUCT_OBJS) $(PROD_RESS) $(PROD_DEPLIBS)
$(TESTPRODNAME) $(PRODNAME):%$(EXE):
@$(RM) $@
$(DEBUGCMD) $(LINK.cpp)
$(MT_EXE_COMMAND)
# object libs for R3.13 vxWorks compatibility only
$(OBJLIBNAME):%$(OBJ): $(OBJLIB_LD_OBJS)
$(OBJLIBNAME): $(OBJLIB_LD_OBJS)
$(OBJLIBNAME):%$(OBJ):
@$(RM) $@
$(OBJLIB_LINK.cpp)
@@ -259,24 +257,35 @@ $(LIBNAME): ../baseLIBOBJS
endif
# rule for lib (archive of object files) creation
$(LIBNAME): $(LIB_PREFIX)%$(LIB_SUFFIX): $(LIBRARY_OBJS)
$(LIBNAME): $(LIBRARY_OBJS)
$(LIBNAME): $(LIB_PREFIX)%$(LIB_SUFFIX):
@$(RM) $@
$(ARCMD)
ifneq ($(strip $(RANLIB)),)
$(RANLIB) $@
endif # RANLIB
$(DLL_LINK_LIBNAME):$(LIB_PREFIX)%.lib: $(LIBRARY_OBJS) $(LIBRARY_RESS) $(SHRLIB_DEPLIBS)
$(DLL_LINK_LIBNAME): $(LIBRARY_OBJS) $(LIBRARY_RESS) $(SHRLIB_DEPLIBS)
$(DLL_LINK_LIBNAME):$(SHRLIB_PREFIX)%.lib:
@$(RM) $@
$(LINK.shrlib)
$(MT_DLL_COMMAND)
$(SHRLIBNAME):$(LIB_PREFIX)%$(SHRLIB_SUFFIX): $(LIBRARY_OBJS) $(LIBRARY_RESS) $(SHRLIB_DEPLIBS)
$(SHRLIBNAME): $(LIBRARY_OBJS) $(LIBRARY_RESS) $(SHRLIB_DEPLIBS)
$(SHRLIBNAME):$(SHRLIB_PREFIX)%$(SHRLIB_SUFFIX):
@$(RM) $@
$(LINK.shrlib)
$(MT_DLL_COMMAND)
$(LOADABLE_SHRLIBNAME):$(LOADABLE_SHRLIB_PREFIX)%$(LOADABLE_SHRLIB_SUFFIX): $(LIBRARY_OBJS) $(LIBRARY_RESS) $(SHRLIB_DEPLIBS)
$(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)
@@ -299,53 +308,64 @@ $(OBJLIB_MUNCHNAME):%.munch : %_ctdt$(OBJ) %$(OBJ)
@$(RM) $@
$(MUNCH_CMD)
# Ext, app and module rules
RULES_INCLUDE CONFIG_APP_INCLUDE: $(wildcard $(TOP)/configure/RELEASE*)
runtests: $(TESTSCRIPTS_$(BUILD_CLASS))
-$(PERL) -MTest::Harness -e 'runtests @ARGV if @ARGV;' $^
# If there's a perl test script (.plt) available, use it
%.t: ../%.plt
@$(RM) $@
$(PERL) $(TOOLS)/convertRelease.pl -h $(EPICS_HOST_ARCH) $@
@$(CP) $< $@
binInstalls: $(BIN_INSTALLS)
@echo "Installing $(^F)"
@$(INSTALL) -d -m 555 $^ $(INSTALL_BIN)
# Some versions of Test::Harness expect test programs in perl only.
# Generate a perl program to exec the real test binary.
%.t: %$(EXE)
@$(RM) $@
@$(PERL) $(TOOLS)/makeTestfile.pl $@ $<
libInstalls: $(LIB_INSTALLS)
@echo "Installing $(^F)"
@$(INSTALL) -d -m 555 $^ $(INSTALL_LIB)
#---------------------------------------------------------------
## 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))))
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))))
#---------------------------------------------------------------
$(INSTALL_BIN)/%: ../os/$(OS_CLASS)/%
@echo "Installing os-specific script $@"
@$(INSTALL_PRODUCT) -d -m 555 $< $(INSTALL_BIN)
@$(INSTALL_PRODUCT) -d -m $(BIN_PERMISSIONS) $< $(INSTALL_BIN)
$(INSTALL_BIN)/%: %
@echo "Installing binary $@"
ifdef WIN32
ifdef BORLAND
@$(INSTALL_PRODUCT) -d -m 555 $< $(INSTALL_BIN)
else
@$(INSTALL_PRODUCT) -d -m 555 $<* $(INSTALL_BIN)
endif
else
@$(INSTALL_PRODUCT) -d -m 555 $< $(INSTALL_BIN)
endif
@echo "Installing created file $@"
@$(INSTALL_PRODUCT) -d -m $(BIN_PERMISSIONS) $< $(INSTALL_BIN)
$(INSTALL_BIN)/%: ../%
@echo "Installing script $@"
@$(INSTALL_PRODUCT) -d -m 555 $< $(INSTALL_BIN)
@$(INSTALL_PRODUCT) -d -m $(BIN_PERMISSIONS) $< $(INSTALL_BIN)
$(INSTALL_LIB)/%.a: %.a
@echo "Installing library $@"
@$(INSTALL_LIBRARY) -d -m 644 $< $(INSTALL_LIB)
@$(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)
@$(INSTALL_LIBRARY) -d -m $(LIB_PERMISSIONS) $< $(INSTALL_LIB)
$(INSTALL_SHRLIB)/lib%: lib%
@echo "Installing shared library $@"
@$(INSTALL_LIBRARY) -d -m 555 $< $(INSTALL_SHRLIB)
@$(INSTALL_LIBRARY) -d -m $(LIB_PERMISSIONS) $< $(INSTALL_SHRLIB)
ifneq (,$(strip $(SHRLIB_VERSION)))
@$(RM) $(subst .$(SHRLIB_VERSION),,$@)
ln -s $< $(subst .$(SHRLIB_VERSION),,$@)
@@ -355,11 +375,11 @@ endif # SHRLIB_VERSION
ifneq ($(INSTALL_TCLLIB),$(INSTALL_BIN))
$(INSTALL_TCLLIB)/%: %
@echo "Installing Tcl library $@"
@$(INSTALL) -d -m 555 $< $(INSTALL_TCLLIB)
@$(INSTALL) -d -m $(BIN_PERMISSIONS) $< $(INSTALL_TCLLIB)
$(INSTALL_TCLLIB)/%: ../%
@echo "Installing Tcl library $@"
@$(INSTALL) -d -m 555 $< $(INSTALL_TCLLIB)
@$(INSTALL) -d -m $(BIN_PERMISSIONS) $< $(INSTALL_TCLLIB)
endif
$(INSTALL_TCLLIB)/$(TCLINDEX): $(INSTALL_TCLLIBS)
@@ -376,52 +396,55 @@ endif # LOADABLE_SHRLIB_VERSION
$(INSTALL_CONFIG)/%: %
@echo "Installing config file $@"
@$(INSTALL) -d -m 644 $< $(@D)
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_CONFIG)/%: ../%
@echo "Installing config file $@"
@$(INSTALL) -d -m 644 $< $(@D)
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_INCLUDE)/% : $(COMMON_DIR)/%
@echo "Installing generated generic include file $@"
@$(INSTALL) -d -m 644 $< $(@D)
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_INCLUDE)/% : %
@echo "Installing generic include file $@"
@$(INSTALL) -d -m 644 $< $(@D)
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_INCLUDE)/os/$(OS_CLASS)/% : %
@echo "Installing os dependent include file $@"
@$(INSTALL) -d -m 644 $< $(@D)
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_DOC)/%: %
@echo "Installing doc $@"
@$(INSTALL) -d -m 644 $< $(INSTALL_DOC)
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(INSTALL_DOC)
$(INSTALL_DOC)/%: ../%
@echo "Installing doc $@"
@$(INSTALL) -d -m 644 $< $(INSTALL_DOC)
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(INSTALL_DOC)
$(INSTALL_HTML)/$(HTMLS_DIR)/%: %
@echo "Installing html $@"
@$(INSTALL) -d -m 644 $< $(@D)
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_HTML)/$(HTMLS_DIR)/%: ../%
@echo "Installing html $@"
@$(INSTALL) -d -m 644 $< $(@D)
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_TEMPLATES_SUBDIR)/%: ../%
@echo "Installing $@"
@$(INSTALL) -d -m 644 $< $(@D)
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_TEMPLATES_SUBDIR)/%: %
@echo "Installing $@"
@$(INSTALL) -d -m 644 $< $(@D)
@$(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: all inc build install clean rebuild buildInstall
.PHONY: runtests
endif # BASE_RULES_BUILD
# EOF RULES_BUILD

View File

@@ -1,24 +1,24 @@
#*************************************************************************
# Copyright (c) 2002 The University of Chicago, as Operator of Argonne
# 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 Versions 3.13.7
# and higher are distributed subject to a Software License Agreement found
# in file LICENSE that is included with this distribution.
# EPICS BASE is distributed subject to a Software License Agreement found
# in the file LICENSE that is included with this distribution.
#*************************************************************************
#
# $Id$
#
ARCHS += $(BUILD_ARCHS)
ACTIONS += inc build install buildInstall clean realclean archclean
dirPart = $(word 1, $(subst $(DIVIDER), ,$@))
actionArchPart = $(join $(word 2, $(subst $(DIVIDER), ,$@)), \
$(addprefix $(DIVIDER),$(word 3, $(subst $(DIVIDER), ,$@))))
ACTIONS += inc build install buildInstall clean realclean archclean runtests
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),\
$(foreach arch, $(ARCHS), \
@@ -37,6 +37,30 @@ all : install
rebuild : clean install
# Create directory dependancies lines for GNU make -j option
# Only works with GNU make 3.80 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)_$$(ARCH_CLASS))),$$(subst -nil-,,$$($(1)_$$(ARCH_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)))
@@ -124,7 +123,7 @@ $(COMMON_TESTCLASSES): $(addprefix ../,$(DEPTESTJAVA))
@$(RM) $@
$(JAVACCMD) -d $(COMMON_DIR) $^
$(INSTALL_CLASSES): $(addprefix ../,$(DEPJAVA))
$(INSTALL_CLASSES): $(addprefix ../,$(JAVA))
@echo Creating java class files
@$(RM) $@
$(JAVACCMD) -d $(INSTALL_JAVA) $^
@@ -141,15 +140,15 @@ $(COMMON_DIR)/%.jar: $(JARDEPFILES)
$(INSTALL_JAVA)/%.jar: $(COMMON_DIR)/%.jar
@echo "Installing java jar file $@"
@$(INSTALL) -d -m 644 $< $(@D)
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(INSTALL_JAVA)/%.jar: %.jar
@echo "Installing java jar file $@"
@$(INSTALL) -d -m 644 $< $(@D)
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
$(addprefix $(INSTALL_JAVA)/, $(JARINPUT)): $(INSTALL_JAVA)/%: ../%
@echo "Installing jar input file $@"
@$(INSTALL) -d -m 644 $< $(@D)
@$(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)
$$(LIB_PREFIX)$(1)$$(SHRLIB_SUFFIX):$$($(1)_OBJSNAME) $$($(1)_RESS)
$$(LIB_PREFIX)$(1)$$(SHRLIB_SUFFIX):$$($(1)_DEPLIBS)
$$(LIB_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), ,$@))
@@ -35,8 +36,10 @@ endif
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)

View File

@@ -197,7 +197,7 @@ PROD_VERSION =
# Scripts to install
#
# If there is both ../$(SCRIPT) and ../$(OS_CLASS)/$(SCRIPT),
# If there is both ../$(SCRIPTS) and ../$(OS_CLASS)/$(SCRIPTS),
# the latter, system specific version will be installed!
#
SCRIPTS_DEFAULT = script_for_rest

View File

@@ -18,6 +18,7 @@
-include $(CONFIG)/os/CONFIG.Common.UnixCommon
GNU_TARGET_INCLUDE_DIR =
unexport GCC_EXEC_PREFIX
#--------------------------------------------------
# Get RTEMS_BASE definition
@@ -82,7 +83,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 \
@@ -99,8 +100,9 @@ CODE_CXXFLAGS =
#--------------------------------------------------
# RTEMS uses the inline keyword so -pedantic causes too many problems.
CONFORM_CFLAGS_STRICT = -ansi
CONFORM_CXXFLAGS_STRICT = -ansi
# Using -ansi turns off lots of useful prototypes (e.g. strtok_r).
CONFORM_CFLAGS_STRICT =
CONFORM_CXXFLAGS_STRICT =
#--------------------------------------------------
# Command-line input support
@@ -109,4 +111,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,13 @@
#
# CONFIG.Common.RTEMS-at91rm9200ek
# Author: Ralf Hartmann
# BESSY
# Ralf.Hartmann@bessy.de
#
# Atmel AT91RM9200-EK evaluation kit
# using the AT91RM9200 ARM9-based 32-bit RISC microcontroller
#
# All RTEMS targets use the same Makefile fragment
#
RTEMS_TARGET_CPU=arm
include $(CONFIG)/os/CONFIG.Common.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_BASE)/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

@@ -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,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_BASE)/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

@@ -16,8 +16,3 @@ define MUNCH_CMD
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,15 +12,6 @@
# Unix valid build types
VALID_BUILDS = Host Ioc
#-------------------------------------------------------
# Gnu directory
GNU_DIR = /usr/local
#-------------------------------------------------------
# Get fullpathname of relative dirs
SHRLIB_SEARCH_FULLPATHDIRS = $(foreach dir,$(SHRLIB_SEARCH_DIRS), \
$(shell perl $(TOOLS)/fullPathName.pl $(dir)))
#-------------------------------------------------------
# Unix prefix and suffix definitions
EXE =
@@ -55,8 +46,10 @@ SHRLIB_DEPLIBS=$(foreach lib, $(LIB_LIBS) $(USR_LIBS), \
SHRLIB_LDLIBS = $(addprefix -l, $($*_LDLIBS) $(LIB_LIBS) $(USR_LIBS) \
$($*_SYS_LIBS) $(LIB_SYS_LIBS) $(USR_SYS_LIBS)) $(LDLIBS)
SHRLIB_DEPLIB_DIRS = $(dir $($*_DEPLIBS)) $(dir $(SHRLIB_DEPLIBS))
SHRLIBDIR_LDFLAGS += $(sort $(SHRLIB_DEPLIB_DIRS:%=-L%))
SHRLIB_DEPLIB_DIRS = $(foreach word,$(sort $(dir $($*_DEPLIBS) $(SHRLIB_DEPLIBS))), \
$(shell $(PERL) $(TOOLS)/fullPathName.pl $(word)))
SHRLIBDIR_LDFLAGS += $(SHRLIB_DEPLIB_DIRS:%=-L%)
#-------------------------------------------------------
# Prod: DEPLIBS, LDFLAGS, and LDLIBS definitions
@@ -75,17 +68,17 @@ LDLIBS_SHARED_NO = LDLIBS
PROD_LDLIBS += $($(firstword $(LDLIBS_STATIC_$(STATIC_BUILD)) \
$(LDLIBS_SHARED_$(SHARED_LIBRARIES))))
PROD_DEPLIB_DIRS = $(dir $($*_DEPLIBS)) $(dir $(PROD_DEPLIBS))
PRODDIR_LDFLAGS += $(sort $(PROD_DEPLIB_DIRS:%=-L%))
PROD_DEPLIB_DIRS = $(foreach word,$(sort $(dir $($*_DEPLIBS) $(PROD_DEPLIBS))), \
$(shell $(PERL) $(TOOLS)/fullPathName.pl $(word)))
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,24 +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
RUNTIME_LDFLAGS = $(SHRLIB_SEARCH_FULLPATHDIRS:%=-Wl,-rpath,%)
OP_SYS_CPPFLAGS += -DCYGWIN32
# Definitions used when COMMANDLINE_LIBRARY is READLINE
INCLUDES_READLINE = -I$(GNU_DIR)/include
LDFLAGS_READLINE += -L$(GNU_DIR)/lib
LDLIBS_READLINE = -lreadline
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

@@ -7,52 +7,10 @@
# Sites may override these definitions in CONFIG_SITE.Common.darwin-ppc
#-------------------------------------------------------
# Include definitions common to all Unix targets
include $(CONFIG)/os/CONFIG.Common.UnixCommon
#
# Set OS-specific information
# Architecture-specific information
#
OS_CLASS = Darwin
ARCH_CLASS = ppc
#
# Special flags for Darwin
# No common blocks (as required when using shared libraries)
#
OP_SYS_CFLAGS += -fno-common
#
# Don't try to use precompiled headers when converting sequencer files
#
CPPSNCFLAGS += -no-cpp-precomp
#
# Darwin os definition
#
OP_SYS_CPPFLAGS += -Ddarwin
#
# The following two definitions enable the use of DarwinPorts packages.
#
OP_SYS_INCLUDES += -I/opt/local/include
# dir/firstword/wildcard used to avoid warning -L: directory name (...) does not exist
OP_SYS_LDFLAGS += $(addprefix -L,$(dir $(firstword $(wildcard /opt/local/lib/*))))
#
# The following two definitions enable the use of Fink packages.
#
OP_SYS_INCLUDES += -I/sw/include
# dir/firstword/wildcard used to avoid warning -L: directory name (...) does not exist
OP_SYS_LDFLAGS += $(addprefix -L,$(dir $(firstword $(wildcard /sw/lib/*))))
#
# Libraries for command-line editing.
#
LDLIBS_READLINE = -lreadline
#
# Command-line input support
#
COMMANDLINE_LIBRARY=READLINE
# Include definitions common to all Darwin targets
include $(CONFIG)/os/CONFIG.darwinCommon.darwinCommon

View File

@@ -0,0 +1,22 @@
# CONFIG.Common.darwin-ppcx86
#
# $Id$
# This file is maintained by the build community.
#
# Definitions for Darwin 'universal' (PowerPC, Intel) 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 += -arch i386 -arch ppc
OP_SYS_LDFLAGS += -arch i386 -arch ppc
# Include definitions common to all Darwin targets
include $(CONFIG)/os/CONFIG.darwinCommon.darwinCommon

View File

@@ -0,0 +1,16 @@
# CONFIG.Common.darwin-x86
#
# $Id$
# This file is maintained by the build community.
#
# Definitions for darwin-x86 target builds
# Sites may override these definitions in CONFIG_SITE.Common.darwin-x86
#-------------------------------------------------------
#
# Architecture-specific information
#
ARCH_CLASS = x86
# Include definitions common to all Darwin targets
include $(CONFIG)/os/CONFIG.darwinCommon.darwinCommon

View File

@@ -0,0 +1,34 @@
# $Id$
#
# This file is maintained by the build community.
#
# Definitions for freebsd-x86 target builds
# Sites may override these definitions in CONFIG_SITE.Common.freebsd-x86
#-------------------------------------------------------
# Include definitions common to all freebsd targets
include $(CONFIG)/os/CONFIG.Common.freebsdCommon
ARCH_CLASS = x86
ARCH_DEP_CPPFLAGS += -D_X86_
ifeq ($(BUILD_CLASS),CROSS)
ifeq ($(EPICS_HOST_ARCH),freebsd-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.freebsd-x86
-include $(CONFIG)/os/CONFIG.freebsd-x86.freebsd-x86
-include $(CONFIG)/os/CONFIG_SITE.freebsd-x86.freebsd-x86
else
GNU_TARGET=i586-pc-freebsd-gnu
CMPLR_SUFFIX=
CMPLR_PREFIX=$(addsuffix -,$(GNU_TARGET))
endif
endif

View File

@@ -0,0 +1,34 @@
# $Id$
#
# This file is maintained by the build community.
#
# Definitions for freebsd-x86_64 target builds
# Sites may override these definitions in CONFIG_SITE.Common.freebsd-x86_64
#-------------------------------------------------------
# Include definitions common to all freebsd targets
include $(CONFIG)/os/CONFIG.Common.freebsdCommon
ARCH_CLASS = x86_64
ARCH_DEP_CPPFLAGS += -D_X86_64_
ifeq ($(BUILD_CLASS),CROSS)
ifeq ($(EPICS_HOST_ARCH),freebsd-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.freebsd-x86_64
-include $(CONFIG)/os/CONFIG.freebsd-x86_64.freebsd-x86_64
-include $(CONFIG)/os/CONFIG_SITE.freebsd-x86_64.freebsd-x86_64
else
GNU_TARGET=i586-pc-freebsd-gnu
CMPLR_SUFFIX=
CMPLR_PREFIX=$(addsuffix -,$(GNU_TARGET))
endif
endif

View File

@@ -0,0 +1,32 @@
# $Id$
#
# This file is maintained by the build community.
#
# Definitions for freebsd target builds
# Sites may override these definitions in CONFIG_SITE.Common.freebsdCommon
#-------------------------------------------------------
# Include definitions common to all Unix targets
include $(CONFIG)/os/CONFIG.Common.UnixCommon
OS_CLASS = freebsd
CODE_CPPFLAGS = -D_REENTRANT
POSIX_CPPFLAGS = -D_POSIX_THREADS
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 += -Dfreebsd
# 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
GNU_LDLIBS_YES = -lgcc_pic

View File

@@ -26,6 +26,9 @@ LOADABLE_SHRLIB_SUFFIX = .sl$(addprefix .,$(LOADABLE_SHRLIB_VERSION))
# Set runtime path for shared libraries
empty:= # trick from the make docs...
space:= $(empty) $(empty)
RUNTIME_LDFLAGS = -Wl,+b$(subst $(space),:,$(sort $(SHRLIB_SEARCH_FULLPATHDIRS))),+s
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

@@ -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

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