Ok,
I'll assume you have Lcc-Win32 installed on you system somewhere. Mine is installed in 'C:\Lcc-Win32', so that is the directory I will be using during this setup.
I'll will explain how to setup the Lcc-Win32 Make utility, as this utility uses the makefile output by Lcc-Win32, calling the compiler and linker as needed (makes building programs a lot simpler):
1) First, load up TextPad
2) Choose the 'Configure' menu option, and select 'Preferences'. This will show the 'Preferences' Dialog.
3) On the left side of this Dialog, you will see a list of options. The bottom one is named 'Tools'. Select it, and the right side of the Dialog will change. At the top will be an 'Add' button. Below that will be some text ("Use this form to add, delete ... ").
4) Press the 'Add' button, and a drop-down list will appear. Select 'Program' from the list.
5) A file browser window, with the title 'Select a File', will pop-up. Use this window to navigate to the Lcc-Win32 Make utility. It's called 'MAKE.EXE'. On my system is is located in 'c:\Lcc-Win32\bin'.
6) Select the make utility. It's name should appear in the text box labeled 'File name' at the bottom of the window. Press the button labeled 'Open' to the right of this text box.
7) This will take you back to the Perference dialog. There should now be an option in the large center text field called 'Make'. NOTE: to change the name to something else, just select it with the left mouse button, and hold the button down for a second or two. When you release the button, the option will change to a edit field, allowing you to change the name.
8) Select the 'Apply' button at the bottom of the 'Preferences' dialog. The 'Tools' option on the left side of the dialog should now have a small '[+]' next to it. Press the small '[+]'.
9) This will show a sub-list of options. One should be named 'Make'. Select the option named 'Make'. The right side of the 'Preferences' dialog should change. There will be three text-edit fields at the top labeled 'Command', 'Parameters' and 'Initial Folder'
In the field 'Command' there should be the location and name of the Lcc-Win32 make utility. On my system this box contains 'C:\Lcc-Win32\bin\make.exe'
--------------------
Now, from this point, how you fill in the rest of this dialog, that is to say, what you put in the 'Prameters' and 'Initial Folder' text-fields and which of the six check boxes you select, depends on how you plan to use the Lcc-Win32 and TextPad. I'll explain how I have it setup:
When I want create a new Lcc-Win32 Project, I:
A) create a directory with the name of the project.
B) create an empty source file, and place it in that directory.
C) open up Wedit, and create a new project, giving the project the SAME NAME as the directory created in step 'A'.
D) Add the empty source file to the new project.
After the project is created, inside the directory created in step 'A' above, is a sub-directory called 'lcc' and in that sub-directory is a file called 'makefile'. This file contains all the instructions needed for the make utility to 'Make' your program.
Next I create a TextPad workspace, located in the directory created in step 'A' above. I give the workspace the SAME NAME as the directory. Any time I want to work on a Lcc-Win32 project, I open up the TextPad Workspace.
NOTE: if you need help on setting up Lcc-Win32 projects or TextPad workspaces, I'm sorry but, I'm going to have to refer you to their respective sets of documentation. Neither is hard to setup, it's just more than I want to explain here. Sorry.
-----------------
I will now explain how to setup the rest of the 'Preferences' dialog to work with the way I have my system setup:
10) In there is any text in the 'Paremeters' edit-field, remove all of it.
11) In the 'Initial folder' edit-field type the following: "$WspDir\lcc". This tells TextPad to use the sub-directory named '\lcc' as the working location.
12) Select the 'Capture Output' check-box. This tells TextPad to collect any output from the make utitliy and display in a text window. This makes it easy to examine any error or warning messages.
13) The next section is labeled 'Regular expression to match output'. This is where you tell TextPad about the format of error and/or messages, so that by simply double-clicking on them, TextPad will take you to the file and line that generated the error/warning.
In the text-edit field just below the label, enter the below expression EXACTLY as shown:
^\(Error\|Warning\) \(.:[^:]+\): \([0-9]+\)
14) In the next section labeled 'Registers' there are three fields. In the 'File' field put a '2'. In the 'Line' field put a '3'. Leave the 'Column' field empty.
15) Press the 'Ok' button, and the 'Preferences' dialog will close.
If you select the 'Tools' menu options, you should see an option named 'Make'.
Now, everything is setup and ready to go! If you create a Lcc-Win32 project as I specified above, and create a TextPad workspace as I specified above, then open that TextPad workspace and type some code, when you select the 'Make' option, the code will be turned into a executable file that can be run (assuming no errors of course.)
Now as I said above, if you need more help with setting up project files, workspaces, etc. I'm going to have to direct you to the documentaion for both programs. Both sets of documentaion are very through and well written and contain all the information you'll need. Also, both TextPad and Lcc-Win32 have help forums that you can asked questions on. You've already found the TextPad help forum. The Lcc-Win32 one is at '
http://www.q-software-solutions.com/lccwin32/'
Well I hope all this has helped more that it has confused!
Good luck!
David