Skip to content

Commit

Permalink
Merge pull request #1 from cbullo/feature/remove_qt
Browse files Browse the repository at this point in the history
Remove qt from the library
  • Loading branch information
cbullo authored Jan 3, 2020
2 parents 72df258 + ab34a88 commit 28e3157
Show file tree
Hide file tree
Showing 8 changed files with 2,661 additions and 2,251 deletions.
118 changes: 118 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
#############################################################################
# Makefile for building: SimpleQtCryptor
# Generated by qmake (3.1) (Qt 5.9.5)
# Project: SimpleQtCryptor.pro
# Template: app
# Command: /usr/lib/qt5/bin/qmake -o Makefile SimpleQtCryptor.pro
#############################################################################

MAKEFILE = Makefile

####### Compiler, tools and options

CC = gcc
CXX = g++
CFLAGS = -pipe -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
CXXFLAGS = -pipe -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
INCPATH = -I.
DEL_FILE = rm -f
CHK_DIR_EXISTS= test -d
MKDIR = mkdir -p
COPY = cp -f
COPY_FILE = cp -f
COPY_DIR = cp -f -R
INSTALL_FILE = install -m 644 -p
INSTALL_PROGRAM = install -m 755 -p
INSTALL_DIR = cp -f -R
DEL_FILE = rm -f
SYMLINK = ln -f -s
DEL_DIR = rmdir
MOVE = mv -f
TAR = tar -cf
COMPRESS = gzip -9f
DISTNAME = SimpleQtCryptor1.0.0
LINK = g++
LFLAGS = -Wl,-O1
LIBS = $(SUBLIBS) -lpthread
AR = ar cqs
RANLIB =
SED = sed
STRIP = strip

####### Output directory

OBJECTS_DIR = ./

####### Files

SOURCES = main.cpp \
simpleqtcryptor.cpp \
simpleqtcryptor_test.cpp
OBJECTS = main.o \
simpleqtcryptor.o \
simpleqtcryptor_test.o
DIST = simpleqtcryptor.h \
simpleqtcryptor_test.h main.cpp \
simpleqtcryptor.cpp \
simpleqtcryptor_test.cpp
DESTDIR =
TARGET = SimpleCryptor


first: all
####### Build rules

$(TARGET): $(OBJECTS)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)

all: Makefile $(TARGET)

dist: distdir FORCE
(cd `dirname $(DISTDIR)` && $(TAR) $(DISTNAME).tar $(DISTNAME) && $(COMPRESS) $(DISTNAME).tar) && $(MOVE) `dirname $(DISTDIR)`/$(DISTNAME).tar.gz . && $(DEL_FILE) -r $(DISTDIR)

distdir: FORCE
@test -d $(DISTDIR) || mkdir -p $(DISTDIR)
$(COPY_FILE) --parents $(DIST) $(DISTDIR)/
$(COPY_FILE) --parents simpleqtcryptor.h simpleqtcryptor_test.h $(DISTDIR)/
$(COPY_FILE) --parents main.cpp simpleqtcryptor.cpp simpleqtcryptor_test.cpp $(DISTDIR)/


clean: FORCE
-$(DEL_FILE) $(OBJECTS)
-$(DEL_FILE) *~ core *.core


distclean: clean
-$(DEL_FILE) $(TARGET)
-$(DEL_FILE) Makefile


####### Sub-libraries

check: first

benchmark: first


####### Compile

main.o: main.cpp simpleqtcryptor.h \
simpleqtcryptor_test.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp

simpleqtcryptor.o: simpleqtcryptor.cpp simpleqtcryptor.h \
serpent_sbox.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o simpleqtcryptor.o simpleqtcryptor.cpp

simpleqtcryptor_test.o: simpleqtcryptor_test.cpp simpleqtcryptor_test.h \
simpleqtcryptor.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o simpleqtcryptor_test.o simpleqtcryptor_test.cpp

####### Install

install: FORCE

uninstall: FORCE

FORCE:

23 changes: 23 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
SimpleCryptor is an encryption library based on SimpleQtCryptor.
It is based on standard C++ rather than Qt.
Original SimpleQtCryptor library can be found at:
https://techfindings.one/archives/595

Copyright (C) 2019 Tomasz Cybulski

SimpleCrypto is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

SimpleCrypto is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.


Below is original README by the author of SimpleQtCryptor:


SimpleQtCryptor is an encryption library for Qt.

Expand Down
13 changes: 0 additions & 13 deletions SimpleQtCryptor.pro

This file was deleted.

Loading

0 comments on commit 28e3157

Please sign in to comment.