1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

small cleanups

This commit is contained in:
Steffen Vogel 2015-03-17 23:11:28 +01:00
parent c42163366f
commit ff010ba291
2 changed files with 7 additions and 8 deletions

View file

@ -1,9 +1,9 @@
TARGETS = server send random receive test
SRCS = server.c send.c receive.c random.c node.c path.c utils.c socket.c msg.c cfg.c if.c tc.c hist.c
# Default target: build everything
all: $(TARGETS)
# Common dependencies for all binaries
COMMON = socket.o if.o utils.o msg.o node.o cfg.o tc.o hooks.o
# Dependencies for individual binaries
@ -13,13 +13,12 @@ receive: $(COMMON)
random: utils.o msg.o
test: $(COMMON) hist.o
# Search path for source files
VPATH = src
# Default debug level
V ?= 2
# Some details about the compiled version
# Compiler and linker flags
LDFLAGS = -pthread -lrt -lm -lconfig
CFLAGS = -std=c99 -Iinclude/ -MMD -Wall
@ -28,7 +27,7 @@ CFLAGS += -D__GIT_REV__='"-$(shell git rev-parse --short HEAD)"'
# Conditional flags
ifdef DEBUG
CFLAGS += -g
CFLAGS += -O0 -g
else
CFLAGS += -O3
endif

View file

@ -111,13 +111,13 @@ void usage(const char *name)
int main(int argc, char *argv[])
{
epoch_reset();
info("This is Simulator2Simulator Server (S2SS) %s (built on %s, %s)",
BLD(YEL(VERSION)), BLD(MAG(__DATE__)), BLD(MAG(__TIME__)));
/* Check arguments */
if (argc != 2)
usage(argv[0]);
epoch_reset();
info("This is Simulator2Simulator Server (S2SS) %s (built on %s, %s)",
BLD(YEL(VERSION)), BLD(MAG(__DATE__)), BLD(MAG(__TIME__)));
/* Check priviledges */
if (getuid() != 0)