Changes for compiling with mingw32
[fw/stlink] / Makefile.am
1 # Makefile.am -- Process this file with automake to produce Makefile.in
2
3 AUTOMAKE_OPTIONS = subdir-objects
4
5 bin_PROGRAMS = st-flash st-util
6
7 noinst_LIBRARIES      = libstlink.a
8
9 st_flash_SOURCES = flash/main.c
10 st_util_SOURCES = gdbserver/gdb-remote.c gdbserver/gdb-remote.h gdbserver/gdb-server.c
11
12 CFILES = \
13         src/stlink-common.c \
14         src/stlink-usb.c \
15         src/stlink-sg.c \
16         src/uglylogging.c
17
18 HFILES  = \
19         src/stlink-common.h \
20         src/stlink-usb.h \
21         src/stlink-sg.h \
22         src/uglylogging.h \
23         src/mmap.h
24
25 libstlink_a_SOURCES     =       $(CFILES) $(HFILES)
26
27 libstlink_a_CPPFLAGS    = -std=gnu99 -Wall -Wextra -O2
28 libstlink_a_LIBADD = $(LIBOBJS)
29
30 st_flash_LDADD  =       libstlink.a
31 st_flash_CPPFLAGS       = -std=gnu99 -Wall -Wextra -O2 -I$(top_srcdir)/src
32
33 st_util_LDADD   =       libstlink.a
34 st_util_CPPFLAGS        = -std=gnu99 -Wall -Wextra -O2 -I$(top_srcdir)/src
35
36 EXTRA_DIST = autogen.sh
37