Fix const warning
[fw/stlink] / Makefile.am
1 # Makefile.am -- Process this file with automake to produce Makefile.in
2
3 SUBDIRS = . $(STLINK_HAS_GUI)
4
5 AUTOMAKE_OPTIONS = subdir-objects
6
7 if MINGW
8 bin_PROGRAMS = st-flash st-util st-info
9 else
10 bin_PROGRAMS = st-flash st-util st-term st-info
11 endif
12
13 noinst_LIBRARIES      = libstlink.a
14
15 st_flash_SOURCES = src/tools/flash.c
16 st_term_SOURCES = src/tools/term.c
17 st_info_SOURCES = src/tools/info.c
18 st_util_SOURCES = src/gdbserver/gdb-remote.c src/gdbserver/gdb-remote.h src/gdbserver/gdb-server.c src/mingw/mingw.c src/mingw/mingw.h
19
20 CFILES = \
21         src/chipid.c \
22         src/common.c \
23         src/usb.c \
24         src/sg.c \
25         src/logging.c
26
27 if !MINGW
28 CFILES += src/tools/term.c
29 endif
30
31 HFILES  = \
32         include/stlink.h \
33         include/stlink/chipid.h \
34         include/stlink/usb.h \
35         include/stlink/sg.h \
36         include/stlink/logging.h \
37         include/stlink/mmap.h
38
39 libstlink_a_SOURCES     =       $(CFILES) $(HFILES)
40
41 libstlink_a_LIBADD = $(LIBOBJS)
42 libstlink_a_CPPFLAGS    = -std=gnu99 -Wall -Wextra -O2 -I$(top_srcdir)/include
43
44 st_flash_LDADD  =       libstlink.a
45 st_flash_CPPFLAGS       = -std=gnu99 -Wall -Wextra -O2 -I$(top_srcdir)/include -I$(top_srcdir)/src/mingw
46
47 st_util_LDADD   =       libstlink.a
48 st_util_CPPFLAGS        = -std=gnu99 -Wall -Wextra -O2 -I$(top_srcdir)/include -I$(top_srcdir)/src/mingw
49
50 st_term_LDADD   =       libstlink.a
51 st_term_CPPFLAGS        = -std=gnu99 -Wall -Wextra -O2 -I$(top_srcdir)/include -I$(top_srcdir)/src/mingw
52
53 st_info_LDADD   =       libstlink.a
54 st_info_CPPFLAGS        = -std=gnu99 -Wall -Wextra -O2 -I$(top_srcdir)/include -I$(top_srcdir)/src/mingw
55
56 EXTRA_DIST = autogen.sh