Hello,
again as beginner i have a problem, see that makefile if interested in helping me:
Code:
#Makefile
NAME = exe
INCLUDE = `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gtksourceview-1.0` `pkg-config --cflags gnome-vfs-2.0`
LIBS = `pkg-config --libs gtk+-2.0` `pkg-config --libs gtksourceview-1.0` `pkg-config --libs gnome-vfs-2.0`
OBJECTS = codeview # could work as an array and for each??
${OBJECT}.o:
gcc -g -c -o obj/${OBJECT}.o ${INCLUDE} ${OBJECT}/${OBJECT}.c
TARGET = $(${TARGET} obj/${OBJECT}.o)
all: ${OBJECTS}
gcc -g -o ${NAME} ${INCLUDE} ${LIBS} main.c obj/${OBJECTS}.o
...as it may be seen, i try a 'general' makefile, wherein i best just have to add the a name to OBJECTS if i add a module, and better than this i may but the name in a file wherefrom make it would read.
Implementable by the GNU make ??
thx
chab