# Makefile for the user interface classes, part of the mpeg_edit programme
# (ui directory)
#
#  Copyright (C) 1995 Alexis Ashley
# 
#  email:	milamber@ripley.demon.co.uk
#
#  mail:	Mr A S Ashley, 61/63 Underwood Road, Plympton, Plymouth,
#		Devon, PL7 3SZ, ENGLAND
#
#  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
#  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.
#
#                       Mr A S R Ashley B.Eng (Hons)    23rd July 1995
#

AR       = ar r
CPP      = g++
RANLIB   = ranlib
RM       = rm -f

#  CPPFLAGS     -Wall     all warnings
#               -pipe     speeds up compilation (remove only if not using g++)
#               -DDEBUG   some debugging info on stdout
#               -DDEBUG2  (-DDEBUG needed as well) extra debug info

DEPFILE  = Dependancies
HEADERS  = global.H sub_win.H text_win.H type_in_box.H menu.H \
	   button.H main_win.H dialogues.H sands_o_time.h sands_mask.h \
	   scroll_box.H
SOURCES  = global.C sub_win.C text_win.C type_in_box.C menu.C \
	   button.C main_win.C dialogues.C scroll_box.C
OBJS     = global.o sub_win.o text_win.o type_in_box.o menu.o \
	   button.o main_win.o dialogues.o scroll_box.o
ALL      = ui.a

.SUFFIXES:	.C $(SUFFIXES) 

.C.o:
	$(CPP) $(CPPFLAGS) $(EXTRA) -I../globals -c $< 

all:	$(ALL) 

ui.a:	$(DEPFILE) $(OBJS)
	$(RM) ui.a
	$(AR) ui.a $(OBJS) 
	$(RANLIB) ui.a

clean:
	$(RM) $(ALL) $(OBJS) $(DEPFILE) 

FORCE:


dep:	FORCE
	$(RM) $(DEPFILE) 
	make $(DEPFILE)

$(DEPFILE):
	set -e; for i in $(SOURCES) ; do $(CPP) -M $$i  -I../globals >>$(DEPFILE) ; done
	
#
# include a dependency file if one exists
#
#ifeq ($(DEPFILE),$(wildcard $(DEPFILE)))
include $(DEPFILE)
#endif
