Commit c5b79c8a authored by Giovanne Marcelo's avatar Giovanne Marcelo
Browse files

migrate#1

parent ad88e83c
Pipeline #6434 passed with stage
in 4 minutes and 52 seconds
CC = gcc
CFLAGS = -std=c99 -g -O3 \
CC = g++
CFLAGS = -g -O3 \
-pipe \
-ggdb3 -Wstrict-overflow=5 -fstack-protector-all \
-W -Wall -Wextra \
-Wbad-function-cast \
-Wcast-align \
-Wcast-qual \
-Wconversion \
......@@ -17,31 +16,25 @@ CFLAGS = -std=c99 -g -O3 \
-Wmissing-format-attribute \
-Wmissing-include-dirs \
-Wmissing-noreturn \
-Wmissing-prototypes \
-Wnested-externs \
-Wnormalized=nfc \
-Wold-style-definition \
-Woverlength-strings \
-Wpacked \
-Wpadded \
-Wpointer-arith \
-Wredundant-decls \
-Wshadow \
-Wsign-compare \
-Wstack-protector \
-Wstrict-aliasing=2 \
-Wstrict-prototypes \
-Wundef \
-Wunsafe-loop-optimizations \
-Wvolatile-register-var \
-Wwrite-strings
CFLAGS += `pkg-config --cflags glib-2.0`
LFLAGS = -lpq -ljansson -lgsl -lgslcblas -lm
LFLAGS += `pkg-config --libs glib-2.0`
-Wwrite-strings
LFLAGS = -lpq -ljansson -lgsl -lgslcblas -lm
INCL = -I./include
SRC = ./src
DEPS = ./include/db_interface.h ./include/log.h ./include/main.h ./include/data_prepare.h ./include/matrix.h \
./include/algorithm.h
OBJ = db_interface.o log.o matrix.o data_prepare.o algorithm.o main.o
DEPS = ./include/db_interface.h ./include/log.h ./include/main.h ./include/data_prepare.h ./include/matrix.h
OBJ = db_interface.o log.o matrix.o data_prepare.o main.o
APP=recommender
all: $(APP)
......
......@@ -4,6 +4,5 @@
#include "db_interface.h"
#include "data_prepare.h"
#include "log.h"
#include <glib.h>
#endif
......@@ -10,7 +10,7 @@
FILE* open_log(void) {
FILE * stream;
struct stat st = {0};
struct stat st;
if( stat("./log", &st) == -1 ) {
mkdir("./log", 0755);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment