#  Makefile version 1.5
#  yudit package - Unicode Editor for the X Window System (and Linux) 
#
#  Author: gsinai@iname.com (Gaspar Sinai)
#  GNU Copyright (C) 1997,1998,1999  Gaspar Sinai
# 
#  yudit version 1.5  Copyright(C) 30 November, 1999, Tokyo Japan  Gaspar Sinai
#  yudit version 1.4  Copyright(C) 25 November, 1999, Tokyo Japan  Gaspar Sinai
#  yudit version 1.3  Copyright(C)  5 April,    1999, Tokyo Japan  Gaspar Sinai
#  yudit version 1.2  Copyright(C) 10 December, 1998, Tokyo Japan  Gaspar Sinai
#  yudit version 1.1  Copyright(C) 23 August,   1998, Tokyo Japan  Gaspar Sinai
#  yudit version 1.0  Copyright(C) 17 May,      1998, Tokyo Japan  Gaspar Sinai
#  yudit version 0.99 Copyright(C)  4 April,    1998, Tokyo Japan  Gaspar Sinai
#  yudit version 0.97 Copyright(C)  4 February, 1998, Tokyo Japan  Gaspar Sinai
#  yudit version 0.95 Copyright(C) 10 January,  1998, Tokyo Japan  Gaspar Sinai
#  yudit version 0.94 Copyright(C) 17 December, 1997, Tokyo Japan  Gaspar Sinai
#  yudit version 0.9 Copyright (C)  8 December, 1997, Tokyo Japan  Gaspar Sinai
#  yutex version 0.8 Copyright (C)  5 November, 1997, Tokyo Japan  Gaspar Sinai
#
#  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., 675 Mass Ave, Cambridge, MA 02139, USA.
#
#
# Makefile
#

include ../../Makefile.conf
TARGET=libugui.a

ALL_CFLAGS = -I../../src -I../../config $(CFLAGS)

#-------------------------------------------------------------------------------


OBJECTS= UFrame.o \
	UComponent.o \
	UEvent.o \
	UBinArray.o \
	UColor.o \
	UTopContext.o \
	UTop.o \
	UShell.o \
	UDialog.o \
	UTextDialog.o \
	UFileDialog.o \
	UChoiceDialog.o \
	UFindDialog.o \
	UPromptDialog.o \
	UArrow.o \
	UButton.o \
	UArrowButton.o \
	UScroll.o \
	UTextFrame.o \
	UTextArea.o \
	UTextLabel.o \
	UTextButton.o \
	UTextList.o \
	UMenu.o \
	UTextMenu.o \
	UPopUp.o \
	USeparator.o \
	UChoice.o \
	UScrolledList.o \
	UUXKinput.o \
	UMenuBar.o 

SOURCES=$(patsubst %.o, %.cpp, $(OBJECTS))

.SUFFIXES: .o .cpp .h

%.o:%.cpp
	$(CXX)  -c $(ALL_CFLAGS) -o $@ $<

all: $(TARGET)

$(TARGET): $(OBJECTS)
	$(AR) $@ $(OBJECTS)
	$(RANLIB) $@

clean:
	rm -f $(TARGET) *.o *.bak core

depend:
	$(CXX) -M  $(ALL_CFLAGS) *.cpp > .depend

install:
	@echo "nothing to be done for install"

ifeq (.depend, $(wildcard .depend))
include .depend
endif

