]> andersk Git - splint.git/commitdiff
files to circumvent automatic header file generation
authorherbert <herbert>
Thu, 27 Sep 2001 10:10:50 +0000 (10:10 +0000)
committerherbert <herbert>
Thu, 27 Sep 2001 10:10:50 +0000 (10:10 +0000)
os2/BUILD.OS2
os2/config.inc [new file with mode: 0644]
os2/herald.h [new file with mode: 0644]
os2/local_constants.h [new file with mode: 0644]
os2/makeos2.cmd

index 75e22578121203e009b7f485f18db3e9c40da04b..6f1f813ca4f809bba86eac089bedc1a85e581254 100644 (file)
@@ -33,6 +33,13 @@ Each of the above options will create a new configuration. To continue
 a build with an existing configuration use "o". Finally "t" runs the\r
 "quicktest" part of the test suite (other tests are not yet supported).\r
 \r
+If you experience problems with the automatic configuration file creation\r
+from within Makefile.os2 you may alternatively call makeos2.cmd with the\r
+`-o' option and use the existing config.inc file (assuming that you use\r
+IBMC, else edit it by hand). In that case you may also want to edit the\r
+local_constants.h and herald.h files from this directory to have it match \r
+your setup.\r
+\r
 Please, be aware that you need the flex library in order to build lclint.\r
 As far as I remember the OS/2 version of flex comes with this library for\r
 the emx/gcc compiler. If not, you will easily be able to compile it \r
diff --git a/os2/config.inc b/os2/config.inc
new file mode 100644 (file)
index 0000000..6bc67ed
--- /dev/null
@@ -0,0 +1,19 @@
+CC=icc -q -W2 -Dunlink=unlink -O+ -G5 -Gf+ -Gi+ -Gs+ \r
+CFLAGS=\r
+CPPFLAGS=-I.\Headers -DSTDC_HEADERS=1 -DOS2 \r
+BISON=\r
+FLEX=flex\r
+YFLAGS=-v -t -d\r
+LFLAGS=\r
+SYSTEM_LIBDIR="\\usr\\include"\r
+DEFAULT_LCLIMPORTDIR="\\usr\\lib\\lclint\\imports"\r
+DEFAULT_LARCHPATH=".;\\usr\\lib\\lclint\\lib"\r
+DEFAULT_CPPCMD="cpp "\r
+LINKFLAGS=-B/noe setargv.obj fl.lib lclint.def\r
+O=.obj\r
+E=.exe\r
+OFLAG=-felclint.exe\r
+CAT=type\r
+MV=mv\r
+CP=cp\r
+ECHO="echo.exe"\r
diff --git a/os2/herald.h b/os2/herald.h
new file mode 100644 (file)
index 0000000..30b39dc
--- /dev/null
@@ -0,0 +1,7 @@
+/* herald.h - created automatically from herald.os2 and Makefile.os2 */\r
+/*@constant observer char *LCL_VERSION;@*/\r
+# define LCL_VERSION "LCLint 3.0.0.15 --- Sep 11 2001"\r
+/*@constant observer char *LCL_PARSE_VERSION;@*/\r
+# define LCL_PARSE_VERSION "LCLint 3.0.0.15"\r
+/*@constant observer char *LCL_COMPILE;@*/\r
+# define LCL_COMPILE "Compiled using icc -q -W2 -Dunlink=unlink -O+ -G5 -Gf+ -Gi+ -Gs+ \n on OS/2 Tue Sep 11 16:55:42 CET 2001 i586 by herbert,\n OS/2 specific subversion is 2"\r
diff --git a/os2/local_constants.h b/os2/local_constants.h
new file mode 100644 (file)
index 0000000..6bb6e37
--- /dev/null
@@ -0,0 +1,9 @@
+/* local_constants.h - created automatically by gmake localconstants */\r
+/*@constant observer char *DEFAULT_CPPCMD;@*/\r
+# define DEFAULT_CPPCMD "cpp "\r
+/*@constant observer char *SYSTEM_LIBDIR;@*/\r
+# define SYSTEM_LIBDIR "\\usr\\include"\r
+/*@constant observer char *DEFAULT_LARCHPATH;@*/\r
+# define DEFAULT_LARCHPATH ".;\\usr\\lib\\lclint\\lib"\r
+/*@constant observer char *DEFAULT_LCLIMPORTDIR;@*/\r
+# define DEFAULT_LCLIMPORTDIR "\\usr\\lib\\lclint\\imports"\r
index 29fde7c9e78b2842710099e2b221ec1c14baa828..6a8708c9994b999baecd8a6bd93a05d8d6766dee 100755 (executable)
@@ -35,6 +35,8 @@ sh -c "export TODAY=`date.exe`; export LCL_DATE=`date.exe | cut -d ' ' -f 2,3,6`
 goto end\r
 \r
 :oldconf\r
+if not exist %base%\src\Headers\local_constants.h copy local_constants.h %base%\src\Headers\local_constants.h\r
+if not exist %base%\src\Headers\heral.h copy local_constants.h %base%\src\Headers\herald.h\r
 make -f Makefile.os2 --directory=../src --warn-undefined-variables %2 %3 %4 %5 %6 %7 %8 %9 \r
 if errorlevel 0 mv ..\src\lclint.exe ..\bin\r
 goto end\r
This page took 0.125307 seconds and 5 git commands to generate.