Hi
I'm working on a FreeBSD platform, but I'd like to use GNU make.
I know that CFLAGS works on BSD make, but how do I specify gcc flags in GNU make?
Thanks
/Skarr
Hi
I'm working on a FreeBSD platform, but I'd like to use GNU make.
I know that CFLAGS works on BSD make, but how do I specify gcc flags in GNU make?
Thanks
/Skarr
I've got the GNU make manual in front of me, and it lists CFLAGS as one of the variables used in built in rules. Not that I've personally used this feature, but you might be able to use it the same way as your BSD version.
starX
www.axisoftime.com
Hmm, doesn't work for me.
Could you post a simple Makefile where it works with gmake?
I like traffic lights. I like traffic lights. I like traffic lights, but only when they're green.
This from page 101 of the manual:
An example on setting the CFLAGS variable specifically is on page 36:Code:foo : foo.o bar.o cc -o foo foo.o bar.o $(CFLAGS) $(LDFLAGS)
Hope this helps you somewhat. Goodluck.Code:CFLAGS = $(include_dirs) -0 include_dirs = -Ifoo -Ibar
starX
www.axisoftime.com