From 8edc94509c54e4851d2f929b0e65f6a4ee9530d0 Mon Sep 17 00:00:00 2001 From: John Jones Date: Tue, 21 Mar 2017 15:20:52 +0000 Subject: [PATCH] c99 for centos --- commands/Makefile | 2 +- core/Makefile | 2 +- importer/Makefile | 2 +- main/Makefile | 2 +- merkledag/Makefile | 2 +- repo/Makefile | 4 ++-- repo/config/Makefile | 2 +- repo/fsrepo/Makefile | 2 +- test/Makefile | 4 ++-- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/commands/Makefile b/commands/Makefile index a0073d2..4ad1f1a 100644 --- a/commands/Makefile +++ b/commands/Makefile @@ -1,5 +1,5 @@ CC = gcc -CFLAGS = -O0 -I../include -I../../c-libp2p/include -Wall +CFLAGS = -O0 -I../include -I../../c-libp2p/include -Wall -std=c99 LFLAGS = DEPS = ../include/ipfs/commands/argument.h ../include/ipfs/commands/command_option.h \ ../include/ipfs/commands/command.h ../include/ipfs/commands/context.h \ diff --git a/core/Makefile b/core/Makefile index 267c3e3..e88d7ac 100644 --- a/core/Makefile +++ b/core/Makefile @@ -1,5 +1,5 @@ CC = gcc -CFLAGS = -O0 -I../include -I../../c-libp2p/include -I../../c-multiaddr/include -I../../c-protobuf -Wall +CFLAGS = -O0 -I../include -I../../c-libp2p/include -I../../c-multiaddr/include -I../../c-protobuf -Wall -std=c99 ifdef DEBUG CFLAGS += -g3 diff --git a/importer/Makefile b/importer/Makefile index 7a28ea2..de55e1f 100644 --- a/importer/Makefile +++ b/importer/Makefile @@ -1,5 +1,5 @@ CC = gcc -CFLAGS = -O0 -I../include -I../../c-libp2p/include -I../../c-multihash/include -I../../c-multiaddr/include -I../../c-protobuf -Wall +CFLAGS = -O0 -I../include -I../../c-libp2p/include -I../../c-multihash/include -I../../c-multiaddr/include -I../../c-protobuf -Wall -std=c99 ifdef DEBUG CFLAGS += -g3 diff --git a/main/Makefile b/main/Makefile index c93b8b0..8bb9111 100644 --- a/main/Makefile +++ b/main/Makefile @@ -1,5 +1,5 @@ CC = gcc -CFLAGS = -O0 -I../include -I../../c-libp2p/include -I../../c-multihash/include -I../../c-multiaddr/ -I../../c-protobuf -g3 -Wall +CFLAGS = -O0 -I../include -I../../c-libp2p/include -I../../c-multihash/include -I../../c-multiaddr/ -I../../c-protobuf -g3 -Wall -std=c99 LFLAGS = -L../../c-libp2p -L../../c-multihash -L../../c-multiaddr -lp2p -lm -lmultihash -lmultiaddr -lpthread -lresolv DEPS = cmd/ipfs/test_init.h repo/test_repo_bootstrap_peers.h repo/test_repo_config.h repo/test_repo_identity.h cid/test_cid.h OBJS = main.o \ diff --git a/merkledag/Makefile b/merkledag/Makefile index 4ef37d9..f1bd074 100644 --- a/merkledag/Makefile +++ b/merkledag/Makefile @@ -1,5 +1,5 @@ CC = gcc -CFLAGS = -O0 -I../include -I../../c-libp2p/include -I../../c-multihash/include -I../../c-multiaddr/include -I../../c-protobuf -Wall +CFLAGS = -O0 -I../include -I../../c-libp2p/include -I../../c-multihash/include -I../../c-multiaddr/include -I../../c-protobuf -Wall -std=c99 ifdef DEBUG CFLAGS += -g3 diff --git a/repo/Makefile b/repo/Makefile index 26696af..6b36978 100644 --- a/repo/Makefile +++ b/repo/Makefile @@ -1,5 +1,5 @@ CC = gcc -CFLAGS = -O0 -I../include -I../../c-libp2p/include +CFLAGS = -O0 -I../include -I../../c-libp2p/include -std=c99 ifdef DEBUG CFLAGS += -g3 @@ -17,4 +17,4 @@ all: $(OBJS) clean: rm -f *.o cd config; make clean; - cd fsrepo; make clean; \ No newline at end of file + cd fsrepo; make clean; diff --git a/repo/config/Makefile b/repo/config/Makefile index cf49611..dab8b90 100644 --- a/repo/config/Makefile +++ b/repo/config/Makefile @@ -1,5 +1,5 @@ CC = gcc -CFLAGS = -O0 -I../../include -I../../../c-libp2p/include -I../../../c-multihash/include -I../../../c-protobuf -Wall +CFLAGS = -O0 -I../../include -I../../../c-libp2p/include -I../../../c-multihash/include -I../../../c-protobuf -Wall -std=c99 ifdef DEBUG CFLAGS += -g3 diff --git a/repo/fsrepo/Makefile b/repo/fsrepo/Makefile index a4196c0..3914034 100644 --- a/repo/fsrepo/Makefile +++ b/repo/fsrepo/Makefile @@ -1,5 +1,5 @@ CC = gcc -CFLAGS = -O0 -I../../include -I../../../c-libp2p/include -I../../../lmdb/libraries/liblmdb -I../../../c-protobuf -Wall +CFLAGS = -O0 -I../../include -I../../../c-libp2p/include -I../../../lmdb/libraries/liblmdb -I../../../c-protobuf -Wall -std=c99 ifdef DEBUG CFLAGS += -g3 diff --git a/test/Makefile b/test/Makefile index 42b0afc..776464a 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,5 +1,5 @@ CC = gcc -CFLAGS = -O0 -I../include -I../../c-libp2p/include -I../../c-multihash/include -I../../c-multiaddr/include -I../../c-protobuf -g3 -Wall +CFLAGS = -O0 -I../include -I../../c-libp2p/include -I../../c-multihash/include -I../../c-multiaddr/include -I../../c-protobuf -g3 -Wall -std=c99 LFLAGS = -L../../c-libp2p -L../../c-multihash -L../../c-multiaddr -lp2p -lm -lmultihash -lmultiaddr -lpthread DEPS = cmd/ipfs/test_init.h repo/test_repo_bootstrap_peers.h repo/test_repo_config.h repo/test_repo_identity.h cid/test_cid.h OBJS = testit.o test_helper.o \ @@ -40,4 +40,4 @@ all: test_ipfs clean: rm -f *.o - rm -f test_ipfs \ No newline at end of file + rm -f test_ipfs