summaryrefslogtreecommitdiffstats
path: root/gtk/module.rules
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/module.rules')
-rw-r--r--gtk/module.rules28
1 files changed, 24 insertions, 4 deletions
diff --git a/gtk/module.rules b/gtk/module.rules
index a1c1eb76f..09a8c34c7 100644
--- a/gtk/module.rules
+++ b/gtk/module.rules
@@ -1,10 +1,10 @@
$(eval $(call import.MODULE.rules,GTK))
-build: gtk.build
+build: hgtk.build gtk.build
install: gtk.install
install-strip: gtk.install-strip
uninstall: gtk.uninstall
-clean: gtk.clean
+clean: hgtk.clean gtk.clean
xclean: gtk.xclean
gtk.configure: $(GTK.CONFIGURE.stamp)
@@ -35,11 +35,31 @@ gtk.install:
gtk.uninstall:
$(MAKE) -C $(GTK.build/) uninstall
-gtk.clean:
+gtk.clean: hgtk.clean
$(MAKE) -C $(GTK.build/) clean
-gtk.xclean:
+gtk.xclean: hgtk.clean
$(MAKE) -C $(GTK.build/) distclean
$(RM.exe) -f $(GTK.out)
$(RM.exe) -fr $(GTK.build/)
+###############################################################################
+###############################################################################
+$(eval $(call import.MODULE.rules,HGTK))
+
+hgtk.build: $(CREATE_RES.exe)
+
+$(CREATE_RES.exe): | $(dir $(CREATE_RES.exe))
+$(CREATE_RES.exe): $(CREATE_RES.c.o) $(HGTKCOMMON.c.o)
+ $(call HGTK.GCC.EXE,$@,$^)
+
+$(HGTKCOMMON.c.o): | $(dir $(HGTKCOMMON.c.o))
+$(HGTKCOMMON.c.o): $(BUILD/)%-native.o: $(SRC/)%.c
+ $(call HGTK.GCC.C_O,$@,$<)
+
+$(CREATE_RES.c.o): | $(dir $(CREATE_RES.c.o))
+$(CREATE_RES.c.o): $(BUILD/)%-native.o: $(SRC/)%.c
+ $(call HGTK.GCC.C_O,$@,$<)
+
+hgtk.clean:
+ $(RM.exe) -f $(HGTK.out)