[Pkg-wmaker-commits] [wmmon] 31/38: wmmon: Use autotools for build.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Sat Aug 12 22:43:08 UTC 2017


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch upstream
in repository wmmon.

commit 4aa7b55bfc565b6acef4f790562d866e1950156b
Author: Doug Torrance <dtorrance at piedmont.edu>
Date:   Sat Aug 12 15:06:34 2017 -0400

    wmmon: Use autotools for build.
---
 Makefile     | 21 ---------------------
 Makefile.am  |  7 +++++++
 configure.ac |  8 ++++++++
 wmmon.c      |  3 +--
 4 files changed, 16 insertions(+), 23 deletions(-)

diff --git a/Makefile b/Makefile
deleted file mode 100644
index 3522cef..0000000
--- a/Makefile
+++ /dev/null
@@ -1,21 +0,0 @@
-LIBDIR = -L/usr/X11R6/lib -L/usr/local/lib
-LIBS   = -lXpm -lXext -lX11 -ldockapp
-OBJS =  wmmon.o
-
-CFLAGS = -O2
-CC = cc
-
-.c.o:
-	$(CC) $(CFLAGS) -c -Wall $< -o $*.o
-
-wmmon: $(OBJS)
-	$(CC) $(LDFLAGS) -o wmmon $^ $(LIBDIR) $(LIBS)
-
-debug: CFLAGS = -g3
-debug: wmmon
-
-clean::
-	for i in $(OBJS) ; do \
-		rm -f $$i;\
-	done
-	rm -f wmmon
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..2607302
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,7 @@
+bin_PROGRAMS = wmmon
+dist_man_MANS = wmmon.1
+wmmon_SOURCES = wmmon.c wmmon-mask.xbm wmmon-master.xpm
+EXTRA_DIST = BUGS CHANGES HINTS
+
+AM_CFLAGS = $(x11_CFLAGS) $(dockapp_CFLAGS)
+LIBS += $(x11_LIBS) $(dockapp_LIBS)
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..045ac5a
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,8 @@
+AC_INIT([wmmon], [1.2.b2], [wmaker-dev at lists.windowmaker.org])
+AM_INIT_AUTOMAKE([foreign])
+AC_CONFIG_SRCDIR([configure.ac])
+AC_PROG_CC
+PKG_CHECK_MODULES([x11], [x11])
+PKG_CHECK_MODULES([dockapp], [dockapp])
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
diff --git a/wmmon.c b/wmmon.c
index 43e6af5..b9e8447 100644
--- a/wmmon.c
+++ b/wmmon.c
@@ -117,7 +117,6 @@
   /***********/
  /* Defines */
 /***********/
-#define WMMON_VERSION "1.2.b2"
 #define HISTORY_ENTRIES 55
 #define HISTORY_ENTRIES 55
 #define MAX_CPU (10) /* depends on graph height */
@@ -1015,7 +1014,7 @@ void usage(char *name)
 \*******************************************************************************/
 void printversion(void)
 {
-	printf("WMMon version %s\n", WMMON_VERSION);
+	printf("WMMon version %s\n", PACKAGE_VERSION);
 }
 /* vim: sw=4 ts=4 columns=82
  */

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmmon.git



More information about the Pkg-wmaker-commits mailing list