1 # Makefile for Virtual Jaguar
4 # (C) 2011 Underground Software
8 all: prepare virtualjaguar
9 @echo -e "\033[01;33m***\033[00;32m Success!\033[00m"
12 @echo -e "\033[01;33m***\033[00;32m Preparing to compile Virtual Jaguar...\033[00m"
14 virtualjaguar: sources libs makefile-qt
15 @echo -e "\033[01;33m***\033[00;32m Making Virtual Jaguar...\033[00m"
16 $(MAKE) -f makefile-qt
18 makefile-qt: virtualjaguar.pro
19 @echo -e "\033[01;33m***\033[00;32m Creating Qt makefile...\033[00m"
20 qmake virtualjaguar.pro -o makefile-qt
22 libs: obj/libmusashi.a
23 @echo -e "\033[01;33m***\033[00;32m Make libs here (if any)...\033[00m"
26 @echo -e "\033[01;33m***\033[00;32m Making Musashi...\033[00m"
27 $(MAKE) -f musashi.mak
29 sources: src/*.h src/*.cpp src/*.c
32 @echo -ne "\033[01;33m***\033[00;32m Cleaning out the garbage...\033[00m"
33 # @-$(MAKE) -f makefile-qt clean
37 @-$(FIND) . -name "*~" -exec rm -f {} \;
41 @echo -n "Lines in source files: "
42 @-$(FIND) ./src -name "*.cpp" | xargs cat | wc -l
43 @echo -n "Lines in header files: "
44 @-$(FIND) ./src -name "*.h" | xargs cat | wc -l