Source

blake / Makefile.bor

#
# This makefile is a wrapper for blake.mak
# It adds functionallity such as clean.
# blake.mak should be regenerated when IDE changes are made
# Then you should run ./borlandify.sh or borlandify.bat
# to make some modifications to blake.mak to ensure
# it works on other systems.
#
# Maintainer == DDRP <www.daybologic.co.uk/mailddrp>
#

ERASE_SCRIPT=../../shared/scripts/erase.pl
ERASE=perl $(ERASE_SCRIPT)
DEEPERASE=perl ../$(ERASE_SCRIPT)

IPATH=-I. \
      -I../src \
      -I../../shared/c99.h \
      -I$(PREFIX_INC) \
      -I../NetBuffer

!include ..\MasterMake.bor
!include blake.mak

clean :
	$(ERASE) csblake.dll
	$(ERASE) csblake.lib
	$(ERASE) ssblake.lib
	$(ERASE) ssblaked.lib
	$(ERASE) "blake.#*"
	$(ERASE) *.bak *.~* *~
	$(ERASE) *.il?
	$(ERASE) *.tds
	$(ERASE) *.tr2
	$(ERASE) *.csm
   $(ERASE) *.obj
   cd build_csblake
	$(DEEPERASE) *$(O)
	$(DEEPERASE) *$(O)
   cd ..
   cd build_ssblake
	$(DEEPERASE) *$(O)
	$(DEEPERASE) *$(O)
   cd ..
   cd build_ssblaked
	$(DEEPERASE) *$(O)
	$(DEEPERASE) *$(O)
   cd ..
   echo. > $(DEPSFILE)
	$(ERASE) $(RESPFILE)

depend :
        $(DIR) *$(C)    >  $(RESPFILE)
        $(DIR) *$(H)   >>  $(RESPFILE)
        $(DIR) *$(CPP) >>  $(RESPFILE)
        daybodep $(IPATH) @$(RESPFILE) > $(DEPSFILE)

!include $(DEPSFILE)