# Author:             Manuele Vaggelli [manuele.vaggelli@member.fsf.org]
# Creation_Date:      Saturday, August 05, 2006
# Last_Modified_Date: Friday, August 18, 2006
# Program:            myspwizard
# File:               makefile
# Description:        Makefile for MySPwizard program
# Note:               Version 1.0
#
# This Makefile uses "mysql_config" utility to compile the program
# Please refer to: "MySQL 5.0 Reference Manual"
# Chapter: "22.9.2. mysql_config - Get Compile Options for Compiling Clients"

# Copyright (C) 2006 Manuele Vaggelli
# This program 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 2 of the License, or
# (at your option) any later version.
#
# This program 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 this program; if not, write to the Free Software
# Foundation, Inc.,51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

MSPW=myspwizard
SRCFILES=myspwizard.c concat.c
CC=gcc
CCFLAGS=-o
CFG=/usr/local/mysql/bin/mysql_config

$(MSPW): $(SRCFILES)
	@echo Building $(MSPW)
	$(CC) $(CCFLAGS) $(MSPW) `$(CFG) --include` $(SRCFILES)  `$(CFG) --libs`
	@echo Building complete


