|
@@ -1,5 +1,18 @@
|
|
|
SUBDIRS = tests/
|
|
|
|
|
|
+# following the fucking manual, I am putting headers into the _SOURCES variable
|
|
|
+# <https://www.gnu.org/software/automake/manual/html_node/Headers.html>
|
|
|
+EXAMPLE_QUESTION = example.c
|
|
|
+WIENER_QUESTION = wiener.c include/qwiener.h
|
|
|
+POLLARD_QUESTION = pollard.c include/qpollard.h
|
|
|
+DIXON_QUESTION = dixon.c
|
|
|
+
|
|
|
+QUESTIONS = $(WIENER_QUESTION) $(POLLARD_QUESTION) $(DIXON_QUESTION) \
|
|
|
+ $(FERMAT_QUESTION) $(EXAMPLE_QUESTION)
|
|
|
+
|
|
|
+QLIBSOURCES = qarith.c include/qarith.h \
|
|
|
+ qstrings.c include/qstrings.h \
|
|
|
+ allquestions.c include/questions.h
|
|
|
+
|
|
|
lib_LIBRARIES = libquestions.a
|
|
|
-libquestions_a_SOURCES = wiener.c pollard.c example.c dixon.c allquestions.c qarith.c qstrings.c
|
|
|
-# da fuck liquestions_a_HEADERS = qwiener.h questions.h
|
|
|
+libquestions_a_SOURCES = $(QUESTIONS) $(QLIBSOURCES)
|