# Generated automatically from Makefile.in by configure.
# Main Makefile for Mark Galassi's stupid "marklib" library
# Copyright (C) 1996 Mark Galassi.

# 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, 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., 675 Mass Ave, Cambridge, MA 02139, USA.

SHELL = /bin/sh
top_srcdir = .
srcdir = .

.SUFFIXES:
.SUFFIXES: .c .o
.SUFFIXES: .cpp .o

OPT=-g -O

AR = ar
AR_FLAGS = rc
RANLIB = @RANLIB@

CC = gcc
CXX = c++

CFLAGS = -Wall -I. -g -O2 -I/usr/local/include -I/usr/X11R6/include
#-I/usr/include/kde -I/usr/lib/qt-2.3.0/include 
CPPFLAGS = -g -Wall -O2  -I/usr/X11R6/include  -I/usr/X11R6/include  -I/usr/local/include -I/usr/X11R6/include 
LDFLAGS =  
LIBS = -lm  -lglut -lGLU -lGL  -lSM -lICE  -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi  -lm  -L/usr/X11R6/lib -lXxf86vm -L/usr/local/lib -lImlib2 -lttf -lm -ldl -lXext -lXext -lX11 -L/usr/X11R6/lib
INSTALL = install
prefix = /usr/local
bindir = $(prefix)/bin
libdir = $(prefix)/lib
infodir = $(prefix)/info
digitsdir = $(prefix)/share/3ddesktop/digits

SOURCES=3ddeskd.cpp xutil.cpp faceset.cpp util.cpp 
DOCS=
MISC=configure mkinstalldirs install-sh aclocal.m4
OBJS=3ddeskd.o xutil.o faceset.o util.o win.o


all: 3ddeskd 3ddesk

install: all
	$(top_srcdir)/mkinstalldirs $(bindir)
	$(top_srcdir)/mkinstalldirs $(digitsdir)
	$(INSTALL) 3ddeskd $(bindir)/3ddeskd
	$(INSTALL) 3ddesk $(bindir)/3ddesk
	$(INSTALL) digits/*.bmp $(digitsdir)

uninstall:
	/bin/rm -f $(bindir)/3ddeskd $(bindir)/3ddesk
	/bin/rm -rf $(digitsdir)

## daemon
3ddeskd: $(OBJS)
	$(CXX) $(LDFLAGS) -o 3ddeskd $(OBJS) $(LIBS)

## client
3ddesk: 3ddesk.o
	$(CXX) $(LDFLAGS) -o 3ddesk 3ddesk.o $(LIBS)

3ddeskd.o: 3ddesk.h move.hpp face.hpp faceset.hpp xutil.hpp util.h win.hpp
3ddesk.o: 3ddesk.h
faceset.o: 3ddesk.h faceset.hpp move.hpp face.hpp
xutil.o: xutil.hpp
util.o: util.h
win.o: win.hpp

clean:
	/bin/rm -f core *.o 3ddeskd 3ddesk

distclean: clean
	/bin/rm -f Makefile config.h config.status config.cache config.log \
		marklib.dvi

mostlyclean: clean

maintainer-clean: clean

# automatic re-running of configure if the configure.in file has changed
${srcdir}/configure: configure.in aclocal.m4
	cd ${srcdir} && autoconf

# autoheader might not change config.h.in, so touch a stamp file
${srcdir}/config.h.in: stamp-h.in
${srcdir}/stamp-h.in: configure.in #aclocal.m4
		cd ${srcdir} && autoheader
		echo timestamp > ${srcdir}/stamp-h.in

config.h: stamp-h
stamp-h: config.h.in config.status
	./config.status
Makefile: Makefile.in config.status
	./config.status
config.status: configure
	./config.status --recheck


