XCOMM XCOMM #ifdef NEED_DEFINE_LIB #define DoNormalLib YES #define DoSharedLib YES #define DoDebugLib NO #define DoProfileLib NO #endif #include #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)' JLIBDEFINES = -DWRITE_CHECK $(MTDEFINES) INCLUDES = -I$(WNNINCLUDESRC) -I$(TOP) DEFINES = $(WNNDEFINES) $(ALLLANGDEF) $(JLIBDEFINES) INSTALLFLAGS = $(INSTBINFLAGS) LINTLIBS = SRC1= js.c \ wnnerrmsg.c \ jl.c OBJ1= js.o \ wnnerrmsg.o \ jl.o SRC3= $(WNNETCSRC)/msg.c OBJ3= msg.o SRC7= $(WNNETCSRC)/strings.c OBJ7= strings.o LOCAL_RKSRCS= $(WNNROMKANSRC)/rk_bltinfn.c \ $(WNNROMKANSRC)/rk_main.c \ $(WNNROMKANSRC)/rk_modread.c \ $(WNNROMKANSRC)/rk_read.c \ $(WNNROMKANSRC)/rk_vars.c \ $(WNNROMKANSRC)/rk_multi.c LOCAL_RKOBJS= $(WNNROMKANSRC)/rk_bltinfn.o \ $(WNNROMKANSRC)/rk_main.o \ $(WNNROMKANSRC)/rk_modread.o \ $(WNNROMKANSRC)/rk_read.o \ $(WNNROMKANSRC)/rk_vars.o \ $(WNNROMKANSRC)/rk_multi.o UNSHARED_LOCAL_RKOBJS= $(WNNROMKANSRC)/unshared/rk_bltinfn.o \ $(WNNROMKANSRC)/unshared/rk_main.o \ $(WNNROMKANSRC)/unshared/rk_modread.o \ $(WNNROMKANSRC)/unshared/rk_read.o \ $(WNNROMKANSRC)/unshared/rk_vars.o \ $(WNNROMKANSRC)/unshared/rk_multi.o LOCAL_ETCSRCS = $(SRC3) $(SRC4) $(SRC7) LOCAL_ETCOBJS = $(OBJ3) $(OBJ4) $(OBJ7) SRCS= $(SRC1) $(LOCAL_ETCSRCS) OBJS= $(OBJ1) $(LOCAL_ETCOBJS) $(LOCAL_RKOBJS) UNSHAREDOBJS= $(OBJ1) $(LOCAL_ETCOBJS) $(UNSHARED_LOCAL_RKOBJS) SOWNN7LIBREV=1.0 LibraryObjectRule() #if DoSharedLib AllTarget($(OBJS) libwnn7.a libwnn7.so.$(SOWNN7LIBREV)) #else AllTarget($(OBJS) libwnn7.a) #endif js.o : js.c \ $(WNNETCSRC)/bdic.c \ $(WNNETCSRC)/pwd.c \ $(WNNETCSRC)/gethinsi.c SingleProgramTarget(kankana,kankana.o,$(WNNJLIB),) #if DoSharedLib SharedLibraryTarget(wnn7,$(SOWNN7LIBREV),$(OBJS),.,.) #endif UnsharedLibraryTarget(wnn7,$(UNSHAREDOBJS),unshared,..) LintLibraryTarget(wnn7,$(SRCS)) instlib:: install #if DoSharedLib InstallSharedLibrary(wnn7,$(SOWNN7LIBREV),$(WNNLIBDIR)) #endif InstallLibrary(wnn7,$(WNNLIBDIR)) #if ProfileLibJlib ProfiledLibraryTarget(wnn7,$(OBJS)) InstallLibrary(wnn7_p,$(WNNLIBDIR)) #endif #if DoSharedLib Wnn7SpecialObjectRule($(OBJ3),$(SRC3),$(WNNETCSRC),) Wnn7SpecialObjectRule($(OBJ4),$(SRC4),$(WNNETCSRC),) Wnn7SpecialObjectRule($(OBJ7),$(SRC7),$(WNNETCSRC),) #else WnnSpecialObjectRule($(OBJ3),$(SRC3),$(WNNETCSRC),) WnnSpecialObjectRule($(OBJ4),$(SRC4),$(WNNETCSRC),) WnnSpecialObjectRule($(OBJ7),$(SRC7),$(WNNETCSRC),) #endif $(LOCAL_RKOBJS) : $(LOCAL_RKSRCS) @case '${MFLAGS}' in *[ik]*) set +e;; esac; \ cd $(WNNROMKANSRC); echo "making all in $(WNNROMKANSRC)"; \ $(MAKE) 'CDEBUGFLAGS=$(CDEBUGFLAGS)' $(MFLAGS) DependTarget()