Skip to content

Commit 087a359

Browse files
committed
autoconfiscate
1 parent 419b33f commit 087a359

File tree

7 files changed

+82
-75
lines changed

7 files changed

+82
-75
lines changed

.gitignore

+22-17
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
1-
nbproject
2-
.project
1+
COPYING
2+
INSTALL
3+
Makefile.in
4+
aclocal.m4
5+
autom4te.cache
6+
config.guess
7+
config.sub
8+
configure
9+
depcomp
10+
install-sh
11+
ltmain.sh
12+
missing
13+
*.bz2
14+
*.lo
315
*.o
4-
*.elf
5-
doc/tutorial/*.log
6-
doc/tutorial/*.aux
7-
libstlink.a
8-
test_usb
9-
test_sg
10-
gdbserver/st-util
11-
flash/flash
12-
*.log
13-
example/*/*.bin
14-
example/*/*.elf
15-
example/*/*/*.bin
16-
example/*/*/*/*.bin
17-
example/*/*/*.a
18-
example/*/*/*/*.a
16+
.libs
17+
libtool
18+
*.la
19+
config.log
20+
config.status
21+
compile
22+
st-flash
23+
st-util

ChangeLog

Whitespace-only changes.

Makefile

-58
This file was deleted.

Makefile.am

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Makefile.am -- Process this file with automake to produce Makefile.in
2+
bin_PROGRAMS = st-flash st-util
3+
4+
noinst_LTLIBRARIES = libstlink.la
5+
6+
st_flash_SOURCES = flash/main.c
7+
st_util_SOURCES = gdbserver/gdb-remote.c gdbserver/gdb-remote.h gdbserver/gdb-server.c
8+
9+
libstlink_la_SOURCES = src/stlink-common.c src/stlink-usb.c src/stlink-sg.c src/uglylogging.c \
10+
src/stlink-common.h src/stlink-usb.h src/stlink-sg.h src/uglylogging.h
11+
12+
libstlink_la_CPPFLAGS = -std=gnu99 -Wall -Wextra -O2
13+
14+
st_flash_LDADD = libstlink.la
15+
st_flash_CPPFLAGS = -std=gnu99 -Wall -Wextra -O2 -I$(top_srcdir)/src
16+
17+
st_util_LDADD = libstlink.la
18+
st_util_CPPFLAGS = -std=gnu99 -Wall -Wextra -O2 -I$(top_srcdir)/src
19+
20+
EXTRA_DIST = autogen.sh

NEWS

Whitespace-only changes.

autogen.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
if test ! "x$(which libtoolize)" = "x"; then
3+
echo "Running libtoolize"
4+
libtoolize --copy --force --automake
5+
else
6+
if test ! "x$(which gintltoolize)" = "x"; then
7+
echo "Running glibtoolize"
8+
glibtoolize --copy --force --automake
9+
fi
10+
fi
11+
autoreconf --install --force --verbose

configure.ac

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# -*- Autoconf -*-
2+
# Process this file with autoconf to produce a configure script.
3+
4+
AC_PREREQ(2.61)
5+
AC_INIT([stlink],[0.5.0],[[email protected]])
6+
AC_CONFIG_SRCDIR([src/stlink-common.c])
7+
8+
AM_INIT_AUTOMAKE([1.10])
9+
10+
11+
# Checks for programs.
12+
AC_PROG_CC
13+
AC_PROG_INSTALL
14+
AC_CANONICAL_HOST
15+
AC_CANONICAL_BUILD
16+
AC_PROG_LIBTOOL
17+
AM_PROG_CC_C_O
18+
19+
# Checks for libraries.
20+
PKG_CHECK_MODULES(USB, libusb-1.0 >= 1.0.0,,
21+
AC_MSG_ERROR([*** Required libusb-1.0 >= 1.0.0 not installed ***]))
22+
AC_CHECK_LIB([usbpath],[usb_path2devnum],,,-lusb)
23+
24+
LIBS="$LIBS $USB_LIBS"
25+
CFLAGS="$CFLAGS $USB_CFLAGS"
26+
27+
AC_CONFIG_FILES([Makefile])
28+
AC_OUTPUT
29+

0 commit comments

Comments
 (0)