Mike...
If the version of make provided with mingw doesn't have suitable defaults built in, you might post a minimal makefile here. Writing makefiles can be a bit intimidating for new users.
...Morris
Mike...
If the version of make provided with mingw doesn't have suitable defaults built in, you might post a minimal makefile here. Writing makefiles can be a bit intimidating for new users.
...Morris
Morris,
Listing a sample Makefile is probably a good idea. It takes a little space and listing a file that's not sbp code might offend non-programmers, but I've had to pull arrows out of my back before.
Here's four sample files: (1) Makefile, (2) Header file, (3) Source file 1, (4) Source file 2. Although no one would ever break things up in this manner, it might be useful as a pattern for larger projects. (It's the pattern I used to write the 'doors.exe' file.)
# file name: Makefile
# date: 30 May 2005
# purpose: sample makefile
CC=/c/mingw/bin/g++
LINK=-lm
OBJS= \
..hello.o\
..hello2.o
hello: $(OBJS)
..$(CC) -Wall -o $@ $(OBJS) $(LINK)
compile:
..$(CC) -Wall -c $(OBJS)
clean:
..rm -rf *.o
# end of makefile
/* hello.h */
#include <stdio.h>
void Hello(void);
/* end of hello.h */
/* hello.c */
#include "hello.h"
int main(void) {
..printf("Hello from main()\n");
..Hello();
..return(0);
}
/* end of hello.c */
/* hello2.c */
#include "hello.h"
void Hello(void)
{
..printf("Hello from Hello()\n");
}
/* end of hello2.c */
Sorry about all of the '..' characters, but I couldn't figure out the correct way to format. The '..' characters represent a tab character. If anyone has questions, please email me.
-Mike
miker@xmission.com
Have you guys found a "vi" like editor that runs in windoze? I have found that if you know "vi" commands pretty well, you can do some amazing editing, like global search and replace/delete, etc. I have used MKS tools in the past, but think there must be some "vi" tools that are freeware or shareware...... It is hard for us old UNIX folks to get used to windoze!
Any pointers/tips appreciated....
Wayneo
Hi Wayne!
Have you heard of VIM (www.vim.org)?
...I'm not sure what you meant by "vi"; I assumed... something!
Hi Paco,
Yes, I have VIM for UNIX on my SUN workstation @ work. I hate to give up all my years of learing "VI" and be constrained to use "NOTEPAD" in windoze. There is so many "VI" look-alike's out there, I was hoping to avoid having to dig through the pile.
Trying VIM is a good suggestion!
Thanks,
Wayneo
Wayne,
Paco's suggestion was correct.
Morris Dovey said, "I've been using GVIM, also a free program, and have set it up for syntax coloring of .SBP files. VI (even improved) isn't my favorite editor, but I couldn't find a Win32 version of nedit - which /is/ my favorite.
I've set up my system so that the FE command executes GVIM (default) or if there're parameters started and ended with a dollar sign, requests the system to execute the parameters between the $'s - a hacker's delight!" in his November 26, 2004 post.
-Mike
I like using cygwin on my windoze boxes. http://cygwin.com/ Totally free, works like a charm. Basically a mini-distro that runs on windoze, comes with shells, all the command line tools, compilers, can even run X. Sometimes I forget I'm running windoze.