diff options
| author | nyamatongwe <devnull@localhost> | 2010-07-13 21:28:02 +1000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2010-07-13 21:28:02 +1000 |
| commit | 653eedecf2404f9022a65e2cc25eead25ada6d47 (patch) | |
| tree | 9c195c618f904f0e5ab2f89cbac016f545cde54d /cocoa/common.mk | |
| parent | 4ea048157c847492fe01be84eccb138fce839c34 (diff) | |
| download | scintilla-mirror-653eedecf2404f9022a65e2cc25eead25ada6d47.tar.gz | |
Build files that reflect the new lexer directories and added files.
Diffstat (limited to 'cocoa/common.mk')
| -rw-r--r-- | cocoa/common.mk | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/cocoa/common.mk b/cocoa/common.mk new file mode 100644 index 000000000..beb3b0f46 --- /dev/null +++ b/cocoa/common.mk @@ -0,0 +1,57 @@ +### shared variables and targets between Framework.mk and SciTest.mk ### + +# build directories +BLD=build +APP_BLD=$(BLD)/Application +FRM_BLD=$(BLD)/Framework + +ifdef DBG +CFLAGS=-g -O0 +else +CFLAGS=-Os +endif + +# compiler and compiler options +ARCH=-arch i386 $(CFLAGS) +CC=gcc -x c++ $(ARCH) +CO=gcc -x objective-c++ $(ARCH) +CCX=$(CC) $(gDEFs) $(INCS) +CCO=$(CO) $(gDEFs) $(INCS) + +# include directories and global #define +gDEFs=-DSCI_NAMESPACE -DSCI_LEXER + +# source directories +SRC_DIRS=../src ./ScintillaFramework ./ScintillaTest ./ \ + ../lexers ../lexlib + +INC_DIRS=$(SRC_DIRS) ../include + +INCS=$(addprefix -I,$(INC_DIRS)) + +vpath %.m $(SRC_DIRS) +vpath %.mm $(SRC_DIRS) +vpath %.cpp $(SRC_DIRS) +vpath %.cxx $(SRC_DIRS) +vpath %.c $(SRC_DIRS) +vpath %.h $(INC_DIRS) + +# clean everything +clean: + -rm -rf $(BLD) + +# build application objective-c++ files +$(APP_BLD)/%.o : %.mm + $(CCO) -c $< -o $@ + +# build application objective-c files +$(APP_BLD)/%.o : %.m + $(CCO) -c $< -o $@ + +# build framework c++ files +$(FRM_BLD)/%.o : %.cxx + $(CCX) -c $< -o $@ + +# build framework objective-c++ files +$(FRM_BLD)/%.o : %.mm + $(CCO) -c $< -o $@
\ No newline at end of file |
