home *** CD-ROM | disk | FTP | other *** search
Makefile | 1997-09-09 | 2.1 KB | 87 lines |
- #
- # Makefile for building Win32 samples
- #
-
- !if !defined( build )
- default :
- @echo You must specify a debug or release build. Do so with
- @echo.
- @echo make build=debug
- @echo or
- @echo make build=release
- @echo.
- @echo This will build all the samples except for the jni1
- @echo and jni2 directories which requires either a Microsoft VC
- @echo or a Symantec SC compiler to build.
- @echo.
- @echo If you have the proper C/C++ compiler and wanted to
- @echo build all samples including the jni samples, do so with
- @echo.
- @echo make build=debug all
- @echo or
- @echo make build=release all
- @echo.
- @echo Also, take note that if you are using Microsoft's VC compiler,
- @echo you will need to use nmake instead of smake
- @echo.
- @echo You can delete compiler output with
- @echo.
- @echo make build=debug clean
- @echo or
- @echo make build=release clean
- @echo or
- @echo make build=debug cleanall
- @echo or
- @echo make build=release cleanall
- @echo.
- @echo You can rebuild everything with
- @echo.
- @echo make build=debug rebuild
- @echo or
- @echo make build=release rebuild
- @echo or
- @echo make build=debug rebuildall
- @echo or
- @echo make build=release rebuildall
-
- !else
-
- SUBDIRS1 = simple staticDLL dynamicDLL resource rmi1 rmi2
- SUBDIRS2 = conversion\step1 conversion\step2 conversion\step4 conversion\step5
- SUBDIRS3 = jni1 jni2
-
- default : $(SUBDIRS1) $(SUBDIRS2)
-
- $(SUBDIRS1) : FORCE
- cd $@
- $(MAKE) -nologo build=$(build) $(action)
- cd ..
-
- $(SUBDIRS2) : FORCE
- cd $@
- $(MAKE) -nologo build=$(build) $(action)
- cd ..\..
-
- $(SUBDIRS3) : FORCE
- cd $@
- $(MAKE) -nologo build=$(build) $(action)
- cd ..
-
- all : default $(SUBDIRS3)
-
- rebuild : clean default
-
- rebuildall : cleanall all
-
- clean :
- $(MAKE) -nologo build=$(build) action=clean
-
- cleanall :
- $(MAKE) -nologo build=$(build) action=clean all
-
- FORCE :
-
- !endif
-
-
-