CC=gcc

PACKAGE="ssh-gui"
VERSION="0.5"

#Get GTK+ and GLIB CC flags
GTKFLAGS=`gtk-config --cflags`
GLIBFLAGS=`glib-config --cflags`

CFLAGS=-Wall $(GTKFLAGS) $(GLIBFLAGS) -DPACKAGE=$(PACKAGE) -DVERSION=$(VERSION)

#Get GTK+ and GLIB library flags
GTKLIBS=`gtk-config --libs`
GLIBLIBS=`glib-config --libs`

LIBS=$(GTKLIBS) $(GLIBLIBS)

#Individual .o files expected.
OBJS=ssh-gui.o ssh_widget.o notebook.o

ssh-gui: $(OBJS)
	$(CC) $(LIBS) $(OBJS) -o ssh-gui

#Implicit rules take CFLAGS and matching-name .c files.
$(OBJS):

clean:;
	-rm $(OBJS)

#The hyphen keeps it quiet.
