changeset 1:2ad543b339f1

enhanced makefile
author Robert McIntyre <rlm@mit.edu>
date Fri, 21 Oct 2011 06:03:53 -0700
parents e38dacceb958
children c3248c71ae74
files .hgignore Makefile
diffstat 2 files changed, 33 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/.hgignore	Fri Oct 21 06:03:53 2011 -0700
     1.3 @@ -0,0 +1,2 @@
     1.4 +syntax : glob
     1.5 +build*
     2.1 --- a/Makefile	Fri Oct 21 05:53:11 2011 -0700
     2.2 +++ b/Makefile	Fri Oct 21 06:03:53 2011 -0700
     2.3 @@ -1,8 +1,36 @@
     2.4 -spc_record: 
     2.5  
     2.6  
     2.7 -whatever : snes_spc/SNES_SPC.cpp
     2.8 -	g++ -c snes_spc/*.cpp
     2.9 +
    2.10 +all : snes_core
    2.11 +
    2.12 +
    2.13 +snes_core : build/dsp.o build/SNES_SPC.o build/SNES_SPC_misc.o \
    2.14 +            build/SNES_SPC_state.o build/spc.o build/SPC_DSP.o \
    2.15 +            build/SPC_Filter.o
    2.16 +
    2.17 +
    2.18 +build/dsp.o : snes_spc/dsp.cpp
    2.19 +	g++ -c snes_spc/dsp.cpp -o build/dsp.o
    2.20 +
    2.21 +build/SNES_SPC.o : snes_spc/SNES_SPC.cpp
    2.22 +	g++ -c snes_spc/SNES_SPC.cpp -o build/SNES_SPC.o
    2.23 +
    2.24 +build/SNES_SPC_misc.o : snes_spc/SNES_SPC_misc.cpp
    2.25 +	g++ -c snes_spc/SNES_SPC_misc.cpp -o build/SNES_SPC_misc.o
    2.26 +
    2.27 +build/SNES_SPC_state.o : snes_spc/SNES_SPC_state.cpp
    2.28 +	g++ -c snes_spc/SNES_SPC_state.cpp -o build/SNES_SPC_state.o
    2.29 +
    2.30 +build/spc.o : snes_spc/spc.cpp
    2.31 +	g++ -c snes_spc/spc.cpp -o build/spc.o
    2.32 +
    2.33 +build/SPC_DSP.o : snes_spc/SPC_DSP.cpp
    2.34 +	g++ -c snes_spc/SPC_DSP.cpp -o build/SPC_DSP.o
    2.35 +
    2.36 +build/SPC_Filter.o : snes_spc/SPC_Filter.cpp
    2.37 +	g++ -c snes_spc/SPC_Filter.cpp -o build/SPC_Filter.o
    2.38 +
    2.39 +
    2.40  
    2.41  
    2.42