Hi, A small project that I've been working on was buildable for linux/openbsd through a Makefile. The Makefile would build with one of two .c files. This worked fine as the same function names were used in both files.
Now I'm wanting to add optional mysql/postgres/sqllite etc to the project but I don't know how I can specify these as optionals, for example, the libraries may not exist to link to. Is there a way to set a define value in the Makefile that can be passed to the compiler? Ideally in the code, I would have something like: #ifdef DATABASE call_database_routeine(); #enfif .. at bit of a loss here! -- The OC48 to the Xbox is resetting because of a trailing space in /etc/netgroups. Qwest is going down like a whore in a room full of sailors. :: http://www.s5h.net/ :: http://www.s5h.net/gpg [Non-text portions of this message have been removed]
