# Makefile for Pro-Wizard 1 (for PeeCee)
# copyright 1997-2001 Sylvain "asle" Chipaux

CFLAGS = -O6 -Wall -mpentiumpro -g2 -I/usr/local/include -DDMALLOC
CC = gcc

# 

CFILES = prowiz.c tests/ac1d.c tests/bp.c tests/di.c tests/eureka.c \
        tests/fc_m.c tests/fuzzac.c tests/hrt.c tests/kris.c \
        tests/mp.c tests/pha.c tests/pm.c tests/pm01.c tests/pm10c.c \
        tests/pm20.c tests/pmz.c tests/pp21.c tests/pp30.c \
        tests/prun1.c tests/prun2.c tests/ptk.c tests/skyt.c \
        tests/starpack.c tests/unic.c tests/unic2.c tests/wn.c \
        tests/xann.c tests/gmc.c tests/heatseek.c tests/ksm.c \
        tests/noiserun.c tests/npd1.c tests/npd2.c tests/npd3.c \
        tests/p40a.c tests/p41a.c tests/pm40.c tests/pp10.c \
        tests/tp1.c tests/tp2.c tests/tp3.c tests/zen.c tests/p50a.c \
        tests/p60a.c tests/p61a.c tests/stim.c tests/soundtk.c \
        tests/defjam32.c tests/tpack22.c tests/tpack21.c tests/defja32p.c \
        tests/bytek13.c test/dblatn.c tests/powerp30.c tests/powerp40.c \
        tests/powerp23.c tests/bytek20.c tests/spike.c tests/tpack102.c \
        tests/time17.c tests/mc30addr.c tests/jamcrack.c tests/bsifc.c \
        tests/digibst.c tests/mcrun10.c tests/mcrun12.c tests/qc.c \
        tests/tdd.c tests/fuchs.c tests/bytek30.c tests/syncro.c \
        tests/stc270.c tests/tnmc11.c tests/superc27.c tests/ppbk.c \
        tests/relokit.c tests/maxpax12.c tests/soundfx.c tests/arcd.c \
	tests/crnd.c tests/stk26.c tests/bytekp10.c tests/hqc2.c \
	tests/tryit101.c tests/fc13.c tests/fc14.c tests/crmaddr.c tests/mmd0.c \
	tests/powerp4l.c tests/newtron.c tests/gpmo.c \
        rips/ac1d.c rips/bp.c rips/di.c rips/eureka.c rips/fc_m.c \
        rips/fuzzac.c rips/hrt.c rips/kris.c rips/mp.c rips/pha.c \
        rips/pm.c rips/pm01.c rips/pm10c.c rips/pm20.c rips/pm18a.c \
        rips/pp21.c rips/pp30.c rips/prun1.c rips/prun2.c rips/ptk.c \
        rips/skyt.c rips/starpack.c rips/unic.c rips/unic2.c rips/wn.c \
        rips/xann.c rips/gmc.c rips/heatseek.c rips/ksm.c \
        rips/noiserun.c rips/npd1.c rips/npd2.c rips/npd3.c \
        rips/p40a.c rips/p40b.c rips/p41a.c rips/pm40.c rips/pp10.c \
        rips/tp1.c rips/tp2.c rips/tp3.c rips/zen.c rips/p50a.c \
        rips/p60a.c rips/startrek.c rips/p61a.c rips/stim.c \
        rips/soundtk.c rips/defjam32.c rips/tpack22.c rips/tpack21.c \
        rips/mcrun.c rips/bytekil.c rips/dblatn.c rips/powerp30.c \
        rips/powerp40.c rips/powerp23.c rips/spike.c rips/tpack102.c \
        rips/digibst.c rips/time17.c rips/mc30addr.c rips/jamcrack.c \
        rips/bsifc.c rips/qc.c rips/tdd.c rips/fuchs.c rips/bytek30.c \
        rips/syncro.c rips/stc270.c rips/tnmc11.c rips/superc27.c \
        rips/ppbk.c rips/relokit.c rips/maxpac12.c rips/soundfx.c \
	rips/stk26.c rips/bytekp10.c rips/hqc2.c rips/tryit101.c \
	rips/fc13.c rips/fc14.c rips/crmaddr.c rips/med.c rips/powerp4l.c \
	rips/newtron.c rips/gpmo.c \
	depack/ac1d.c depack/di.c depack/eureka.c depack/fc-m.c \
	depack/fuzzac.c depack/gmc.c depack/heatseek.c depack/hrt.c \
	depack/kris.c depack/ksm.c depack/mp.c depack/noiserun.c \
	depack/np1.c depack/np2.c depack/np3.c depack/p40.c depack/p41a.c \
	depack/p50a.c depack/p60a.c depack/p61a.c depack/pha.c \
	depack/pm01.c depack/pm10c.c depack/pm18a.c depack/pm20.c \
	depack/pm40.c depack/pm.c depack/pp10.c depack/pp21.c \
	depack/pp30.c depack/prun1.c depack/prun2.c depack/skyt.c \
	depack/starpack.c depack/tp1.c depack/tp2.c depack/tp3.c \
	depack/unic.c depack/unic2.c depack/wn.c depack/xann.c \
	depack/zen.c depack/stim.o depack/qc.c depack/tdd.c \
	depack/fuchs.c depack/soundfx.c depack/stk26.c depack/newtron.c \
	depack/gpmo.c \
	misc/misc.c misc/testbag.c

