mirror of
https://bitbucket.org/Mattrixwv/cipherstream.git
synced 2025-12-07 02:43:56 -05:00
25 lines
612 B
Makefile
25 lines
612 B
Makefile
#For Linux
|
|
All: libCaesar.a libPlayfair.a Ciphers
|
|
|
|
#For Windows
|
|
WindowsAll: libCaesar.lib libPlayfair.lib Ciphers.exe
|
|
|
|
|
|
libCaesar.a: SourceFiles/Caesar.cpp
|
|
(CXX) -shared -std=c++11 -O3 -fPIC -o $@ $<
|
|
|
|
libPlayfair.a: SourceFiles/Playfair.cpp
|
|
(CXX) -shared -std=c++11 -O3 -fPIC -o $@ $<
|
|
|
|
Ciphers: main.cpp
|
|
(CXX) -O3 -std=c++11 -o $@ $< -lCaesar -lPlayfair
|
|
|
|
#Linux
|
|
libCaesar.lib: SourceFiles/Caesar.cpp
|
|
g++ -shared -std=c++11 -O3 -fPIC -o $@ $<
|
|
|
|
libPlayfair.lib: SourceFiles/Caesar.cpp
|
|
g++ -shared -std=c++11 -O3 -fPIC -o $@ $<
|
|
|
|
Ciphers.exe: main.cpp
|
|
g++ -std=c++11 -O3 -o $@ $< -L./ -llibCaesar -llibPlayfair
|