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
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 \
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
-