OFILES = prowiz.o tests/ac1d.o tests/bp.o tests/di.o tests/eureka.o \
	tests/fc_m.o tests/fuzzac.o tests/hrt.o tests/kris.o \
	tests/mp.o tests/pha.o tests/pm.o tests/pm01.o tests/pm10c.o \
	tests/pm20.o tests/pmz.o tests/pp21.o tests/pp30.o \
	tests/prun1.o tests/prun2.o tests/ptk.o tests/skyt.o \
	tests/starpack.o tests/unic.o tests/unic2.o tests/wn.o \
	tests/xann.o tests/gmc.o tests/heatseek.o tests/ksm.o \
	tests/noiserun.o tests/npd1.o tests/npd2.o tests/npd3.o \
	tests/p40a.o tests/p41a.o tests/pm40.o tests/pp10.o \
	tests/tp1.o tests/tp2.o tests/tp3.o tests/zen.o tests/p50a.o \
	tests/p60a.o  tests/p61a.o tests/stim.o tests/soundtk.o \
	tests/defjam32.o tests/tpack22.o tests/tpack21.o tests/defja32p.o \
	tests/bytek13.o tests/dblatn.o tests/powerp30.o tests/powerp40.o \
	tests/powerp23.o tests/bytek20.o tests/spike.o tests/tpack102.o \
	tests/time17.o tests/mc30addr.o tests/jamcrack.o tests/bsifc.o \
	tests/digibst.o tests/mcrun10.o tests/mcrun12.o tests/qc.o \
	tests/tdd.o tests/fuchs.o tests/bytek30.o tests/syncro.o \
	tests/stc270.o tests/tnmc11.o tests/superc27.o tests/ppbk.o \
	tests/relokit.o tests/maxpac12.o tests/soundfx.o tests/arcd.o \
	tests/crnd.o tests/stk26.o tests/bytekp10.o tests/hqc2.o \
	tests/tryit101.o tests/fc13.o tests/fc14.o tests/crmaddr.o tests/mmd0.o \
	tests/powerp4l.o tests/newtron.o tests/gpmo.o \
        rips/ac1d.o rips/bp.o rips/di.o rips/eureka.o rips/fc_m.o \
	rips/fuzzac.o rips/hrt.o rips/kris.o rips/mp.o rips/pha.o \
	rips/pm.o rips/pm01.o rips/pm10c.o rips/pm20.o rips/pm18a.o \
	rips/pp21.o rips/pp30.o rips/prun1.o rips/prun2.o rips/ptk.o \
	rips/skyt.o rips/starpack.o rips/unic.o rips/unic2.o rips/wn.o \
	rips/xann.o rips/gmc.o rips/heatseek.o rips/ksm.o \
	rips/noiserun.o rips/npd1.o rips/npd2.o rips/npd3.o \
	rips/p40a.o rips/p40b.o rips/p41a.o rips/pm40.o rips/pp10.o \
	rips/tp1.o rips/tp2.o rips/tp3.o rips/zen.o rips/p50a.o \
	rips/p60a.o rips/startrek.o rips/p61a.o rips/stim.o \
	rips/soundtk.o rips/defjam32.o rips/tpack22.o rips/tpack21.o \
	rips/mcrun.o rips/bytekil.o rips/dblatn.o rips/powerp30.o \
	rips/powerp40.o rips/powerp23.o rips/spike.o rips/tpack102.o \
	rips/digibst.o rips/time17.o rips/mc30addr.o rips/jamcrack.o \
	rips/bsifc.o rips/qc.o rips/tdd.o rips/fuchs.o rips/bytek30.o \
	rips/syncro.o rips/stc270.o rips/tnmc11.o rips/superc27.o \
	rips/ppbk.o rips/relokit.o rips/maxpac12.o rips/soundfx.o \
	rips/stk26.o rips/bytekp10.o rips/hqc2.o rips/tryit101.o \
	rips/fc13.o rips/fc14.o rips/crmaddr.o rips/med.o rips/powerp4l.o \
	rips/newtron.o rips/gpmo.o \
	depack/ac1d.o depack/di.o depack/eureka.o depack/fc-m.o \
	depack/fuzzac.o depack/gmc.o depack/heatseek.o depack/hrt.o \
	depack/kris.o depack/ksm.o depack/mp.o depack/noiserun.o \
	depack/np1.o depack/np2.o depack/np3.o depack/p40.o depack/p41a.o \
	depack/p50a.o depack/p60a.o depack/p61a.o depack/pha.o \
	depack/pm01.o depack/pm10c.o depack/pm18a.o depack/pm20.o \
	depack/pm40.o depack/pm.o depack/pp10.o depack/pp21.o \
	depack/pp30.o depack/prun1.o depack/prun2.o depack/skyt.o \
	depack/starpack.o depack/tp1.o depack/tp2.o depack/tp3.o \
	depack/unic.o depack/unic2.o depack/wn.o depack/xann.o \
	depack/zen.o depack/stim.o depack/qc.o depack/tdd.o \
	depack/fuchs.o depack/soundfx.o depack/stk26.o depack/newtron.o \
	depack/gpmo.o \
	misc/misc.o misc/testbag.o

EXEFILE = prowiz.exe

.c.o:
	$(CC) -DUNIX $(CFLAGS) -c $< -o $@

prowiz:	$(OFILES)
	$(CC) -o $(EXEFILE) -L/usr/local/lib -ldmalloc $(OFILES) 

# 
clean:	clear
	rm -f *.o
	rm -f tests/*.o
	rm -f rips/*.o
	rm -f depack/*.o
	rm -f misc/*.o
	rm -f core *.core

#
clear:
	rm -f *~ *.*~ tests/*~ tests/*.*~ rips/*~ rips/*.*~ misc/*~ misc/*.*~ include/*~ include/*.*~ depack/*~ depack/*.*~
