mirror of
https://github.com/InvisibleUp/uvmac.git
synced 2024-12-22 23:29:41 +00:00
90 lines
2.2 KiB
OpenEdge ABL
90 lines
2.2 KiB
OpenEdge ABL
/*
|
|
WRCCCFLS.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 generic Command line C Compiler specific FiLeS
|
|
*/
|
|
|
|
|
|
LOCALPROC WriteCccMakeFile(void)
|
|
{
|
|
WriteDestFileLn("# make file generated by gryphel build system");
|
|
|
|
WriteBlankLineToDestFile();
|
|
|
|
WriteDestFileLn("mk_COptions = -c");
|
|
WriteCStrToDestFile(" -I");
|
|
Write_cfg_d_ToDestFile();
|
|
WriteCStrToDestFile(" -I");
|
|
Write_src_d_ToDestFile();
|
|
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;
|
|
WriteDestFileLn("cc \\");
|
|
++DestFileIndent;
|
|
WriteBgnDestFileLn();
|
|
WriteCStrToDestFile("-o ");
|
|
WriteQuoteToDestFile();
|
|
Write_machobinpath_ToDestFile();
|
|
WriteQuoteToDestFile();
|
|
WriteCStrToDestFile(" \\");
|
|
WriteEndDestFileLn();
|
|
|
|
WriteBgnDestFileLn();
|
|
WriteCStrToDestFile("$(ObjFiles)");
|
|
#if 0
|
|
WriteCStrToDestFile(" -lXext");
|
|
#endif
|
|
WriteCStrToDestFile(" -L/usr/X11R6/lib -lX11");
|
|
WriteEndDestFileLn();
|
|
--DestFileIndent;
|
|
--DestFileIndent;
|
|
|
|
WriteBlankLineToDestFile();
|
|
WriteDestFileLn("clean :");
|
|
++DestFileIndent;
|
|
WriteDestFileLn("rm -f $(ObjFiles)");
|
|
WriteRmFile(WriteAppNamePath);
|
|
--DestFileIndent;
|
|
}
|
|
|
|
LOCALPROC WriteCccSpecificFiles(void)
|
|
{
|
|
WriteADstFile1("my_project_d",
|
|
"Makefile", "", "Make file",
|
|
WriteCccMakeFile);
|
|
}
|