On May 9, 2005, at 11:56 PM, Lloyd Dupont wrote:

I have a simple GNUmakefile like that:
#=====================================
include $(GNUSTEP_MAKEFILES)/common.make

TOOL_NAME� = NMReadWrite

ADDITIONAL_OBJCFLAGS += -Wno-import -g -ggdb
ADDITIONAL_LIB_DIRS += -Llibrary
ADDITIONAL_OBJC_LIBS += -lxml2 -larchive1 -lgnustep-gui
ADDITIONAL_CFLAGS += -g -ggdb

# include� source files list
include codefiles.txt

include $(GNUSTEP_MAKEFILES)/tool.make
#=====================================

And now that my program compiles I would like to build, instead of 1 exe,:
2 files:
1 exe & 1 dll.
the exe being a simple sample program using the dll.

could I have 1 make file for both?
or should I have 2 makefile? and how to pass library dependency?....



Yes. Add

ADDTIONAL_LIB_DIRS += -L$(GNUSTEP_OBJ_DIR)
NSReadWrite_TOOL_LIBS += -lmylib



_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to