Status

RESOLVED FIXED
17 years ago
14 years ago

People

(Reporter: mikepinkerton, Assigned: netscape)

Tracking

Trunk
PowerPC
Mac OS X

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

17 years ago
patch to enable rules.mk to build obj-c++ files (.mm).

Index: rules.mk
===================================================================
RCS file: /cvsroot/mozilla/config/rules.mk,v
retrieving revision 3.309
diff -r3.309 rules.mk
200a201
>       $(CMMSRCS:.mm=.$(OBJ_SUFFIX)) \
942a944,948
> 
> $(OBJ_PREFIX)%.$(OBJ_SUFFIX): %.mm Makefile.in
>       $(REPORT_BUILD)
>       @$(MAKE_DEPS_AUTO)
>       $(ELOG) $(CCC) -o $@ -c $(COMPILE_CXXFLAGS) $<
Argh, use diff -u !!!! ;)

If leaf buys into using CMMSRCS for those .mm files, then r=cls .  
(Reporter)

Comment 2

17 years ago
diff -u per request

Index: rules.mk
===================================================================
RCS file: /cvsroot/mozilla/config/rules.mk,v
retrieving revision 3.309
diff -u -2 -r3.309 rules.mk
--- rules.mk    2001/10/27 07:37:38     3.309
+++ rules.mk    2001/10/30 21:56:17
@@ -199,4 +199,5 @@
        $(CSRCS:.c=.$(OBJ_SUFFIX)) \
        $(CPPSRCS:.cpp=.$(OBJ_SUFFIX)) \
+       $(CMMSRCS:.mm=.$(OBJ_SUFFIX)) \
        $(ASFILES:.$(ASM_SUFFIX)=.$(OBJ_SUFFIX))
 OBJS   = $(strip $(addprefix $(OBJ_PREFIX),$(_OBJS)))
@@ -941,4 +942,9 @@
 endif
 endif #STRICT_CPLUSPLUS_SUFFIX
+
+$(OBJ_PREFIX)%.$(OBJ_SUFFIX): %.mm Makefile.in
+       $(REPORT_BUILD)
+       @$(MAKE_DEPS_AUTO)
+       $(ELOG) $(CCC) -o $@ -c $(COMPILE_CXXFLAGS) $<
 
 %.i: %.cpp

Comment 3

17 years ago
i'll buy it, but only because i have a weakness for the mac.
Patch has been checked in.
Status: NEW → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → FIXED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.