[gtkmm] Help compiling with gmake



I am not sure why I am not being able to compile using the following 'Makefile' file:

# Gtk Make file

# Compiler name
CC=gcc

#Libraries to be included
LDLIBS=`gtkmm-config --libs'

#Flagas
CFLAGS=-Wall -g 'gtkmm --cflags --clibs`

#Objects
OBJS=foo.o bar.o

#Executable
EXEC = app

my_app: $(OBJS)
	$(CC) $(LDLIBS) $(OBJS) -o $(EXEC)

foo.o: foo.C bar.H
	$(CC) $(CFLAGS) -c foo.C

bar.o: bar.H
	$(CC) $(CFLAGS) -c bar.C

PHONY: clean


clean:
	rm -f *.o


Any body?

--
You cannot exercise your power to a point of humiliation of others.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]