1 # $NetBSD: Makefile,v 1.4 2000/08/29 15:10:14 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 dir in $(PROJECT_DIRS); do \ 10 $$dir/$$dir.config; \ 11 done 12 sh dspgen/gen_workspace.sh hpcmips_stand.dsw $(PROJECT_DIRS) 13 14 # remote transient build-related files globally and for each project: 15 # * global 'class view' information (.ncb) 16 # * Debug and Release compile dirs, 17 # * .plg files (build logs), and 18 # * .[0-9][0-9][0-9] files (old versions of auto-converted .dsp files). 19 20 clean: 21 rm -f hpcmips_stand.ncb 22 for dir in $(PROJECT_DIRS); do \ 23 (cd $$dir && rm -rf WMIPSDbg wmipsdbg WMIPSRel wmipsrel); \ 24 (cd $$dir && rm -f $$dir.plg $$dir.[0-9][0-9][0-9]); \ 25 done 26 27 # remove all files which windows is likely to have created, in addition 28 # to transient build-related files: 29 # * .opt workspace option file 30 # * (probably automatic) updates to the .dsp and .dsw files, 31 # which should be identical to the auto-generated versions when 32 # clean. 33 34 distclean cleandir: clean winfiles 35 rm -f hpcmips_stand.opt 36