X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=Makefile.am;h=9afbc0f0b0b06c4a18a8f391e22ba3b71138a33c;hb=refs%2Fheads%2Fdebian;hp=ab3201f0310a27cb1ff970a8bb6bda162984795a;hpb=e19054a4b36068329211cf5069ed92b06be66d8c;p=fw%2Fstlink diff --git a/Makefile.am b/Makefile.am index ab3201f..9afbc0f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,7 +4,11 @@ SUBDIRS = . $(MAYBE_GUI) AUTOMAKE_OPTIONS = subdir-objects +if MINGW +bin_PROGRAMS = st-flash st-util st-info +else bin_PROGRAMS = st-flash st-util st-term st-info +endif noinst_LIBRARIES = libstlink.a @@ -17,9 +21,11 @@ CFILES = \ src/stlink-common.c \ src/stlink-usb.c \ src/stlink-sg.c \ - src/uglylogging.c \ - src/st-term.c \ - src/st-info.c + src/uglylogging.c + +if !MINGW +CFILES += src/st-term.c +endif HFILES = \ src/stlink-common.h \ @@ -45,6 +51,4 @@ st_term_CPPFLAGS = -std=gnu99 -Wall -Wextra -O2 -I$(top_srcdir)/src -I$(t st_info_LDADD = libstlink.a st_info_CPPFLAGS = -std=gnu99 -Wall -Wextra -O2 -I$(top_srcdir)/src -I$(top_srcdir)/mingw - EXTRA_DIST = autogen.sh -