summaryrefslogtreecommitdiffstats
path: root/gtk/module.rules
blob: 8cea29f375db4d3fc6955fdb38d84920129d52da (plain)
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
$(eval $(call import.MODULE.rules,GTK))

build: gtk.build
install: gtk.install
clean: gtk.clean
xclean: gtk.xclean

gtk.configure: $(GTK.CONFIGURE.stamp)

$(GTK.CONFIGURE.stamp): | $(dir $(GTK.CONFIGURE.stamp))
	set -e; cd $(GTK.src/); NOCONFIGURE=1 ./autogen.sh
	set -e; cd $(GTK.build/); $(call fn.ABSOLUTE,$(GTK.src/))configure \
	    CFLAGS="$(call fn.ARGS,GTK.GCC,.g .O)" \
	    LDFLAGS="$(call fn.ARGS,GTK.GCC,?strip .g .O)" \
	    --prefix=$(INSTALL.prefix) \
	    --with-hb=$(call fn.ABSOLUTE,$(BUILD/))
	$(TOUCH.exe) $@

gtk.build: | $(GTK.build/)
gtk.build: $(GTK.CONFIGURE.stamp) $(LIBHB.a)
	+$(MAKE) -C $(GTK.build/)

gtk.install:
	$(MAKE) -C $(GTK.build/) install-strip

gtk.uninstall:
	$(MAKE) -C $(GTK.build/) uninstall

gtk.clean:
	$(MAKE) -C $(GTK.build/) clean

gtk.xclean:
	$(MAKE) -C $(GTK.build/) distclean
	$(RM.exe) -f $(GTK.out)
	$(RM.exe) -fr $(GTK.build/)