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