Skip to content

Commit

Permalink
Replace custom configure script with Autoconf
Browse files Browse the repository at this point in the history
  • Loading branch information
HolyWu committed Aug 26, 2016
1 parent e08ed3b commit ffed8fd
Show file tree
Hide file tree
Showing 6 changed files with 111 additions and 294 deletions.
46 changes: 0 additions & 46 deletions GNUmakefile

This file was deleted.

42 changes: 42 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
warning_flags = -Wall -Wextra -Wno-unused-parameter -Wshadow
common_cflags = -O3 -ffast-math $(MFLAGS) $(warning_flags)
AM_CXXFLAGS = -std=c++14 $(common_cflags)

AM_CPPFLAGS = $(VapourSynth_CFLAGS)

lib_LTLIBRARIES = libtcanny.la

libtcanny_la_SOURCES = TCanny/TCanny.cpp \
TCanny/vectorclass/instrset.h \
TCanny/vectorclass/instrset_detect.cpp

if VS_TARGET_CPU_X86
libtcanny_la_SOURCES += TCanny/TCanny_SSE2.cpp \
TCanny/vectorclass/vectorclass.h \
TCanny/vectorclass/vectorf128.h \
TCanny/vectorclass/vectorf256.h \
TCanny/vectorclass/vectorf256e.h \
TCanny/vectorclass/vectori128.h \
TCanny/vectorclass/vectori256.h \
TCanny/vectorclass/vectori256e.h \
TCanny/vectorclass/vectormath_common.h \
TCanny/vectorclass/vectormath_trig.h


noinst_LTLIBRARIES = libavx.la libavx2.la


libavx_la_SOURCES = TCanny/TCanny_AVX.cpp

libavx_la_CXXFLAGS = $(AM_CXXFLAGS) -mavx


libavx2_la_SOURCES = TCanny/TCanny_AVX2.cpp

libavx2_la_CXXFLAGS = $(AM_CXXFLAGS) -mfma -mavx2


libtcanny_la_LIBADD = libavx.la libavx2.la
endif

libtcanny_la_LDFLAGS = -no-undefined -avoid-version $(PLUGINLDFLAGS)
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,13 @@ Usage
* 4 = use avx2

* planes: A list of the planes to process. By default all planes are processed.


Compilation
===========

```
./autogen.sh
./configure
make
```
3 changes: 3 additions & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

autoreconf --verbose --install --force
248 changes: 0 additions & 248 deletions configure

This file was deleted.

Loading

0 comments on commit ffed8fd

Please sign in to comment.