wmmon: Use autotools for build.

This commit is contained in:
Doug Torrance 2017-08-12 15:06:34 -04:00 committed by Carlos R. Mafra
parent 0306231dcb
commit 61ff28e190
4 changed files with 16 additions and 23 deletions

View file

@ -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

7
wmmon/Makefile.am Normal file
View file

@ -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)

8
wmmon/configure.ac Normal file
View file

@ -0,0 +1,8 @@
AC_INIT([wmmon], [1.2.b2], [wmaker-dev@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

View file

@ -117,7 +117,6 @@
/***********/ /***********/
/* Defines */ /* Defines */
/***********/ /***********/
#define WMMON_VERSION "1.2.b2"
#define HISTORY_ENTRIES 55 #define HISTORY_ENTRIES 55
#define HISTORY_ENTRIES 55 #define HISTORY_ENTRIES 55
#define MAX_CPU (10) /* depends on graph height */ #define MAX_CPU (10) /* depends on graph height */
@ -1015,7 +1014,7 @@ void usage(char *name)
\*******************************************************************************/ \*******************************************************************************/
void printversion(void) void printversion(void)
{ {
printf("WMMon version %s\n", WMMON_VERSION); printf("WMMon version %s\n", PACKAGE_VERSION);
} }
/* vim: sw=4 ts=4 columns=82 /* vim: sw=4 ts=4 columns=82
*/ */