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