Makefile revision 1.7
11.7Sshin# $NetBSD: Makefile,v 1.7 2001/12/23 13:28:23 shin 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.7Sshinall: winfiles optfiles rom-boot 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.7Sshinrom-boot: 291.7Sshin (cd romboot; make) 301.7Sshin 311.2Scgdclean: 321.2Scgd rm -f hpcmips_stand.ncb 331.2Scgd for dir in $(PROJECT_DIRS); do \ 341.3Stakemura (cd $$dir && rm -rf WMIPSDbg wmipsdbg WMIPSRel wmipsrel); \ 351.5Stakemura (cd $$dir && rm -f $$dir.plg $$dir.vcl $$dir.[0-9][0-9][0-9]); \ 361.5Stakemura (cd $$dir && rm -f $$dir.ncb $$dir.opt); \ 371.2Scgd done 381.6Stakemura rm -f pbsdboot/opt_spec_platform.h 391.7Sshin (cd romboot; make clean) 401.2Scgd 411.2Scgd# remove all files which windows is likely to have created, in addition 421.2Scgd# to transient build-related files: 431.2Scgd# * .opt workspace option file 441.2Scgd# * (probably automatic) updates to the .dsp and .dsw files, 451.2Scgd# which should be identical to the auto-generated versions when 461.2Scgd# clean. 471.2Scgd 481.2Scgddistclean cleandir: clean winfiles 491.2Scgd rm -f hpcmips_stand.opt 501.5Stakemura rm -f hpcmips_stand.vcw 511.5Stakemura rm -f hpcmips_stand.vco 521.5Stakemura rm -f hpcmips_stand.vcb 531.5Stakemura for dir in $(PROJECT_DIRS); do \ 541.5Stakemura (cd $$dir && rm -f $$dir.vcp); \ 551.5Stakemura done 56