cnslock: Switch to autotools.

This commit is contained in:
Doug Torrance 2017-02-27 20:50:42 -05:00 committed by Carlos R. Mafra
parent eb6ba359cb
commit ca28db136e
3 changed files with 14 additions and 26 deletions

View file

@ -1,26 +0,0 @@
INSTALL = /usr/bin/install -m 755
PREFIX = /usr/local
VERSION = 1.02
CFLAGS = -O3 -Wall -DVERSION=\"$(VERSION)\" ${EXTRA}
CC = gcc
OBJS = cnslock.o kleds.o
LIBS = -lX11 -ldockapp
all: cnslock
cnslock.o: cnslock.c
$(CC) $(CFLAGS) -c cnslock.c -o cnslock.o
kleds.o: kleds.c include/kleds.h
$(CC) -Wall -I/usr/X11R6/include -c kleds.c -o kleds.o
cnslock: $(OBJS)
$(CC) -o cnslock $(OBJS) $(LIBS)
clean:
rm -rf cnslock *.o *~ .xvpics
install : cnslock
$(INSTALL) cnslock $(PREFIX)/bin

6
cnslock/Makefile.am Normal file
View file

@ -0,0 +1,6 @@
bin_PROGRAMS = cnslock
cnslock_SOURCES = cnslock.c kleds.c graphics/caps_num_scroll.xpm include/kleds.h
EXTRA_DIST = CHANGES
AM_CFLAGS = $(x11_CFLAGS) $(dockapp_CFLAGS)
LIBS += $(x11_LIBS) $(dockapp_LIBS)

8
cnslock/configure.ac Normal file
View file

@ -0,0 +1,8 @@
AC_INIT([cnslock], [1.02], [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