wmgtemp: Switch to autotools for build.
This commit is contained in:
parent
236af53275
commit
94f3870b82
|
@ -1,17 +0,0 @@
|
||||||
INSTALL=install
|
|
||||||
MANINSTDIR=/usr/local/man/man1
|
|
||||||
MANPAGE=wmgtemp.1
|
|
||||||
|
|
||||||
all:
|
|
||||||
( cd src && $(MAKE) )
|
|
||||||
|
|
||||||
depend:
|
|
||||||
( cd src && $(MAKE) depend )
|
|
||||||
|
|
||||||
install:
|
|
||||||
( cd src && $(MAKE) install INSTDIR=$(INSTDIR) )
|
|
||||||
$(INSTALL) -d $(MANINSTDIR)
|
|
||||||
$(INSTALL) -m 755 -c $(MANPAGE) $(MANINSTDIR)/$(MANPAGE)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
( cd src && $(MAKE) clean)
|
|
9
wmgtemp/Makefile.am
Normal file
9
wmgtemp/Makefile.am
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
bin_PROGRAMS = wmgtemp
|
||||||
|
wmgtemp_SOURCES = src/wmgtemp.c src/wmgtemp-interface-mask.xbm \
|
||||||
|
src/wmgtemp-interface.xpm
|
||||||
|
dist_man_MANS = wmgtemp.1
|
||||||
|
|
||||||
|
AM_CFLAGS = $(X11_CFLAGS) $(dockapp_CFLAGS)
|
||||||
|
LIBS += $(X11_LIBS) $(dockapp_LIBS)
|
||||||
|
|
||||||
|
EXTRA_DIST = Artistic BUGS CREDITS examples/wmgtemprc
|
9
wmgtemp/configure.ac
Normal file
9
wmgtemp/configure.ac
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
AC_INIT([wmgtemp], [1.1], [wmaker-dev@lists.windowmaker.org])
|
||||||
|
AM_INIT_AUTOMAKE([foreign subdir-objects])
|
||||||
|
AC_CONFIG_SRCDIR([configure.ac])
|
||||||
|
AC_PROG_CC
|
||||||
|
AC_CHECK_LIB([sensors],[sensors_get_features])
|
||||||
|
PKG_CHECK_MODULES([X11],[x11])
|
||||||
|
PKG_CHECK_MODULES([dockapp],[dockapp])
|
||||||
|
AC_CONFIG_FILES([Makefile])
|
||||||
|
AC_OUTPUT
|
|
@ -1 +0,0 @@
|
||||||
wmgtemp.o: wmgtemp.c wmgtemp-interface.xpm wmgtemp-interface-mask.xbm
|
|
|
@ -1,29 +0,0 @@
|
||||||
CC = gcc
|
|
||||||
INSTALL = /usr/bin/install
|
|
||||||
LIB = lib
|
|
||||||
LDFLAGS = -L/usr/X11R6/$(LIB) -lXpm -lXext -lX11 -lsensors -ldockapp
|
|
||||||
BINARY = wmgtemp
|
|
||||||
CCFLAGS = -Wall -g
|
|
||||||
INSTDIR = /usr/local/bin
|
|
||||||
|
|
||||||
OFILES = wmgtemp.o
|
|
||||||
|
|
||||||
%.o:
|
|
||||||
$(CC) $(CCFLAGS) -c $*.c -o $*.o
|
|
||||||
|
|
||||||
$(BINARY): $(OFILES)
|
|
||||||
$(CC) $(OFILES) $(LDFLAGS) -o $(BINARY)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
@ $(RM) $(OFILES) *~ "#"* $(BINARY)
|
|
||||||
|
|
||||||
install::
|
|
||||||
$(INSTALL) -m 755 -c $(BINARY) $(INSTDIR)/$(BINARY)
|
|
||||||
|
|
||||||
depend:
|
|
||||||
@ $(CC) -MM *.c > .deps
|
|
||||||
|
|
||||||
count:
|
|
||||||
@ wc -l *.c *.h | sort
|
|
||||||
|
|
||||||
include .deps
|
|
|
@ -688,7 +688,7 @@ int init_sensors() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void display_usage() {
|
void display_usage() {
|
||||||
printf("wmgtemp v0.9\n" \
|
printf("wmgtemp v"PACKAGE_VERSION"\n" \
|
||||||
"Usage: wmgtemp [options]\n" \
|
"Usage: wmgtemp [options]\n" \
|
||||||
"Options:\n" \
|
"Options:\n" \
|
||||||
" -S, --sensorconf=PATH Specify sensors config file PATH\n" \
|
" -S, --sensorconf=PATH Specify sensors config file PATH\n" \
|
||||||
|
|
Loading…
Reference in a new issue