summaryrefslogtreecommitdiff
path: root/font_service/Makefile.nodeflib
blob: 209bd5a1aef94550a2d6afd72fa7bb9c339262a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
#################################################################
## This Makefile Exported by MinGW Developer Studio
## Copyright (c) 2002-2004 by Parinya Thipchart
#################################################################

ifneq (,$(findstring Release, $(CFG)))
  override CFG = Release
else
  override CFG = Debug
endif

PROJECT = FontService
CC = "C:\msys\bin\g++.exe"

WINDRES = "$(COMPILER_BIN)windres.exe"
ifeq ($(CFG),Debug)
  OBJ_DIR = Debug
  OUTPUT_DIR = Debug
  TARGET = FontService.dll
  C_INCLUDE_DIRS = -I"../../../../../../../msys/include" -I"../../../../../../../msys/local/include" -I"../../../../../../../msys/local/include" -I"../../../../../../../msys/local/include" 
  C_PREPROC = -DUNICODE -D_UNICODE -DFONTSERVICE_EXPORTS -DMICROSOFT_LAYER_FOR_UNICODE=1 
  CFLAGS = -pipe  -Wall -g2 -O0 -frtti -fexceptions 
  RC_INCLUDE_DIRS = 
  RC_PREPROC = 
  RCFLAGS = 
  LIB_DIRS = -L"../../../../../../../msys/lib" -L"../../../../../../../msys/local/lib" -L"../../../../../../../msys/local/lib" 
  LIBS = -lunicows -lgdi32 
  LDFLAGS = -pipe -shared -Wl,--output-def,"$(OBJ_DIR)\FontService.def",--out-implib,"$(OBJ_DIR)\libFontService.dll.a" 
endif

ifeq ($(CFG),Release)
  OBJ_DIR = Release
  OUTPUT_DIR = Release
  TARGET = FontService.dll
  C_INCLUDE_DIRS = -I"../../../../../../../msys/include" -I"../../../../../../../msys/local/include" -I"../../../../../../../msys/local/include" -I"../../../../../../../msys/local/include" 
  C_PREPROC = -DUNICODE -D_UNICODE -DFONTSERVICE_EXPORTS -DMICROSOFT_LAYER_FOR_UNICODE=1 
  CFLAGS = -pipe  -Wall -g0 -O2 -frtti -fexceptions 
  RC_INCLUDE_DIRS = 
  RC_PREPROC = 
  RCFLAGS = 
  LIB_DIRS = -L"../../../../../../../msys/lib" -L"../../../../../../../msys/local/lib" -L"../../../../../../../msys/local/lib" 
  LIBS = -lunicows -lgdi32 
  LDFLAGS = -pipe -shared -Wl,--output-def,"$(OBJ_DIR)\FontService.def",--out-implib,"$(OBJ_DIR)\libFontService.dll.a" -nodefaultlibs -s -L"../../../../../../../msys/lib" -L"../../../../../../../msys/local/lib"
endif

ifeq ($(OS),Windows_NT)
  NULL =
else
  NULL = nul
endif

SRC_OBJS = \
  $(OBJ_DIR)/FontService.o	\
  $(OBJ_DIR)/StdAfx.o	\
  $(OBJ_DIR)/module_fonts.o	\
  $(OBJ_DIR)/options.o	\
  $(OBJ_DIR)/services.o

RSRC_OBJS = \
  $(OBJ_DIR)/resource.res

define build_target
@echo Linking...
@$(CC) -o "$(OUTPUT_DIR)\$(TARGET)" $(SRC_OBJS) $(RSRC_OBJS) $(LIB_DIRS) $(LIBS) $(LDFLAGS)
endef

define compile_resource
@echo Compiling $<
@$(WINDRES) $(RCFLAGS) $(RC_PREPROC) $(RC_INCLUDE_DIRS) -O COFF -i "$<" -o "$@"
endef

