Including other directories g++ & gtk
I am having a problem with compiling g++ with other directories. I am on a university server, so have no changing system rights.
Using glade, made source code and could get g++ to see and process files by writing
bash-2.05b$g++ main.cc -I/usr/include/gtk-1.2/ -I/usr/include/glib-1.2/ -I/usr/lib/glib/include/ -lgtk -lgdk -lglib
However, I forgot this won't compile other .cc files that main.cc needs.
So I tried to write a Makefile to include other files, and added the -I's and -l's to CXXFLAGS line, but g++ can't see them.
Can anybody help?