Skip to content

Commit

Permalink
Simplify makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
calmcl1 committed Feb 28, 2017
1 parent 5dc15b3 commit 53cf502
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
FILES=chronicle.cpp screen.cpp RtAudio.cpp

MSYS2WIN32LIBS=-lole32 -ldsound -luser32 -lwinmm -luuid -lksuser

MSYS2WINBOOSTLIBS=-lboost_filesystem-mt -lboost_system-mt
Expand All @@ -7,21 +9,21 @@ MSYS2LIBS=`pkg-config --cflags --libs sndfile rtaudio`

msys232:
mkdir -p build/32
g++ chronicle.cpp RtAudio.cpp -std=c++11 $(MSYS2WIN32LIBS) $(MSYS2LIBS) $(MSYS2WINBOOSTLIBS) -lncurses -o build/32/chronicle.exe
g++ $(FILES) -std=c++11 $(MSYS2WIN32LIBS) $(MSYS2LIBS) $(MSYS2WINBOOSTLIBS) -lncurses -o build/32/chronicle.exe
cp libs/32/* build/32
cp README.md build/32
cp LICENCE build/32

msys264:
mkdir -p build/64
g++ chronicle.cpp screen.cpp RtAudio.cpp -std=c++11 $(MSYS2WIN32LIBS) $(MSYS2LIBS) $(MSYS2WINBOOSTLIBS) -lncurses -o build/64/chronicle.exe
g++ $(FILES) -std=c++11 $(MSYS2WIN32LIBS) $(MSYS2LIBS) $(MSYS2WINBOOSTLIBS) -lncurses -o build/64/chronicle.exe
cp libs/64/* build/64/
cp README.md build/64
cp LICENCE build/64

linux:
mkdir -p build/linux
g++ chronicle.cpp RtAudio.cpp -std=c++11 -D__LINUX_ALSA__ -lpthread $(MSYS2LIBS) $(MSYS2LINBOOSTLIBS) -lncurses -o build/linux/chronicle
g++ $(FILES) -std=c++11 -D__LINUX_ALSA__ -lpthread $(MSYS2LIBS) $(MSYS2LINBOOSTLIBS) -lncurses -o build/linux/chronicle
cp README.md build/linux
cp LICENCE build/linux

Expand Down

0 comments on commit 53cf502

Please sign in to comment.