Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
extractor
gesa
Commits
e59a2cd6
Commit
e59a2cd6
authored
Jan 09, 2018
by
jkvis
Browse files
Testing library builds
parent
46a361d0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
e59a2cd6
CC
=
gcc
CFLAGS
=
-O
0
-march
=
native
CPPFLAGS
=
-Wall
-Wextra
-Iinclude
/
-Ilib
/sais-lite-lcp/
CFLAGS
=
-O
3
-march
=
native
CPPFLAGS
=
-Iinclude
/
-Ilib
/sais-lite-lcp/
-Wall
-Wextra
-pedantic
SOURCES
=
$(
shell
find src/
-name
'*.c'
)
OBJECTS
=
$(SOURCES:.c=.o)
DEPS
=
$(OBJECTS:.o=.d)
LIBS
=
sais-lite-lcp
LIBS
=
$(
shell
find lib/
-name
'*.a'
)
.PHONY
:
clean
libgesa.a
:
lib/lib$(LIBS).a $(OBJECTS)
ar rcs
$@
$<
libgesa.a
:
$(LIBS) $(OBJECTS)
$(MAKE)
-wC
lib/
ar rcsT
$@
$(LIBS)
$(OBJECTS)
clean
:
rm
-f
$(OBJECTS)
$(DEPS)
libgesa.a
lib/lib$(LIBS).a
:
$(MAKE)
-wC
lib/
-include
$(DEPS)
%.o
:
%.c
...
...
lib/Makefile
View file @
e59a2cd6
CC
=
gcc
CFLAGS
=
-O3
-fomit-frame-pointer
-funroll-loops
-march
=
native
CPPFLAGS
=
-I
.
-DNDEBUG
-Wall
-Wextra
CPPFLAGS
=
-I
.
-DNDEBUG
-Wall
-Wextra
-pedantic
TARGETS
=
sais-lite-lcp
SOURCES
=
sais-lite-lcp/sais.c
OBJECTS
=
$(SOURCES:.c=.o)
...
...
@@ -9,7 +9,7 @@ DEPS = $(OBJECTS:.o=.d)
.PHONY
:
clean
lib$(TARGETS
:
./%=%).a: $(OBJECTS)
ar rcs
$@
$<
ar rcs
T
$@
$<
clean
:
rm
-f
$(OBJECTS)
$(DEPS)
lib
$
(
TARGETS:./%
=
%
)
.a
...
...
sais-lite-lcp
@
a31f364b
Compare
858b175b
...
a31f364b
Subproject commit
858b175b0a26508bc493ee203b45a61b8d882c06
Subproject commit
a31f364be1103bd55918ea38855901064d077dd5
tests/main.cc
0 → 100644
View file @
e59a2cd6
#include
<cstdio>
#include
<cstdlib>
#include
"../include/gesa.h"
int
main
(
int
,
char
*
[])
{
static
char
const
*
const
string
=
"test me"
;
GESA
test
;
if
(
GESA_create
(
&
test
,
(
GESA_char_t
*
)
string
,
9
)
!=
0
)
{
fprintf
(
stderr
,
"Error GESA_create()
\n
"
);
return
EXIT_FAILURE
;
}
// if
printf
(
"%s
\n
"
,
test
.
string
[
0
]);
return
EXIT_SUCCESS
;
}
// main
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment