cnslock: Switch to autotools.
This commit is contained in:
parent
eb6ba359cb
commit
ca28db136e
|
@ -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
6
cnslock/Makefile.am
Normal 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
8
cnslock/configure.ac
Normal 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
|
Loading…
Reference in a new issue