06-17-07 06:14 PM
Where does the $(LIB) should be plugged in in the Makefile below. I am
getting an error that reads:
------------------
exception.hpp linker input file unused because linking not done
------------------
Thanks in advance folks.
# My Makefile
# Compiler name
CPP=g++
# Flagas
CFLAGS = -Wall -g -ansi `gtk-config --cflags`
LIBS = `gtk-config --libs`#-- What do I do with this var? -#
# Files to be included
EXCEPTION_HPP=./exception/exception.hpp
EXCEPTION_CPP=./exception/exception.cpp
# Variables
OBJS = main.o exception.o
EXEC = MyApp
#Application name
my_app: $(OBJS)
$(CPP) $(LDLIBS) $(OBJS) -o $(EXEC)
main.o: main.cpp
$(CPP) $(CFLAGS) -c main.cpp
exception.o: $(EXCEPTION_HPP)
$(CPP) $(CFLAGS) -c $(EXCEPTION_CPP)
clean:
rm -f exception.o
rm -f $(EXEC)
PHONY: clean
[ Post a follow-up to this message ]
|