~efargaspro/+junk/codeblocks-16.01-release

« back to all changes in this revision

Viewing changes to src/plugins/contrib/SpellChecker/wxspellchecker/tools/Makefile_linux

  • Committer: damienlmoore at gmail
  • Date: 2016-02-02 02:43:22 UTC
  • Revision ID: damienlmoore@gmail.com-20160202024322-yql5qmtbwdyamdwd
Code::BlocksĀ 16.01

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#################################################################
 
2
## This Makefile Exported by MinGW Developer Studio
 
3
## Copyright (c) 2002-2004 by Parinya Thipchart
 
4
#################################################################
 
5
 
 
6
ifneq (,$(findstring Release, $(CFG)))
 
7
  override CFG = Release
 
8
else
 
9
  override CFG = Debug
 
10
endif
 
11
 
 
12
PROJECT = DownloadDictionaries
 
13
CC = g++
 
14
 
 
15
ifeq ($(CFG),Debug)
 
16
  OBJ_DIR = Debug
 
17
  OUTPUT_DIR = ../bin
 
18
  TARGET = DownloadDictionariesD
 
19
  C_INCLUDE_DIRS = -I"../include" 
 
20
  C_PREPROC = 
 
21
  CFLAGS = -pipe `wx-config --cxxflags` -Wall -g2 -O0 -fno-rtti -fno-exceptions 
 
22
  LIB_DIRS = 
 
23
  LIBS = 
 
24
  LDFLAGS = -pipe ./lib_bzipstreamd.a ../lib/libwx_spellcheckd.a `wx-config --libs`
 
25
endif
 
26
 
 
27
ifeq ($(CFG),Release)
 
28
  OBJ_DIR = Release
 
29
  OUTPUT_DIR = ../bin
 
30
  TARGET = DownloadDictionaries
 
31
  C_INCLUDE_DIRS = -I"../include" 
 
32
  C_PREPROC = 
 
33
  CFLAGS = -pipe `wx-config --cxxflags` -Wall -g0 -O2 -fno-rtti -fno-exceptions 
 
34
  LIB_DIRS = 
 
35
  LIBS = 
 
36
  LDFLAGS = -pipe -s ./lib_bzipstream.a ../lib/libwx_spellcheck.a `wx-config --libs`
 
37
endif
 
38
 
 
39
SRC_OBJS = \
 
40
  $(OBJ_DIR)/DictionaryWizard.o \
 
41
  $(OBJ_DIR)/wizard.o   \
 
42
  $(OBJ_DIR)/AspellDictionaryDownloader.o
 
43
 
 
44
define build_target
 
45
@echo Linking...
 
46
@$(CC) -o "$(OUTPUT_DIR)/$(TARGET)" $(SRC_OBJS) $(LIB_DIRS) $(LIBS) $(LDFLAGS)
 
47
endef
 
48
 
 
49
define compile_source
 
50
@echo Compiling $<
 
51
@$(CC) $(CFLAGS) $(C_PREPROC) $(C_INCLUDE_DIRS) -c "$<" -o "$@"
 
52
endef
 
53
 
 
54
.PHONY: print_header directories
 
55
 
 
56
$(TARGET): print_header directories $(SRC_OBJS)
 
57
        $(build_target)
 
58
 
 
59
.PHONY: clean cleanall
 
60
 
 
61
cleanall:
 
62
        @echo Deleting intermediate files for 'DownloadDictionaries - $(CFG)'
 
63
        -@rm -rf "$(OBJ_DIR)"
 
64
        -@rm -rf "$(OUTPUT_DIR)/$(TARGET)"
 
65
        -@rmdir "$(OUTPUT_DIR)"
 
66
 
 
67
clean:
 
68
        @echo Deleting intermediate files for 'DownloadDictionaries - $(CFG)'
 
69
        -@rm -rf $(OBJ_DIR)
 
70
 
 
71
print_header:
 
72
        @echo ----------Configuration: DownloadDictionaries - $(CFG)----------
 
73
 
 
74
directories:
 
75
        -@if [ ! -d "$(OUTPUT_DIR)" ]; then mkdir "$(OUTPUT_DIR)"; fi
 
76
        -@if [ ! -d "$(OBJ_DIR)" ]; then mkdir "$(OBJ_DIR)"; fi
 
77
 
 
78
$(OBJ_DIR)/DictionaryWizard.o: DictionaryWizard.cpp     \
 
79
DictionaryWizard.h      \
 
80
EngineDictionaryDownloader.h    \
 
81
wiztest.xpm
 
82
        $(compile_source)
 
83
 
 
84
$(OBJ_DIR)/wizard.o: wizard.cpp \
 
85
AspellDictionaryDownloader.h    \
 
86
EngineDictionaryDownloader.h    \
 
87
DictionaryWizard.h
 
88
        $(compile_source)
 
89
 
 
90
$(OBJ_DIR)/AspellDictionaryDownloader.o: AspellDictionaryDownloader.cpp \
 
91
AspellDictionaryDownloader.h    \
 
92
EngineDictionaryDownloader.h    \
 
93
bzipstream/bzipstream.h
 
94
        $(compile_source)
 
95
 
 
96
 
 
97