wmtv: Switch to autotools for build.
Also rename CREDITS and CHANGES to AUTHORS and ChangeLog, resp.
This commit is contained in:
parent
04dd708888
commit
6228ddd7ed
|
@ -1,25 +0,0 @@
|
|||
#
|
||||
# Makefile for wmtv
|
||||
#
|
||||
INCDIR = -I/usr/X11R6/include
|
||||
LIBDIR = -L/usr/X11R6/lib
|
||||
LIBS = -lXpm -lXext -lX11 -lXxf86dga -lXxf86vm -ldockapp
|
||||
OBJS = src/wmtv.o
|
||||
|
||||
.c.o:
|
||||
cc -c -O2 -Wall -D$(shell echo `uname -s`) $< -o $*.o $(INCDIR)
|
||||
|
||||
all: wmtv
|
||||
|
||||
wmtv: $(OBJS)
|
||||
cc -o wmtv $^ $(LIBDIR) $(LIBS)
|
||||
|
||||
install:: all
|
||||
install -s -m 4755 -o root wmtv /usr/X11R6/bin
|
||||
install -m 0644 -o root -g root wmtvrc.sample /etc/wmtvrc
|
||||
|
||||
clean:
|
||||
for i in $(OBJS) ; do \
|
||||
rm -f $$i; \
|
||||
done
|
||||
rm -f wmtv
|
10
wmtv/Makefile.am
Normal file
10
wmtv/Makefile.am
Normal file
|
@ -0,0 +1,10 @@
|
|||
bin_PROGRAMS = wmtv
|
||||
wmtv_SOURCES = src/channels.h src/wmtv.c src/wmtv-master.xpm \
|
||||
src/wmgeneral/wmgeneral.c src/wmgeneral/wmgeneral.h
|
||||
|
||||
AM_CFLAGS = $(x11_CFLAGS) $(xext_CFLAGS) $(xpm_CFLAGS) $(xxf86dga_CFLAGS) \
|
||||
$(xxf86vm_CFLAGS) $(libv4l1_CFLAGS)
|
||||
LIBS += $(x11_LIBS) $(xext_LIBS) $(xpm_LIBS) $(xxf86dga_LIBS) $(xxf86vm_LIBS) \
|
||||
$(libv4l1_LIBS)
|
||||
|
||||
EXTRA_DIST = wmtvrc.sample
|
12
wmtv/configure.ac
Normal file
12
wmtv/configure.ac
Normal file
|
@ -0,0 +1,12 @@
|
|||
AC_INIT([wmtv], [0.6.5], [wmaker-dev@lists.windowmaker.org])
|
||||
AM_INIT_AUTOMAKE([foreign subdir-objects])
|
||||
AC_CONFIG_SRCDIR([configure.ac])
|
||||
AC_PROG_CC
|
||||
PKG_CHECK_MODULES([x11],[x11])
|
||||
PKG_CHECK_MODULES([xext],[xext])
|
||||
PKG_CHECK_MODULES([xpm],[xpm])
|
||||
PKG_CHECK_MODULES([xxf86dga],[xxf86dga])
|
||||
PKG_CHECK_MODULES([xxf86vm],[xxf86vm])
|
||||
PKG_CHECK_MODULES([libv4l1],[libv4l1])
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
AC_OUTPUT
|
Loading…
Reference in a new issue