Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi guys,

I can generate a .lib and include it /w my BREW project and it works just dandy in BREW Emulator

I'd like to make an object library so that I can do the same when I compile it in ARM ads 1.2 for brew.

How may I go about this? Should I use a make file and compile the library using ARMcc/Tcc and then take the .o file and stuff it into my BREW project??

Thanks

1) use armar.exe "command_line params"
2) update section in file: example_make_common.min
#----------------------------------------------------------------------------
# Shared object targets
#----------------------------------------------------------------------------
$(TARGET).$(MODULE) : $(TARGET).$(EXETYPE)
$(TARGET).$(EXETYPE) : $(APP_OBJS)
@echo ======================================= @echo Making library file: $(TARGET_LIB) ...
@echo Making library file: $(TARGETDIR)/$(TARGET_LIB) ...
@echo ... from files: $(APP_OBJS)
# @armar -c -create $(TARGET_LIB) $(APP_OBJS)
@armar -c -create $(TARGETDIR)/$(TARGET_LIB) $(APP_OBJS)
# @mkdir -p $(TARGET_PATH_LIBRARY)
# @cp $(TARGET_LIB) $(TARGET_PATH_LIBRARY)/$(TARGET_LIB)
@cp $(TARGETDIR)/$(TARGET_LIB) $(TARGET_PATH_LIBRARY)/$(TARGET_LIB)
@echo $(BUILD) $(TARGET_LIB) library build completed!!!
@echo ========================================

1) use armar.exe "command_line params"
2) update section in file: example_make_common.min
#----------------------------------------------------------------------------
# Shared object targets
#----------------------------------------------------------------------------
$(TARGET).$(MODULE) : $(TARGET).$(EXETYPE)
$(TARGET).$(EXETYPE) : $(APP_OBJS)
@echo ======================================= @echo Making library file: $(TARGET_LIB) ...
@echo Making library file: $(TARGETDIR)/$(TARGET_LIB) ...
@echo ... from files: $(APP_OBJS)
# @armar -c -create $(TARGET_LIB) $(APP_OBJS)
@armar -c -create $(TARGETDIR)/$(TARGET_LIB) $(APP_OBJS)
# @mkdir -p $(TARGET_PATH_LIBRARY)
# @cp $(TARGET_LIB) $(TARGET_PATH_LIBRARY)/$(TARGET_LIB)
@cp $(TARGETDIR)/$(TARGET_LIB) $(TARGET_PATH_LIBRARY)/$(TARGET_LIB)
@echo $(BUILD) $(TARGET_LIB) library build completed!!!
@echo ========================================