mirror of https://github.com/odrling/Aegisub
Add Objective-C++ support to the makefile
Originally committed to SVN as r6877.
This commit is contained in:
parent
dc5d6c9a4a
commit
ae672b64af
|
@ -140,6 +140,8 @@ reporter: src
|
|||
|
||||
$(OBJ): $(GLOBAL_DEPS)
|
||||
|
||||
OBJCXXFLAGS := $(CXXFLAGS)
|
||||
|
||||
####################
|
||||
# PRECOMPILED HEADER
|
||||
####################
|
||||
|
@ -169,7 +171,7 @@ endif
|
|||
# TRANSFORM RULES
|
||||
##################
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .o .c .cpp .cxx
|
||||
.SUFFIXES: .o .c .cpp .cxx .mm
|
||||
|
||||
%.o: %.c
|
||||
$(CXX_ENV) $(BIN_CC) $(CFLAGS_DEP) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
|
||||
|
@ -180,6 +182,9 @@ endif
|
|||
%.o: %.cxx
|
||||
$(CXX_ENV) $(BIN_CXX) $(CFLAGS_DEP) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
|
||||
|
||||
%.o: %.mm
|
||||
$(CXX_ENV) $(BIN_CXX) $(CFLAGS_DEP) $(CPPFLAGS) $(OBJCXXFLAGS) -c -o $@ $<
|
||||
|
||||
$(PRECOMPILED_HEADER_NAME).gch: $(PRECOMPILED_HEADER_NAME)
|
||||
$(CXX_ENV) $(BIN_CXX) $(CPPFLAGS) $(CXXFLAGS) -x c++-header $<
|
||||
|
||||
|
|
Loading…
Reference in New Issue