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