Initial commit. It's far from finished.

This commit is contained in:
2016-08-08 11:12:06 +03:00
commit e9f3673bfd
30 changed files with 1948 additions and 0 deletions

35
agent/Makefile Normal file
View File

@@ -0,0 +1,35 @@
CC ?= cc
CCFLAGS ?= -O2
CCFLAGS += -Wall \
-Wextra \
-pipe \
-Wmissing-declarations \
-pedantic \
-fstack-protector-strong
LDFLAGS = -O1, -lcrypto -lssl -lpthread
LDFLAGS += -Wl,-z,relro,-z,now
SOURCES = agent.c \
agent_ssl.c \
job.c
OBJECTS = $(SOURCES:.c=.o)
EXECUTABLE = agent
all: $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
@echo ' LD $@'
@$(CC) $(LDFLAGS) $(OBJECTS) -o $@
.c.o:
@echo ' CC $@'
@$(CC) $(CCFLAGS) -c $< -o $@
clean:
rm -rf $(OBJECTS) $(EXECUTABLE)
distclean:
rm -rf $(OBJECTS)