uvmac/setup/WRSNCFLS.i

116 lines
2.8 KiB
OpenEdge ABL
Raw Normal View History

2019-07-23 02:50:34 +00:00
/*
WRSNCFLS.i
Copyright (C) 2007 Paul C. Pratt
You can redistribute this file and/or modify it under the terms
of version 2 of the GNU General Public License as published by
the Free Software Foundation. You should have received a copy
of the license along with this file; see the file COPYING.
This file is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
license for more details.
*/
/*
WRite SuN C specific FiLeS
*/
LOCALPROC WriteSncCOptions(void)
{
WriteCStrToDestFile(" -c -v -fd -xstrconst");
if (gbk_dbg_on != gbo_dbg) {
WriteCStrToDestFile(" -xO4 -xspace -Qn");
} else {
WriteCStrToDestFile(" -g");
}
}
LOCALPROC WriteSncMakeFile(void)
{
WriteDestFileLn("# make file generated by gryphel build system");
WriteBlankLineToDestFile();
WriteBgnDestFileLn();
WriteCStrToDestFile("mk_COptions =");
WriteSncCOptions();
WriteEndDestFileLn();
WriteBlankLineToDestFile();
WriteBgnDestFileLn();
WriteCStrToDestFile("TheDefaultOutput : ");
Write_machobinpath_ToDestFile();
WriteEndDestFileLn();
WriteBlankLineToDestFile();
DoAllSrcFilesWithSetup(DoSrcFileMakeCompile);
WriteBlankLineToDestFile();
WriteBgnDestFileLn();
WriteCStrToDestFile("ObjFiles = ");
WriteBackSlashToDestFile();
WriteEndDestFileLn();
++DestFileIndent;
DoAllSrcFilesStandardMakeObjects();
WriteBlankLineToDestFile();
--DestFileIndent;
WriteBlankLineToDestFile();
WriteBgnDestFileLn();
Write_machobinpath_ToDestFile();
WriteCStrToDestFile(" : $(ObjFiles)");
WriteEndDestFileLn();
++DestFileIndent;
WriteBgnDestFileLn();
WriteCStrToDestFile("cc");
if (gbk_dbg_on != gbo_dbg) {
WriteCStrToDestFile(" -s -Qn -mr");
}
WriteCStrToDestFile(" \\");
WriteEndDestFileLn();
++DestFileIndent;
WriteBgnDestFileLn();
WriteCStrToDestFile("-o ");
WriteQuoteToDestFile();
Write_machobinpath_ToDestFile();
WriteQuoteToDestFile();
WriteCStrToDestFile(" -L/usr/X11R6/lib -lX11");
#if 0
if (gbk_targfam_slrs == gbo_targfam) {
WriteCStrToDestFile(" -lposix4");
}
if (MySoundEnabled) {
WriteCStrToDestFile(" -lasound");
}
#endif
WriteCStrToDestFile(" \\");
WriteEndDestFileLn();
WriteDestFileLn("$(ObjFiles)");
--DestFileIndent;
if (gbk_dbg_on != gbo_dbg) {
if (gbk_ide_xcd == cur_ide) {
WriteBgnDestFileLn();
WriteCStrToDestFile("strip -u -r \"");
Write_machobinpath_ToDestFile();
WriteCStrToDestFile("\"");
WriteEndDestFileLn();
}
}
--DestFileIndent;
WriteBlankLineToDestFile();
WriteDestFileLn("clean :");
++DestFileIndent;
WriteDestFileLn("rm -f $(ObjFiles)");
WriteRmFile(WriteAppNamePath);
--DestFileIndent;
}
LOCALPROC WriteSncSpecificFiles(void)
{
WriteADstFile1("my_project_d",
"Makefile", "", "Make file",
WriteSncMakeFile);
}