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