File: Makefile

package info (click to toggle)
openbios-sparc 1.0%2Bsvn640-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 4,412 kB
  • ctags: 12,091
  • sloc: ansic: 57,249; asm: 2,680; xml: 1,335; cpp: 414; makefile: 224; sh: 190
file content (37 lines) | stat: -rw-r--r-- 984 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

include		../../../../config/Makefile.top

PLUGINS		= plugin_qt.so

QMAKE		= qmake
PLUGINDIR	= $(shell cd .. ; pwd )
TOPDIR		= $(shell cd $(top_srcdir) ; pwd)
ABSOINC		= $(shell cd $(ARCHINCLUDES) 2> /dev/null ; pwd )

export PLUGINDIR TOPDIR ABSOINC

qt_rom.fc: qt_rom.fs
	$(TOKE) -v qt_rom.fs

fcode.h: qt_rom.fc
	@echo "static const u8 qt_fcode[] = {" > $@
	@cat $< | hexdump -ve '1/0 "\t" 8/1 "0x%02x, " 1/0 "\n"' \
		| sed 's/0x  ,//g' >> $@
	@echo "};" >> $@

$(ODIR)/makefile.qmake: plugin_qt.pro Makefile
	@test -d $(ODIR) || $(INSTALL) -d $(ODIR)
	@test -d $(ODIR)/qbuild || $(INSTALL) -d $(ODIR)/qbuild
	@cp plugin_qt.pro $(ODIR)/
	cd $(ODIR) ; $(QMAKE) -o makefile.qmake

$(ODIR)/plugin_qt.so: fcode.h $(ODIR)/makefile.qmake $(wildcard *.cpp)
	cd $(ODIR) ; $(MAKE) -f makefile.qmake
	@ln -f $(ODIR)/qbuild/plugin_qt.so $@

clean-local:
	@rm -f $(ODIR)/makefile.qmake
	@rm -rf $(QBUILDDIR) $(ODIR)/*.fc $(ODIR)/fcode.h

include		../Rules.plugin
include		$(rules)/Rules.make