diff Makefile @ 1:2ad543b339f1

enhanced makefile
author Robert McIntyre <rlm@mit.edu>
date Fri, 21 Oct 2011 06:03:53 -0700
parents e38dacceb958
children c3248c71ae74
line wrap: on
line diff
     1.1 --- a/Makefile	Fri Oct 21 05:53:11 2011 -0700
     1.2 +++ b/Makefile	Fri Oct 21 06:03:53 2011 -0700
     1.3 @@ -1,8 +1,36 @@
     1.4 -spc_record: 
     1.5  
     1.6  
     1.7 -whatever : snes_spc/SNES_SPC.cpp
     1.8 -	g++ -c snes_spc/*.cpp
     1.9 +
    1.10 +all : snes_core
    1.11 +
    1.12 +
    1.13 +snes_core : build/dsp.o build/SNES_SPC.o build/SNES_SPC_misc.o \
    1.14 +            build/SNES_SPC_state.o build/spc.o build/SPC_DSP.o \
    1.15 +            build/SPC_Filter.o
    1.16 +
    1.17 +
    1.18 +build/dsp.o : snes_spc/dsp.cpp
    1.19 +	g++ -c snes_spc/dsp.cpp -o build/dsp.o
    1.20 +
    1.21 +build/SNES_SPC.o : snes_spc/SNES_SPC.cpp
    1.22 +	g++ -c snes_spc/SNES_SPC.cpp -o build/SNES_SPC.o
    1.23 +
    1.24 +build/SNES_SPC_misc.o : snes_spc/SNES_SPC_misc.cpp
    1.25 +	g++ -c snes_spc/SNES_SPC_misc.cpp -o build/SNES_SPC_misc.o
    1.26 +
    1.27 +build/SNES_SPC_state.o : snes_spc/SNES_SPC_state.cpp
    1.28 +	g++ -c snes_spc/SNES_SPC_state.cpp -o build/SNES_SPC_state.o
    1.29 +
    1.30 +build/spc.o : snes_spc/spc.cpp
    1.31 +	g++ -c snes_spc/spc.cpp -o build/spc.o
    1.32 +
    1.33 +build/SPC_DSP.o : snes_spc/SPC_DSP.cpp
    1.34 +	g++ -c snes_spc/SPC_DSP.cpp -o build/SPC_DSP.o
    1.35 +
    1.36 +build/SPC_Filter.o : snes_spc/SPC_Filter.cpp
    1.37 +	g++ -c snes_spc/SPC_Filter.cpp -o build/SPC_Filter.o
    1.38 +
    1.39 +
    1.40  
    1.41  
    1.42