]> Shamusworld >> Repos - virtualjaguar/blob - Makefile
Removed files no longer needed, fixed build system to be more sane.
[virtualjaguar] / Makefile
1 # Makefile for Virtual Jaguar
2 #
3 # by James Hammons
4 # (C) 2011 Underground Software
5
6 FIND = find
7
8 all: prepare virtualjaguar
9         @echo -e "\033[01;33m***\033[00;32m Success!\033[00m"
10
11 prepare:
12         @echo -e "\033[01;33m***\033[00;32m Preparing to compile Virtual Jaguar...\033[00m"
13
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
17
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
21
22 libs: obj/libmusashi.a
23         @echo -e "\033[01;33m***\033[00;32m Make libs here (if any)...\033[00m"
24
25 obj/libmusashi.a:
26         @echo -e "\033[01;33m***\033[00;32m Making Musashi...\033[00m"
27         $(MAKE) -f musashi.mak
28
29 sources: src/*.h src/*.cpp src/*.c
30
31 clean:
32         @echo -ne "\033[01;33m***\033[00;32m Cleaning out the garbage...\033[00m"
33 #       @-$(MAKE) -f makefile-qt clean
34         @-rm -rf ./obj
35         @-rm makefile-qt
36         @-rm virtualjaguar
37         @-$(FIND) . -name "*~" -exec rm -f {} \;
38         @echo "done!"
39
40 statistics:
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
45
46 dist:   clean