Skip to content
GitLab
Menu
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
bfa323f1
Commit
bfa323f1
authored
Jan 09, 2018
by
jkvis
Browse files
Added debug and release builds
parent
3dcf8dc5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
bfa323f1
CC
=
gcc
CFLAGS
=
-O3
-march
=
native
CPPFLAGS
=
-Iinclude
/
-Ilib
/sais-lite-lcp/
-DNDEBUG
-Wall
-Wextra
-pedantic
CFLAGS
=
-march
=
native
CPPFLAGS
=
-Iinclude
/
-Ilib
/sais-lite-lcp/
-Wall
-Wextra
-pedantic
DEBUG
=
-O0
-ggdb3
RELEASE
=
-O3
-DNDEBUG
SOURCES
=
$(
shell
find src/
-name
'*.c'
)
OBJECTS
=
$(SOURCES:.c=.o)
DEPS
=
$(OBJECTS:.o=.d)
LIBS
=
$(
shell
find lib/
-name
'*.a'
)
TARGET
=
libgesa.a
.PHONY
:
clean
tests
.PHONY
:
all debug clean release
tests
libgesa.a
:
$(LIBS) $(OBJECTS)
all
:
debug
debug
:
CFLAGS += $(DEBUG)
debug
:
$(TARGET)
release
:
CFLAGS += $(RELEASE)
release
:
$(TARGET)
$(TARGET)
:
$(LIBS) $(OBJECTS)
$(MAKE)
-wC
lib/
ar rcsT
$@
$(LIBS)
$(OBJECTS)
tests
:
libgesa.a
tests
:
$(TARGET)
$(MAKE)
-wC
tests/
clean
:
rm
-f
$(OBJECTS)
$(DEPS)
libgesa.a
rm
-f
$(OBJECTS)
$(DEPS)
$(TARGET)
-include
$(DEPS)
...
...
include/gesa.h
View file @
bfa323f1
...
...
@@ -33,7 +33,7 @@ typedef struct
}
GESA
;
// GESA
// Creates a GESA from a single string
// Creates a GESA from a single string
that *must* be '\0' terminated
// On success it returns 0
int
GESA_create
(
GESA
*
const
gesa
,
GESA_char_t
const
*
const
string
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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