Skip to content

Command-line tool that invokes compiler processes with configured command-lines

Notifications You must be signed in to change notification settings

RogerGee/compile

Repository files navigation

compile

This is the source code repository for the compile program. It was written and is maintained by
Roger Gee <[email protected]>. The source code should work (granted with a few modifications) on
most major operating systems that implement POSIX plus Windows systems.
------------------------------------------------------------------------------------------------
Version Changelog -

1.0 - obsolete 
2.0 - refactor program; first major release
 + targets file functionality
 + command-line options passed to compiler
 + man page documentation
2.1.0 - fix target order in compiler command line
2.1.1 - add return value from main
2.1.2 - fixes to previous revision
2.1.3 - properly handle change log
2.2.0 - add output redirection feature
2.2.1
    - fix bug with project target resolution
2.3.0
    - update build system to autoconf
    - remove DEBIAN build file from source repository

------------------------------------------------------------------------------------------------
Building the project from source (Linux/OS X) -

First generate the configure scripts:

    $ autoreconf --install

Now configure and build in the standard way:

    $ ./configure
    $ make

------------------------------------------------------------------------------------------------
Building the project from source (MS Windows) -

*Note: I prefer to use Microsoft-issued compilers as they have better, more up-to-date API coverage
and produce better, more efficient binaries. This code repository includes scripts to build an MS
Windows binary using the standard Microsoft SDK C compiler Cl.exe. You can easily modify the
make.bat file to accommodate your compiler.

This repository provides two ways in which you can build the compile.exe binary for Windows.

1. Use the make.bat file to run the Cl.exe C compiler against the code base with the needed options.

> cd repo-folder
> make.bat

2. Use the MSBuild XML file to build the project using either the Command-line or Visual Studio. On
the command-line, this is as simple as running 'msbuild'.

> cd repo-folder
> msbuild

If you use Visual Studio, you can open the Compile.vcxproj file and build in the normal way.

About

Command-line tool that invokes compiler processes with configured command-lines

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published