CC       =  gcc
CFLAGS   =  -O3 -funroll-all-loops -fforce-mem 
PAN_GLOB   =  ..\\pandora\\p_glob\\pandora.o ..\\pandora\\p_glob\\globals.o
PAN_HASH   =  ..\\pandora\\p_hash\\hash_lib.o
PAN_FILE   =  ..\\pandora\\p_file\\file_lib.o
PAN_COM    =  ..\\pandora\\p_com\\com_lib.o

pandora: all

all: bindas intruder crypto crypto2 manipul8 extract gameover havoc level1-1 level3-1

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

bindas: bindas.o $(PAN_FILE) $(PAN_HASH) $(PAN_COM) $(PAN_GLOB)
        bindas.o: bindas.c

intruder: intruder.o $(PAN_HASH) $(PAN_COM) $(PAN_GLOB)
         intruder.o: intruder.c

crypto: crypto.o $(PAN_FILE) $(PAN_HASH) $(PAN_GLOB)
        crypto.o: crypto.c

crypto2: crypto2.o $(PAN_FILE) $(PAN_HASH) $(PAN_GLOB)  
        crypto2.o: crypto2.c

manipul8: manipul8.o $(PAN_FILE) $(PAN_HASH) $(PAN_GLOB)
        manipul8.o: manipul8.c

extract: extract.o $(PAN_FILE) $(PAN_GLOB)
        extract.o: extract.c

# below programs only run under DOS with a Packet Driver on 0x60

gameover: gameover.o $(PAN_COM) $(PAN_GLOB)
          gameover.o: gameover.c

havoc: havoc.o $(PAN_COM) $(PAN_GLOB)
       havoc.o: havoc.c

level1-1: level1-1.o $(PAN_COM) $(PAN_GLOB)
       level1-1.o: level1-1.c

level3-1: level3-1.o $(PAN_COM) $(PAN_GLOB)
       level3-1.o: level3-1.c

#
#sample :
#
#myprog: myprog.o [$(__PAN__HEADER_I_USED__) ...] $(PAN_GLOB)
#        myprog.o: myprog.c
#
# this makefile is found in the directory: mydirectory      
# project pandora files are found under mydirectory\pandora
#
#
