On Sat, 12 Jan 2008, Richard wrote:
> Thanks for the help guys, I am at the point where I can do soem
> development. I have the compiler set up and I made a new file called
> profiles.local which has the path to my bin. I downloaded XEMACS but
> han having troubles using it so at i am using kate.
I recommend getting some of the plugins for kate, such as the tab bar
plugin and the autocomplete plugin. Also, it's extremely customisable so
spend some time poking around in the options. Eg; the line numbers (F11)
are really handy, but off by default ;)
> I don't know if any of you know of Ultra Edit or ConEdit. These are
> programs i use in windows for embedded development and they allow you to
> set up commands to handle the compiling for you. In the end this is
> what i want to have done in Linux.
This is what makefiles are for.
The basic syntax of a makefile is:
to build this (type of) file: we need these files
then do this
and this
to build this (type of) file: we need these files
then do this
and this
and this too
Once you have written your makefile, simply type make at the terminal and
it will figure out what to build, and in what order considering which
files are present and newer than their dependencies.
Here's an example makefile I use for cross compiling a few projects for my
ts-7260:
CROSS:=arm-linux-
INCLUDES:=-I../hokuyo-urg
DEFINES:=-D_GNU_SOURCE -DTESTDRIVE
LIBRARYPATHS:=-L../hokuyo-urg
LIBRARIES:=-lm -lurglaser
CC:=$(CROSS)gcc $(INCLUDES) $(DEFINES) $(LIBRARYPATHS) $(LIBRARIES)
TARGETS:=robot motortest
.PHONY: all
all: $(TARGETS)
@echo done
.PHONY: clean
clean:
@rm -f $(TARGETS)
robot: *.c *.h Makefile
$(CC) -o $@ *.c
motortest: dcmd.c serio.c
$(CC) -DDO_MOTOR_TEST -o $@ $^
%.so:
$(CC) -DLINUX_OS --shared -o $@ $^
$(CROSS)strip $@
%: %.c
$(CC) -DLINUX_OS -o $@ $^
$(CROSS)strip $@
--- end Makefile ---
So when I update the code, I simply type make and it figures out the rest
for me :)
Ask google for tutorials.
> I spent some time and got the XEMACS help but am
> unable to figure out how to configure it. As for Kate I haven't
> really looked into it. One good thing i did like about kate is that
> it appears to have some c and c++ highlighting built in. This is
> another feature that I want and these things will ultimately help me
> to decide what to use.
Almost all editors in linux have syntax highlighting, even nano!
> Any more help on these issues would be appreciated. As i said before I
> am fairly new to the Linux environment and well lets just say my best
> friend is the "man" command, I just wish that busy box had it lol.
You should be able to find manuals for busybox commands via google,
possibly even on the busybox page.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|