]> git.draconx.ca Git - cdecl99.git/blobdiff - Makefile.am
Remove randomdecl test dependency on GSL.
[cdecl99.git] / Makefile.am
index 081c1839a5110f66820a1ca1c8ae985124442472..3d6107a38b8474fcaa0c7d1769489908974460ff 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright © 2011-2013, 2019-2021 Nick Bowler
+# Copyright © 2011-2013, 2019-2022 Nick Bowler
 #
 # License WTFPL2: Do What The Fuck You Want To Public License, version 2.
 # This is free software: you are free to do what the fuck you want to.
@@ -16,8 +16,6 @@ AM_CPPFLAGS = -I$(top_builddir)/src -I$(top_srcdir)/src \
        -DBISON_LOCALEDIR=\"$(BISON_LOCALEDIR)\" \
        -DLOCALEDIR=\"$(localedir)\"
 
-AM_CFLAGS = $(GSL_CFLAGS)
-
 MAINTAINERCLEANFILES = src/scan.c src/scan.h src/scan.stamp \
                        src/parse.c src/parse.h src/parse.stamp
 
@@ -66,17 +64,14 @@ libmain_a_SOURCES = src/cdecl99.c src/options.h
 $(libmain_a_OBJECTS): $(gnulib_headers)
 $(libmain_a_OBJECTS): src/options.h
 
-check_PROGRAMS = test/crossparse test/normalize
+check_PROGRAMS = test/crossparse test/normalize test/randomdecl
 check_LIBRARIES = libtest.a
-libtest_a_SOURCES = test/testlib.c common/src/help.c
+libtest_a_SOURCES = test/testlib.c test/rng.c common/src/help.c
 $(libtest_a_OBJECTS): $(gnulib_headers)
 
-if HAVE_GSL
-check_PROGRAMS += test/randomdecl
 test_randomdecl_SOURCES = test/randomdecl.c test/declgen.c
-test_randomdecl_LDADD = libtest.a libcdecl.la libgnu.la $(GSL_LIBS)
+test_randomdecl_LDADD = libtest.a libcdecl.la libgnu.la
 $(test_randomdecl_OBJECTS): $(gnulib_headers)
-endif
 
 test_crossparse_LDADD = libtest.a libcdecl.la libgnu.la
 $(test_crossparse_OBJECTS): $(gnulib_headers)