# Copyright © 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. # There is NO WARRANTY, to the extent permitted by law. ACLOCAL_AMFLAGS = -I m4 -I common/m4 EXTRA_DIST = EXTRA_LIBRARIES = MAINTAINERCLEANFILES = DISTCLEANFILES = CLEANFILES = $(EXTRA_LIBRARIES) AM_CPPFLAGS = -I$(DX_BASEDIR)/src AM_CFLAGS = $(MOTIF_CFLAGS) bin_PROGRAMS = rrace-motif rrace_motif_SOURCES = #src/motif.c common/src/help.c rrace_motif_LDADD = $(libmotifmain_a_OBJECTS) $(libmotifui_a_OBJECTS) \ $(libglohelp_a_OBJECTS) $(MOTIF_LIBS) EXTRA_LIBRARIES += libmotifmain.a libmotifmain_a_SOURCES = src/motif.c $(libmotifmain_a_OBJECTS): src/options.h EXTRA_LIBRARIES += libmotifui.a libmotifui_a_SOURCES = src/motif_ui.c $(libmotifui_a_OBJECTS): src/motifgui.h EXTRA_LIBRARIES += libglohelp.a libglohelp_a_SOURCES = common/src/help.c libglohelp_a_CFLAGS = -DHELP_GETOPT_LONG_ONLY libglohelp_a_SHORTNAME = glo OPTFILES = src/options.opt .opt.h: $(AM_V_GEN) $(AWK) -f $(DX_BASEDIR)/scripts/gen-options.awk $< >$@.tmp $(AM_V_at) mv -f $@.tmp $@ $(OPTFILES:.opt=.h): $(DX_BASEDIR)/scripts/gen-options.awk DISTCLEANFILES += $(OPTFILES:.opt=.h) EXTRA_DIST += $(DX_BASEDIR)/scripts/gen-options.awk $(OPTFILES) GUIFILES = src/motifgui.dat .dat.h: $(AM_V_GEN) $(AWK) -f $(DX_BASEDIR)/scripts/gen-tree.awk $< >$@.tmp $(AM_V_at) mv -f $@.tmp $@ $(GUIFILES:.dat=.h): $(DX_BASEDIR)/scripts/gen-tree.awk DISTCLEANFILES += $(GUIFILES:.dat=.h) EXTRA_DIST += $(DX_BASEDIR)/scripts/gen-tree.awk $(GUIFILES)