[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
funtions in rule ?
From: |
Mirko Viviani |
Subject: |
funtions in rule ? |
Date: |
Wed, 11 Oct 2000 22:29:54 z (???) |
Ciao.
# gmake --version
GNU Make version 3.78.1, by Richard Stallman and Roland McGrath.
Built for i386--freebsd3.4
In this rule I need to use patsubst and filter but I'm not able to get it
working.
I've found nothing in the make.info about using function inside a rule
so I don't know if there is a way to get it working or if I'm wrong.
$(DUMMY_FRAMEWORK_FILE): $(DERIVED_SOURCES) $(C_OBJ_FILES) $(OBJC_OBJ_FILES)
$(SUBPROJECT_OBJ_FILES) $(OBJ_FILES) GNUmakefile
if [ "$(OBJC_OBJ_FILES)" != "" ]; then objcfiles="$(OBJC_OBJ_FILES)"; \
fi; \
if [ "$(SUBPROJECT_OBJ_FILES)" != "" ]; then objcfiles="$$objcfiles
$(SUBPROJECT_OBJ_FILES)"; \
fi; \
if [ "$$objcfiles" = "" ]; then objcfiles="__dummy__"; \
fi;\
if [ "$$objcfiles" != "__dummy__" ]; then \
for f in $$objcfiles; do \
sym=`nm -Pg $$f`; \
sym=$(patsubst __objc_class_name_%,%,$$sym); \
echo $$sym; \
done; \
fi;
This is the output of the $$sym and the __objc_class_name prefix is still
there:
NSLog U NSZeroPoint C 00000008 NSZeroRect C 00000010 NSZeroSize C 00000008
_GLOBAL_$I$ConfigurationNormalizer.m9aOgYa T 00000858 _GLOBAL_OFFSET_TABLE_ U
__objc_class_name_ConfigurationNormalizer R 00000044
__objc_class_name_NSDictionary U __objc_class_name_NSMutableDictionary U
__objc_class_name_NSObject U __objc_class_name_NSString U
__objc_class_name_NXConstantString U __objc_exec_class U objc_get_class U
objc_msg_lookup U objc_msg_lookup_super U
How (if there is a way) to get it working ?
Thanks in advance.
--
Bye,
Mirko
- funtions in rule ?,
Mirko Viviani <=