1# $NetBSD: Makefile,v 1.7 2001/12/23 13:28:23 shin 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 rom-boot 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 28rom-boot: 29 (cd romboot; make) 30 31clean: 32 rm -f hpcmips_stand.ncb 33 for dir in $(PROJECT_DIRS); do \ 34 (cd $$dir && rm -rf WMIPSDbg wmipsdbg WMIPSRel wmipsrel); \ 35 (cd $$dir && rm -f $$dir.plg $$dir.vcl $$dir.[0-9][0-9][0-9]); \ 36 (cd $$dir && rm -f $$dir.ncb $$dir.opt); \ 37 done 38 rm -f pbsdboot/opt_spec_platform.h 39 (cd romboot; make clean) 40 41# remove all files which windows is likely to have created, in addition 42# to transient build-related files: 43# * .opt workspace option file 44# * (probably automatic) updates to the .dsp and .dsw files, 45# which should be identical to the auto-generated versions when 46# clean. 47 48distclean cleandir: clean winfiles 49 rm -f hpcmips_stand.opt 50 rm -f hpcmips_stand.vcw 51 rm -f hpcmips_stand.vco 52 rm -f hpcmips_stand.vcb 53 for dir in $(PROJECT_DIRS); do \ 54 (cd $$dir && rm -f $$dir.vcp); \ 55 done 56