Cleaned up Makefile
This commit is contained in:
parent
f57e928cf8
commit
4c3c2a59ed
4 changed files with 11 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -5,6 +5,7 @@
|
||||||
!**/
|
!**/
|
||||||
|
|
||||||
*.o
|
*.o
|
||||||
|
*.a
|
||||||
.cproject
|
.cproject
|
||||||
.project
|
.project
|
||||||
.settings/language.settings.xml
|
.settings/language.settings.xml
|
||||||
|
|
10
Makefile
10
Makefile
|
@ -1,6 +1,8 @@
|
||||||
|
DEBUG=true
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
CFLAGS = -fPIC -g -O2 -std=c99 \
|
CFLAGS = -fPIC -O0 -std=c99 \
|
||||||
-Wall -Wextra -pedantic -Werror \
|
-Wall -Wextra -pedantic -Werror \
|
||||||
-Wdeclaration-after-statement \
|
-Wdeclaration-after-statement \
|
||||||
-Wno-format-zero-length \
|
-Wno-format-zero-length \
|
||||||
|
@ -10,10 +12,14 @@ CFLAGS = -fPIC -g -O2 -std=c99 \
|
||||||
-Wunused \
|
-Wunused \
|
||||||
-Wvla
|
-Wvla
|
||||||
|
|
||||||
|
ifdef DEBUG
|
||||||
|
CFLAGS += -g3
|
||||||
|
endif
|
||||||
|
|
||||||
LDFLAGS = -g
|
LDFLAGS = -g
|
||||||
LDLIBS =
|
LDLIBS =
|
||||||
|
|
||||||
TARGET_LIB = mulithash.a
|
TARGET_LIB = libmultihash.a
|
||||||
TARGET_BIN = multihash
|
TARGET_BIN = multihash
|
||||||
|
|
||||||
SRCS = src/hashes.c src/errors.c src/multihash.c
|
SRCS = src/hashes.c src/errors.c src/multihash.c
|
||||||
|
|
Loading…
Reference in a new issue