define compile_source
@echo Compiling $<
@$(CC) $(CFLAGS) $(C_PREPROC) $(C_INCLUDE_DIRS) -c "$<" -o "$@"
endef

.PHONY: print_header directories

$(TARGET): print_header directories $(RSRC_OBJS) $(SRC_OBJS)
	$(build_target)

.PHONY: clean cleanall

cleanall:
	@echo Deleting intermediate files for 'FontService - $(CFG)'
	-@del $(OBJ_DIR)\*.o
	-@del $(OBJ_DIR)\*.res
	-@del "$(OUTPUT_DIR)\$(TARGET)"
	-@del "$(OBJ_DIR)\$(PROJECT).def"
	-@del "$(OBJ_DIR)\lib$(PROJECT).dll.a"
	-@rmdir "$(OUTPUT_DIR)"

clean:
	@echo Deleting intermediate files for 'FontService - $(CFG)'
	-@del $(OBJ_DIR)\*.o
	-@del $(OBJ_DIR)\*.res

print_header:
	@echo ----------Configuration: FontService - $(CFG)----------

directories:
	-@if not exist "$(OUTPUT_DIR)\$(NULL)" mkdir "$(OUTPUT_DIR)"
	-@if not exist "$(OBJ_DIR)\$(NULL)" mkdir "$(OBJ_DIR)"

$(OBJ_DIR)/resource.res: resource.rc	\
resource.h
	$(compile_resource)

$(OBJ_DIR)/FontService.o: FontService.cpp	\
StdAfx.h	\
resource.h	\
../../include/win2k.h	\
../../include/newpluginapi.h	\
../../include/m_langpack.h	\
../../include/m_database.h	\
../../include/m_system.h	\
../../include/m_options.h	\
../../include/m_utils.h	\
../../include/m_clui.h	\
../../include/m_clc.h	\
../chat/m_chat.h	\
FontService.h	\
services.h	\
m_fontservice.h	\
m_fontservicew.h	\
options.h	\
module_fonts.h
	$(compile_source)

$(OBJ_DIR)/StdAfx.o: StdAfx.cpp	\
StdAfx.h	\
resource.h	\
../../include/win2k.h	\
../../include/newpluginapi.h	\
../../include/m_langpack.h	\
../../include/m_database.h	\
../../include/m_system.h	\
../../include/m_options.h	\
../../include/m_utils.h	\
../../include/m_clui.h	\
../../include/m_clc.h	\
../chat/m_chat.h
	$(compile_source)

$(OBJ_DIR)/module_fonts.o: module_fonts.cpp	\
StdAfx.h	\
resource.h	\
../../include/win2k.h	\
../../include/newpluginapi.h	\
../../include/m_langpack.h	\
../../include/m_database.h	\
../../include/m_system.h	\
../../include/m_options.h	\
../../include/m_utils.h	\
../../include/m_clui.h	\
../../include/m_clc.h	\
../chat/m_chat.h	\
module_fonts.h	\
m_fontservice.h
	$(compile_source)

$(OBJ_DIR)/options.o: options.cpp	\
StdAfx.h	\
resource.h	\
../../include/win2k.h	\
../../include/newpluginapi.h	\
../../include/m_langpack.h	\
../../include/m_database.h	\
../../include/m_system.h	\
../../include/m_options.h	\
../../include/m_utils.h	\
../../include/m_clui.h	\
../../include/m_clc.h	\
../chat/m_chat.h	\
services.h	\
m_fontservice.h	\
m_fontservicew.h
	$(compile_source)

$(OBJ_DIR)/services.o: services.cpp	\
StdAfx.h	\
resource.h	\
../../include/win2k.h	\
../../include/newpluginapi.h	\
../../include/m_langpack.h	\
../../include/m_database.h	\
../../include/m_system.h	\
../../include/m_options.h	\
../../include/m_utils.h	\
../../include/m_clui.h	\
../../include/m_clc.h	\
../chat/m_chat.h	\
services.h	\
m_fontservice.h	\
m_fontservicew.h
	$(compile_source)