1#
2# Makefile of QT user interface for OpenBIOS
3#
4#  (C) 2004 Stefan Reinauer
5#
6# This program is free software; you can redistribute it and/or
7# modify it under the terms of the GNU General Public License
8# version 2
9#
10
11include		../../../config/Makefile.top
12
13XTARGETS                = qt
14
15qt-OBJS                 = $(obj-y)
16obj-y                   += gui_qt.o
17
18QMAKE		= qmake
19UIDIR	= $(shell pwd )
20TOPDIR		= $(shell cd $(top_srcdir) ; pwd)
21ABSOINC		= $(shell cd $(ARCHINCLUDES) 2> /dev/null ; pwd )
22
23export UIDIR TOPDIR ABSOINC
24
25$(ODIR)/makefile.qmake: gui-qt.pro Makefile
26	@echo "ODIR: $(ODIR)"
27	@test -d $(ODIR) || $(INSTALL) -d $(ODIR)
28	@test -d $(ODIR)/qbuild || $(INSTALL) -d $(ODIR)/qbuild
29	@install -m 644 gui-qt.pro $(ODIR)/
30	cd $(ODIR) ; $(QMAKE) -o makefile.qmake
31
32$(ODIR)/libgui_qt.a: $(ODIR)/makefile.qmake $(wildcard *.cpp)
33	cd $(ODIR) ; $(MAKE) -f makefile.qmake
34	@ln -f $(ODIR)/qbuild/libgui_qt.a $@
35
36clean-local:
37	@rm -f $(ODIR)/makefile.qmake
38	@rm -rf $(QBUILDDIR)
39
40INCLUDES	= -I$(top_srcdir)/include -DBOOTSTRAP
41
42include		$(rules)/Rules.make
43