Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
55 lines (45 sloc) 1.93 KB
LDFLAGS = -lrt -lm -lfuzzy -lxerces-c
INCLUDES = -I src -I libs/munkres-2 -I src/Core -I src/SimilarityMeasures/StringMetricsAndMatching -I src/SimilarityMeasures/FuzzyHashing -I src/Launcher
CFLAGS = -fopenmp -g
INSTALL = install
WGET = wget
CC = g++
CP = cp
RM = rm
MPICC = mpic++
SOURCES = src/Core/Clonewise-Cache.cpp \
src/Core/Clonewise-query-embedded-cache.cpp \
src/Core/Clonewise.cpp \
src/Core/Clonewise-lib-Cache.cpp \
libs/munkres-2/munkres.cpp \
src/Core/Clonewise-main.cpp \
src/Core/Clonewise-MakeCache.cpp \
src/Core/Clonewise-make-embedded-cache.cpp \
src/Core/Clonewise-query-source.cpp \
src/Core/Clonewise-query-embedded.cpp \
src/Core/Clonewise-find-file.cpp \
src/Core/Clonewise-find-license-problems.cpp \
src/Core/Clonewise-BugInferrer.cpp \
src/Core/Clonewise-ParseDatabase.cpp \
src/Launcher/main.cpp \
src/SimilarityMeasures/StringMetricsAndMatching/StringMetrics.cpp \
src/SimilarityMeasures/FuzzyHashing/FuzzyHashSSDeep.cpp
OBJECTS = $(SOURCES:.cpp=.o)
all: Clonewise
%.o : %.cpp
$(MPICC) $(CFLAGS) $(INCLUDES) -c $< -o $@
Clonewise: $(OBJECTS)
$(MPICC) $(CFLAGS) -o bin/Clonewise $(OBJECTS) $(LDFLAGS)
install-bins:
$(INSTALL) -d $(DESTDIR)/var $(DESTDIR)/var/lib $(DESTDIR)/var/lib/Clonewise
$(INSTALL) ./bin/* $(DESTDIR)/usr/bin
install-configs:
$(INSTALL) -d $(DESTDIR)/var $(DESTDIR)/var/lib $(DESTDIR)/var/lib/Clonewise
$(CP) -ru config/* $(DESTDIR)/var/lib/Clonewise
chmod 0755 $(DESTDIR)/var/lib/Clonewise/*
$(WGET) -O $(DESTDIR)/var/lib/Clonewise/bugs/cve/nvdcve-2012.xml http://static.nvd.nist.gov/feeds/xml/cve/nvdcve-2.0-2012.xml
$(WGET) -O $(DESTDIR)/var/lib/Clonewise/bugs/cve/nvdcve-2011.xml http://static.nvd.nist.gov/feeds/xml/cve/nvdcve-2.0-2011.xml
$(WGET) -O $(DESTDIR)/var/lib/Clonewise/bugs/cve/nvdcve-2010.xml http://static.nvd.nist.gov/feeds/xml/cve/nvdcve-2.0-2010.xml
install: install-bins install-configs
clean:
$(RM) -f $(OBJECTS) bin/Clonewise bin/Clonewise-BugInferrer