Go to Post The point of FRC (in my opinions) is to teach the kids that might have no skills, new skills. - dirtbikerxz [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-11-2004, 16:11
jdong jdong is offline
Linux Nerd
AKA: John D
#0245 (Adam-Bots)
Team Role: Programmer
 
Join Date: Apr 2004
Location: Rochester, MI
Posts: 98
jdong will become famous soon enoughjdong will become famous soon enough
Adambots-Live Linux Makefile -- version 0.1 RELEASE

https://sourceforge.net/project/show...ease_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/?gro...94&atid=683416

File improvements / patches at: https://sourceforge.net/tracker/?gro...94&atid=683418


Need help? https://sourceforge.net/tracker/?gro...94&atid=683417
__________________
John Dong
Co-Captain, Webmaster / Programmer
Team 245 -- Rochester Adams Robotics

Last edited by jdong : 11-11-2004 at 16:15.
  #2   Spotlight this post!  
Unread 11-11-2004, 16:14
jdong jdong is offline
Linux Nerd
AKA: John D
#0245 (Adam-Bots)
Team Role: Programmer
 
Join Date: Apr 2004
Location: Rochester, MI
Posts: 98
jdong will become famous soon enoughjdong will become famous soon enough
Re: Adambots-Live Linux Makefile -- version 0.1 RELEASE

You can track the live CVS developments at http://cvs.sourceforge.net/viewcvs.p.../code/Makefile

0.1 was CVS revision 1.10; there's always a few hours of ViewCVS lag with sourceforge
__________________
John Dong
Co-Captain, Webmaster / Programmer
Team 245 -- Rochester Adams Robotics
  #3   Spotlight this post!  
Unread 12-11-2004, 11:29
Michael Auchter Michael Auchter is offline
Registered User
#0068 (Truck Town Thunder)
 
Join Date: Jan 2004
Location: Clarkston, MI
Posts: 15
Michael Auchter is on a distinguished road
Re: Adambots-Live Linux Makefile -- version 0.1 RELEASE

I'll be sure to check this out when I get home today. I would love to get away from my dependence upon windows for programming.

By the way, I was the kid from Team 61 talking to you at Berkley.
  #4   Spotlight this post!  
Unread 12-11-2004, 19:12
jdong jdong is offline
Linux Nerd
AKA: John D
#0245 (Adam-Bots)
Team Role: Programmer
 
Join Date: Apr 2004
Location: Rochester, MI
Posts: 98
jdong will become famous soon enoughjdong will become famous soon enough
Re: Adambots-Live Linux Makefile -- version 0.1 RELEASE

Note: Makefile in CVS now expects /usr/bin/picloader_console frontend (percentage display)

Get your copy at http://sourceforge.net/project/showf...ease_id=281999

The console frontend still calls the ifi-pictools >=0.4.97 (0.5 beta 1) in the background. You still need the ifi-pictools package!!
__________________
John Dong
Co-Captain, Webmaster / Programmer
Team 245 -- Rochester Adams Robotics
  #5   Spotlight this post!  
Unread 17-11-2004, 18:41
jdong jdong is offline
Linux Nerd
AKA: John D
#0245 (Adam-Bots)
Team Role: Programmer
 
Join Date: Apr 2004
Location: Rochester, MI
Posts: 98
jdong will become famous soon enoughjdong will become famous soon enough
Re: Adambots-Live Linux Makefile -- version 0.1 RELEASE

Hmm, my Ubuntu Warty system used mawk, under which my awk expression worked. Under Ubuntu-development Hoary branch and apparently on some other distros, the makefile didn't work because it replaced all c's with .o! oops!

Corrected in release 0.1.1

https://sourceforge.net/project/show...ease_id=283489
__________________
John Dong
Co-Captain, Webmaster / Programmer
Team 245 -- Rochester Adams Robotics
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fav. Beatles Song MattK Chit-Chat 17 04-12-2002 17:18
RoboIDE 0.1 (Linux PBASIC IDE) rbayer Programming 1 29-11-2002 14:48


All times are GMT -5. The time now is 03:10.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi