# Makefile for The Mana World Buddy # Copyright (C) 2008 John Hobbs - john@velvetcache.org # # This file is part of The Mana World Buddy. # # The Mana World Buddy is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # The Mana World Buddy is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with The Mana World Buddy. If not, see . # Compiler setup CC=g++ CFLAGS=-Wall -g COMPILER=$(CC) $(CFLAGS) # GTK GTKCFLAGS=`pkg-config gtkmm-2.4 --cflags` GTKLFLAGS=`pkg-config gtkmm-2.4 --libs` # cURL Flags CURLCFLAGS=`curl-config --cflags` CURLLFLAGS=`curl-config --cflags --libs` # vcConfig Flags VCLFLAGS=-lvcconfig # Program targets MAINOBJS=main.o mainWindow.o tmwb.o addDialog.o server.o TMWBuddy: $(MAINOBJS) $(COMPILER) $(GTKLFLAGS) $(CURLLFLAGS) $(VCLFLAGS) $(MAINOBJS) -o $@ clean: @rm -f TMWBuddy @rm -f *.o # Object targets .SUFFIXES : .cpp .o .h .cpp.o: $(COMPILER) $(GTKCFLAGS) $(CURLCFLAGS) -c $< -o $@ #--------------------------------------------------------------------------- # Root directory header dependencies # (Generated with "g++ -D_x86 -D_LINUX -MM *.cpp | sed 's/^\([a-zA-Z]\)/\n\1/'") gendeps: @g++ -D_x86 -D_LINUX -MM *.cpp | sed 's/^\([a-zA-Z]\)/\n\1/' addDialog.o: addDialog.cpp addDialog.h main.o: main.cpp mainWindow.h server.h tmwb.h mainWindow.o: mainWindow.cpp mainWindow.h server.h tmwb.h addDialog.h server.o: server.cpp server.h tmwb.h tmwb.o: tmwb.cpp tmwb.h