Makefile revision 1.6
11.6Stakemura# $NetBSD: Makefile,v 1.6 2001/05/05 08:26:11 takemura Exp $ 21.1Scgd# 31.1Scgd# Makefile to generate windows VC++ project and workspace files from 41.1Scgd# config files and templates 51.1Scgd 61.4StakemuraPROJECT_DIRS=libsa pbsdboot libz 71.1Scgd 81.6Stakemuraall: winfiles optfiles 91.6Stakemura 101.1Scgdwinfiles: 111.5Stakemura for name in $(PROJECT_DIRS); do \ 121.5Stakemura sh dspgen/config.sh vc6 $$name; \ 131.5Stakemura sh dspgen/config.sh evc3 $$name; \ 141.1Scgd done 151.5Stakemura sh dspgen/gen_workspace.sh vc6 hpcmips_stand.dsw $(PROJECT_DIRS) 161.5Stakemura sh dspgen/gen_workspace.sh evc3 hpcmips_stand.vcw $(PROJECT_DIRS) 171.2Scgd 181.6Stakemuraoptfiles: 191.6Stakemura echo "/* option \`SPEC_PLATFORM' not defined */" \ 201.6Stakemura > pbsdboot/opt_spec_platform.h 211.6Stakemura 221.2Scgd# remote transient build-related files globally and for each project: 231.2Scgd# * global 'class view' information (.ncb) 241.2Scgd# * Debug and Release compile dirs, 251.2Scgd# * .plg files (build logs), and 261.2Scgd# * .[0-9][0-9][0-9] files (old versions of auto-converted .dsp files). 271.2Scgd 281.2Scgdclean: 291.2Scgd rm -f hpcmips_stand.ncb 301.2Scgd for dir in $(PROJECT_DIRS); do \ 311.3Stakemura (cd $$dir && rm -rf WMIPSDbg wmipsdbg WMIPSRel wmipsrel); \ 321.5Stakemura (cd $$dir && rm -f $$dir.plg $$dir.vcl $$dir.[0-9][0-9][0-9]); \ 331.5Stakemura (cd $$dir && rm -f $$dir.ncb $$dir.opt); \ 341.2Scgd done 351.6Stakemura rm -f pbsdboot/opt_spec_platform.h 361.2Scgd 371.2Scgd# remove all files which windows is likely to have created, in addition 381.2Scgd# to transient build-related files: 391.2Scgd# * .opt workspace option file 401.2Scgd# * (probably automatic) updates to the .dsp and .dsw files, 411.2Scgd# which should be identical to the auto-generated versions when 421.2Scgd# clean. 431.2Scgd 441.2Scgddistclean cleandir: clean winfiles 451.2Scgd rm -f hpcmips_stand.opt 461.5Stakemura rm -f hpcmips_stand.vcw 471.5Stakemura rm -f hpcmips_stand.vco 481.5Stakemura rm -f hpcmips_stand.vcb 491.5Stakemura for dir in $(PROJECT_DIRS); do \ 501.5Stakemura (cd $$dir && rm -f $$dir.vcp); \ 511.5Stakemura done 52