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