mirror of
https://bitbucket.org/Mattrixwv/cipherstream.git
synced 2025-12-06 18:33:58 -05:00
Updated to work with windows
This commit is contained in:
29
makefile
29
makefile
@@ -21,7 +21,7 @@ debugWindows: CipherDBG.exe
|
|||||||
#Keeping the old one for now, until I can test it to make sure it works
|
#Keeping the old one for now, until I can test it to make sure it works
|
||||||
#WindowsLibs: libCaesar.lib libPlayfair.lib libVigenere.lib libAtbash.lib
|
#WindowsLibs: libCaesar.lib libPlayfair.lib libVigenere.lib libAtbash.lib
|
||||||
#WINDOWSLIBS = -llibCaesar -llibPlayfair -llibVigenere -llibAtbash
|
#WINDOWSLIBS = -llibCaesar -llibPlayfair -llibVigenere -llibAtbash
|
||||||
libsWindows: directory $(patsubst %, $(LIBDIR)/lib%.lib,$(CIPHERS))
|
libsWindows: $(patsubst %, lib%.lib,$(CIPHERS))
|
||||||
WINDOWSLIBS = $(patsubst %, -llib%,$(CIPHERS))
|
WINDOWSLIBS = $(patsubst %, -llib%,$(CIPHERS))
|
||||||
|
|
||||||
|
|
||||||
@@ -49,27 +49,30 @@ CiphersDBG: main.cpp testMain.hpp $(LIBFILES)
|
|||||||
|
|
||||||
#Windows
|
#Windows
|
||||||
#Building Libraries
|
#Building Libraries
|
||||||
#libCaesar.lib: SourceFiles/Caesar.cpp directory
|
libCaesar.lib: SourceFiles/Caesar.cpp
|
||||||
# g++ $(LIBFLAGS) -o lib/$@ SourceFiles/Caesar.cpp
|
g++ $(LIBFLAGS) -o $@ $<
|
||||||
|
|
||||||
#libPlayfair.lib: SourceFiles/Playfair.cpp directory
|
libPlayfair.lib: SourceFiles/Playfair.cpp
|
||||||
# g++ -shared -std=c++11 -O3 -fPIC -o lib/$@ SourceFiles/Playfair.cpp
|
g++ $(LIBFLAGS) -o $@ $<
|
||||||
|
|
||||||
#libVigenere.lib: SourceFiles/Vigenere.cpp directory
|
libVigenere.lib: SourceFiles/Vigenere.cpp
|
||||||
# g++ -shared -std=c++11 -O3 -fPIC -o lib/$@ SourceFiles/Vigenere.cpp
|
g++ $(LIBFLAGS) -o $@ $<
|
||||||
|
|
||||||
#libAtbash.lib: SourceFiles/Atbash.cpp directory
|
libAtbash.lib: SourceFiles/Atbash.cpp
|
||||||
# g++ -shared -std=c++11 -O3 -fPIC -o lib/$@ SourceFiles/Atbash.cpp
|
g++ $(LIBFLAGS) -o $@ $<
|
||||||
|
|
||||||
$(LIBDIR)/lib%.lib: SourceFiles/%.cpp
|
libAutokey.lib: SourceFiles/Autokey.cpp libVigenere.lib
|
||||||
|
g++ $(LIBFLAGS) -o $@ $< -L./ -llibVigenere
|
||||||
|
|
||||||
|
libMorse.lib: SourceFiles/Morse.cpp
|
||||||
g++ $(LIBFLAGS) -o $@ $<
|
g++ $(LIBFLAGS) -o $@ $<
|
||||||
|
|
||||||
#Building Executables
|
#Building Executables
|
||||||
CipherStream.exe: main.cpp helperFunctions.hpp
|
CipherStream.exe: main.cpp helperFunctions.hpp
|
||||||
g++ $(EXEFLAGS) -o $@ main.cpp -L $(LIBDIR) $(WINDOWSLIBS)
|
g++ $(EXEFLAGS) -o $@ main.cpp -L./ $(WINDOWSLIBS)
|
||||||
|
|
||||||
CiphersTest.exe: main.cpp testMain.hpp
|
CiphersTest.exe: main.cpp testMain.hpp
|
||||||
g++ $(TESTFLAGS) -o $@ $< -L $(LIBDIR) $(WINDOWSLIBS)
|
g++ $(TESTFLAGS) -o $@ $< -L./ $(WINDOWSLIBS)
|
||||||
|
|
||||||
CiphersDBG.exe: main.cpp testMain.hpp $(LIBFILES)
|
CiphersDBG.exe: main.cpp testMain.hpp $(LIBFILES)
|
||||||
g++ $(DEBUGFLAGS) -o $@ $< $(LIBFILES)
|
g++ $(DEBUGFLAGS) -o $@ $< $(LIBFILES)
|
||||||
@@ -85,4 +88,4 @@ cleanLinux:
|
|||||||
|
|
||||||
#Windows Remove
|
#Windows Remove
|
||||||
cleanWindows:
|
cleanWindows:
|
||||||
rm -f lib/*.lib Cipher*.exe
|
rm -f *.lib Cipher*.exe
|
||||||
|
|||||||
Reference in New Issue
Block a user