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