[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] [PATCH] XaAES gradient Makefile



Hello.

Here is a patch to make the XaAES gradient Makefile more like other ones. Especially, this enables the use of the CPU variable (which seems to be useless for that directory, anyway).

Helmut, Alan, please commit.

grdmake.patch
Cleanup gradient makefiles. Contributed by Vincent Riviere.

--
Vincent Rivière
diff -aurN freemint-CVS-20120223.orig/xaaes/src.km/gradient/BINFILES freemint-CVS-20120223/xaaes/src.km/gradient/BINFILES
--- freemint-CVS-20120223.orig/xaaes/src.km/gradient/BINFILES	1970-01-01 01:00:00.000000000 +0100
+++ freemint-CVS-20120223/xaaes/src.km/gradient/BINFILES	2012-02-23 23:21:00.296875000 +0100
@@ -0,0 +1,24 @@
+# This file gets included by the Makefile in this directory to determine
+# the files that should go only into binary distributions.
+
+GRADIENTS = \
+	autumn.grd \
+	default.grd \
+	flwrpwr.grd \
+	g_blue.grd \
+	g_cyan.grd \
+	g_green.grd \
+	g_purple.grd \
+	g_red.grd \
+	g_yellow.grd \
+	menubar.grd \
+	mint.grd \
+	n_blue.grd \
+	n_cyan.grd \
+	n_deflt.grd \
+	n_green.grd \
+	n_purple.grd \
+	n_red.grd \
+	n_yellow.grd
+
+BINFILES = $(GRADIENTS)
diff -aurN freemint-CVS-20120223.orig/xaaes/src.km/gradient/EXTRAFILES freemint-CVS-20120223/xaaes/src.km/gradient/EXTRAFILES
--- freemint-CVS-20120223.orig/xaaes/src.km/gradient/EXTRAFILES	1970-01-01 01:00:00.000000000 +0100
+++ freemint-CVS-20120223/xaaes/src.km/gradient/EXTRAFILES	2012-02-23 23:13:45.359375000 +0100
@@ -0,0 +1,4 @@
+# This file gets included by the Makefile in this directory to determine
+# the files that should go only into source distributions.
+
+SRCFILES += BINFILES EXTRAFILES MISCFILES Makefile SRCFILES
diff -aurN freemint-CVS-20120223.orig/xaaes/src.km/gradient/MISCFILES freemint-CVS-20120223/xaaes/src.km/gradient/MISCFILES
--- freemint-CVS-20120223.orig/xaaes/src.km/gradient/MISCFILES	1970-01-01 01:00:00.000000000 +0100
+++ freemint-CVS-20120223/xaaes/src.km/gradient/MISCFILES	2012-02-23 22:14:14.203125000 +0100
@@ -0,0 +1,4 @@
+# This file gets included by the Makefile in this directory to determine
+# the files that should go both into source and binary distributions.
+
+MISCFILES = 
diff -aurN freemint-CVS-20120223.orig/xaaes/src.km/gradient/Makefile freemint-CVS-20120223/xaaes/src.km/gradient/Makefile
--- freemint-CVS-20120223.orig/xaaes/src.km/gradient/Makefile	2012-02-23 22:12:17.718750000 +0100
+++ freemint-CVS-20120223/xaaes/src.km/gradient/Makefile	2012-02-24 01:32:06.218750000 +0100
@@ -3,21 +3,27 @@
 
 srcdir = .
 top_srcdir = ..
-subdir = gradients
+subdir = gradient
 
-include $(top_srcdir)/CONFIGVARS
+default: all
 
-GRADIENTS = g_blue.grd g_cyan.grd g_green.grd g_purple.grd g_red.grd g_yellow.grd default.grd \
-	n_blue.grd n_cyan.grd n_green.grd n_purple.grd n_red.grd n_yellow.grd n_deflt.grd \
-	autumn.grd menubar.grd mint.grd flwrpwr.grd
+include $(top_srcdir)/CONFIGVARS
+include $(top_srcdir)/RULES
+include $(top_srcdir)/PHONY
 
-all: $(GRADIENTS)
+all-here: $(GRADIENTS)
 
-distclean: clean
+clean: clean-here
 
-clean:
+clean-here:
 	rm -f $(GRADIENTS)
 
-%.grd: %.c
-	$(CC) -c -o $(@:.c=.grd) $<
+distclean: distclean-here
 
+distclean-here: clean-here
+
+include $(top_srcdir)/DEPENDENCIES
+
+%.grd: %.c
+	@echo "$(COMPILE) -c $< -o $@"; \
+	$(COMPILE) -Wp,-MD,.deps/$(@:.o=.P) -c $< -o $@
diff -aurN freemint-CVS-20120223.orig/xaaes/src.km/gradient/SRCFILES freemint-CVS-20120223/xaaes/src.km/gradient/SRCFILES
--- freemint-CVS-20120223.orig/xaaes/src.km/gradient/SRCFILES	1970-01-01 01:00:00.000000000 +0100
+++ freemint-CVS-20120223/xaaes/src.km/gradient/SRCFILES	2012-02-23 23:14:07.000000000 +0100
@@ -0,0 +1,22 @@
+# This file gets included by the Makefile in this directory to determine
+# the files that should go only into source distributions.
+
+SRCFILES = \
+	autumn.c \
+	default.c \
+	flwrpwr.c \
+	g_blue.c \
+	g_cyan.c \
+	g_green.c \
+	g_purple.c \
+	g_red.c \
+	g_yellow.c \
+	menubar.c \
+	mint.c \
+	n_blue.c \
+	n_cyan.c \
+	n_deflt.c \
+	n_green.c \
+	n_purple.c \
+	n_red.c \
+	n_yellow.c