https://sourceforge.net/project/showfiles.php?group_id=118894&package_id=130111&release_id=281942
Notes:
This is a makefile that can be used as a Linux-replacement for MPLAB.
–Features–
Parses any MPLAB project containing folder (i.e. default code) and finds all the .c / .h files to compile
Uses WINE in conjunction with mcc18.
–Requirements–
It assumes that there’s a /opt/mcc18 folder containing mcc18 in the SAME STRUCTURE as the Windows C:\mcc18.
It requires WINE. I’ve tested with 20040615 and 20040716.
Indent and Fortune are optional, but recommended.
The ifi-pictools or ifi-picloader packages are required to load the code.
–Operation–
Copy this file to the folder containing your code. Issue the following commands to get started:
gunzip [name_of_makefile]
mv [name_of_makefile] Makefile
mkdir .conf .deps
touch .conf/dummy
touch .deps/dummy
At this point, edit the makefile to modify its variables. Excuse the user-unfriendliness… It’ll be improved / autodetected at a later version
Type (make target) to make a target. Possible targets:
(nothing) – Generates FrcCode.hex file by building everything
file.o – Compiles file.o from file.c
clean – Removes compiled files, forces rebuild next time
prettycode – Indents/reformats code.
load – Use picloader to load the Hexfile to /dev/ttyS0
read – Read robot output from /dev/ttyS1 (requires picreader)
Please test & comment.
File bugs at : https://sourceforge.net/tracker/?group_id=118894&atid=683416
File improvements / patches at: https://sourceforge.net/tracker/?group_id=118894&atid=683418
Need help? https://sourceforge.net/tracker/?group_id=118894&atid=683417