Originally posted here by Q-bel
Well guess nobody who has done something like that has seen this but just in case another question, is there an easier way to compile a module besides doing a makefile?? I was using kdevelop and thought if i started a new project as a "module project" he would take care of compiling it correctly.....I was wrong
you could probably use autotools, automake in particular. you have to write a Makefile.am file. but it is easier. run automake, which will then generate the Makefile for you. then just make.


Code:
#sample Makefile.am (not tested)
#
# compiles and links test.c and objs and libs specified by test_LDADD into bin file called test, also looks for makefiles in two subdirs
#

noinst_PROGRAMS = test

test_SOURCES = test.c

test_LDADD = ./subdir/ObjFile.o ./subdir2/anotherObjFile.o -lGL -lfaad

SUBDIRS = subdir subdir2

though, if you are building modules instead of bins you probably want something like:


Code:
libtest_a_SOURCES = test.c
noinst_LIBRARIES = libtest.a