Home | History | Annotate | Line # | Download | only in stand
Makefile revision 1.6.8.2
      1  1.6.8.2  nathanw # $NetBSD: Makefile,v 1.6.8.2 2002/01/08 00:25:04 nathanw Exp $
      2  1.6.8.2  nathanw #
      3  1.6.8.2  nathanw # Makefile to generate windows VC++ project and workspace files from
      4  1.6.8.2  nathanw # config files and templates
      5  1.6.8.2  nathanw 
      6  1.6.8.2  nathanw PROJECT_DIRS=libsa pbsdboot libz
      7  1.6.8.2  nathanw 
      8  1.6.8.2  nathanw all: winfiles optfiles rom-boot
      9  1.6.8.2  nathanw 
     10  1.6.8.2  nathanw winfiles: 
     11  1.6.8.2  nathanw 	for name in $(PROJECT_DIRS); do \
     12  1.6.8.2  nathanw 	    sh dspgen/config.sh vc6 $$name; \
     13  1.6.8.2  nathanw 	    sh dspgen/config.sh evc3 $$name; \
     14  1.6.8.2  nathanw 	done
     15  1.6.8.2  nathanw 	sh dspgen/gen_workspace.sh vc6 hpcmips_stand.dsw $(PROJECT_DIRS)
     16  1.6.8.2  nathanw 	sh dspgen/gen_workspace.sh evc3 hpcmips_stand.vcw $(PROJECT_DIRS)
     17  1.6.8.2  nathanw 
     18  1.6.8.2  nathanw optfiles:
     19  1.6.8.2  nathanw 	echo "/* option \`SPEC_PLATFORM' not defined */" \
     20  1.6.8.2  nathanw             > pbsdboot/opt_spec_platform.h
     21  1.6.8.2  nathanw 
     22  1.6.8.2  nathanw # remote transient build-related files globally and for each project:
     23  1.6.8.2  nathanw #	* global 'class view' information (.ncb)
     24  1.6.8.2  nathanw #	* Debug and Release compile dirs,
     25  1.6.8.2  nathanw #	* .plg files (build logs), and
     26  1.6.8.2  nathanw #	* .[0-9][0-9][0-9] files (old versions of auto-converted .dsp files).
     27  1.6.8.2  nathanw 
     28  1.6.8.2  nathanw rom-boot:
     29  1.6.8.2  nathanw 	(cd romboot; make)
     30  1.6.8.2  nathanw 
     31  1.6.8.2  nathanw clean:
     32  1.6.8.2  nathanw 	rm -f hpcmips_stand.ncb
     33  1.6.8.2  nathanw 	for dir in $(PROJECT_DIRS); do \
     34  1.6.8.2  nathanw 	    (cd $$dir && rm -rf WMIPSDbg wmipsdbg WMIPSRel wmipsrel); \
     35  1.6.8.2  nathanw 	    (cd $$dir && rm -f $$dir.plg $$dir.vcl $$dir.[0-9][0-9][0-9]); \
     36  1.6.8.2  nathanw 	    (cd $$dir && rm -f $$dir.ncb $$dir.opt); \
     37  1.6.8.2  nathanw 	done
     38  1.6.8.2  nathanw 	rm -f pbsdboot/opt_spec_platform.h
     39  1.6.8.2  nathanw 	(cd romboot; make clean)
     40  1.6.8.2  nathanw 
     41  1.6.8.2  nathanw # remove all files which windows is likely to have created, in addition
     42  1.6.8.2  nathanw # to transient build-related files:
     43  1.6.8.2  nathanw #	* .opt workspace option file
     44  1.6.8.2  nathanw #	* (probably automatic) updates to the .dsp and .dsw files,
     45  1.6.8.2  nathanw #	  which should be identical to the auto-generated versions when
     46  1.6.8.2  nathanw #	  clean.
     47  1.6.8.2  nathanw 
     48  1.6.8.2  nathanw distclean cleandir: clean winfiles
     49  1.6.8.2  nathanw 	rm -f hpcmips_stand.opt
     50  1.6.8.2  nathanw 	rm -f hpcmips_stand.vcw
     51  1.6.8.2  nathanw 	rm -f hpcmips_stand.vco
     52  1.6.8.2  nathanw 	rm -f hpcmips_stand.vcb
     53  1.6.8.2  nathanw 	for dir in $(PROJECT_DIRS); do \
     54  1.6.8.2  nathanw 	    (cd $$dir && rm -f $$dir.vcp); \
     55  1.6.8.2  nathanw 	done
     56