forked from ericstoneking/42
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·433 lines (338 loc) · 14.9 KB
/
Makefile
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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
########################## Macro Definitions ############################
# Let's try to auto-detect what platform we're on.
# If this fails, set 42PLATFORM manually in the else block.
AUTOPLATFORM = Failed
ifeq ($(MSYSTEM),MINGW32)
AUTOPLATFORM = Succeeded
42PLATFORM = __MSYS__
endif
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
AUTOPLATFORM = Succeeded
42PLATFORM = __linux__
endif
ifeq ($(UNAME_S),Darwin)
AUTOPLATFORM = Succeeded
42PLATFORM = __APPLE__
endif
ifeq ($(AUTOPLATFORM),Failed)
# Autodetect failed. Set platform manually.
#42PLATFORM = __APPLE__
#42PLATFORM = __linux__
42PLATFORM = __MSYS__
endif
#GUIFLAG = -D _ENABLE_GUI_
GUIFLAG =
#SHADERFLAG = -D _USE_SHADERS_
SHADERFLAG =
CFDFLAG =
#CFDFLAG = -D _ENABLE_CFD_SLOSH_
FFTBFLAG =
#FFTBFLAG = -D _ENABLE_FFTB_CODE_
GSFCFLAG =
#GSFCFLAG = -D _USE_GSFC_WATERMARK_
STANDALONEFLAG =
#STANDALONEFLAG = -D _AC_STANDALONE_
GMSECFLAG =
#GMSECFLAG = -D _ENABLE_GMSEC_
RBTFLAG =
#RBTFLAG = -D _ENABLE_RBT_
DEFAULT_CASE_PATH =
#DEFAULT_CASE_PATH = -D _DEFAULT_CASE_PATH_=./InOut
DEFAULT_MODEL_PATH =
#DEFAULT_MODEL_PATH = -D _DEFAULT_MODEL_PATH_=./Model
ifeq ($(strip $(GMSECFLAG)),)
GMSECDIR =
GMSECINC =
GMSECBIN =
GMSECLIB =
else
GMSECDIR = ~/GMSEC/
GMSECINC = -I $(GMSECDIR)include/
GMSECBIN = -L $(GMSECDIR)bin/
GMSECLIB = -lGMSECAPI
endif
# Basic directories
HOMEDIR = ./
PROJDIR = ./
KITDIR = $(PROJDIR)Kit/
OBJ = $(PROJDIR)Object/
INC = $(PROJDIR)Include/
SRC = $(PROJDIR)Source/
KITINC = $(KITDIR)Include/
KITSRC = $(KITDIR)Source/
INOUT = $(PROJDIR)InOut/
GSFCSRC = $(PROJDIR)/GSFC/Source/
IPCSRC = $(SRC)IPC/
ifeq ($(42PLATFORM),__APPLE__)
# Mac Macros
CINC = -I /usr/include -I /usr/local/include
EXTERNDIR =
# ARCHFLAG = -arch i386
# ARCHFLAG = -arch x86_64
ARCHFLAG = -arch arm64
# For graphics interface, choose GLUT or GLFW GUI libraries
# GLUT is well known, but GLFW is better for newer Mac's hires displays
# OSX fixed their hires GLUT issue. Keep GLFW around just in case.
#GLUT_OR_GLFW = _USE_GLFW_
GLUT_OR_GLFW = _USE_GLUT_
LFLAGS =
ifneq ($(strip $(GUIFLAG)),)
GLINC = -I /System/Library/Frameworks/OpenGL.framework/Headers/ -I /System/Library/Frameworks/GLUT.framework/Headers/
ifeq ($(strip $(GLUT_OR_GLFW)),_USE_GLUT_)
LIBS = -framework System -framework Carbon -framework OpenGL -framework GLUT
GUIOBJ = $(OBJ)42gl.o $(OBJ)42glut.o $(OBJ)glkit.o $(OBJ)42gpgpu.o
GUI_LIB = -D _USE_GLUT_
else
LIBS = -lglfw -framework System -framework Carbon -framework OpenGL -framework GLUT
GUIOBJ = $(OBJ)42gl.o $(OBJ)42glfw.o $(OBJ)glkit.o $(OBJ)42gpgpu.o
GUI_LIB = -D _USE_GLFW_
endif
else
GLINC =
LIBS =
GUIOBJ =
endif
XWARN =
EXENAME = 42
CC = gcc
endif
ifeq ($(42PLATFORM),__linux__)
# Linux Macros
CINC =
EXTERNDIR =
ARCHFLAG =
# For graphics interface, choose GLUT or GLFW GUI libraries
# GLUT is well known, but GLFW is better for newer Mac's hires displays
#GLUT_OR_GLFW = _USE_GLFW_
GLUT_OR_GLFW = _USE_GLUT_
ifneq ($(strip $(GUIFLAG)),)
ifeq ($(strip $(GLUT_OR_GLFW)),_USE_GLUT_)
GUIOBJ = $(OBJ)42gl.o $(OBJ)42glut.o $(OBJ)glkit.o $(OBJ)42gpgpu.o
LIBS = -lglut -lGLU -lGL -ldl -lm -lpthread
GLINC = -I /usr/include/GL/
LFLAGS = -L $(KITDIR)/GL/lib/
GUI_LIB = -D _USE_GLUT_
else
GUIOBJ = $(OBJ)42gl.o $(OBJ)42glfw.o $(OBJ)glkit.o $(OBJ)42gpgpu.o
LIBS = -lglfw -lglut -lGLU -lGL -ldl -lm -lpthread
GLINC = -I /usr/include/GL/ -I /usr/include/GLFW
GUI_LIB = -D _USE_GLFW_
endif
else
GUIOBJ =
GLINC =
LIBS = -ldl -lm -lpthread
LFLAGS =
endif
XWARN = -Wno-unused-variable -Wno-unused-but-set-variable -Wno-stringop-overread
EXENAME = 42
CC = gcc
endif
ifeq ($(42PLATFORM),__MSYS__)
CINC =
EXTERNDIR = /c/42ExternalSupport/
# For graphics interface, choose GLUT or GLFW GUI libraries
# GLUT is well known, but GLFW is better for newer Mac's hires displays
#GLUT_OR_GLFW = _USE_GLFW_
GLUT_OR_GLFW = _USE_GLUT_
ifneq ($(strip $(GUIFLAG)),)
# TODO: Option to use GLFW instead of GLUT?
GLEW = $(EXTERNDIR)GLEW/
GLUT = $(EXTERNDIR)freeglut/
LIBS = -lopengl32 -lglu32 -lfreeglut -lws2_32 -lglew32
LFLAGS = -L $(GLUT)lib/ -L $(GLEW)lib/
GUIOBJ = $(OBJ)42gl.o $(OBJ)42glut.o $(OBJ)glkit.o $(OBJ)42gpgpu.o
GLINC = -I $(GLEW)include/GL/ -I $(GLUT)include/GL/
ARCHFLAG = -D GLUT_NO_LIB_PRAGMA -D GLUT_NO_WARNING_DISABLE -D GLUT_DISABLE_ATEXIT_HACK
else
GUIOBJ =
GLINC =
LIBS = -lws2_32
LFLAGS =
ARCHFLAG =
endif
XWARN =
EXENAME = 42.exe
CC = gcc
endif
# If not using GUI, don't compile GUI-related files
ifeq ($(strip $(GUIFLAG)),)
GUIOBJ =
endif
# If not in FFTB, don't compile FFTB-related files
ifneq ($(strip $(FFTBFLAG)),)
FFTBOBJ = $(OBJ)42fftb.o
else
FFTBOBJ =
endif
ifneq ($(strip $(CFDFLAG)),)
SLOSHOBJ = $(OBJ)42CfdSlosh.o
else
SLOSHOBJ =
endif
# If not _AC_STANDALONE_, link AcApp.c in with the rest of 42
ifneq ($(strip $(STANDALONEFLAG)),)
ACOBJ =
else
ACOBJ = $(OBJ)AcApp.o
endif
ifneq ($(strip $(RBTFLAG)),)
RBTDIR = $(PROJDIR)../../GSFC/RBT/
RBTSRC = $(RBTDIR)Source/
RBTOBJ = $(OBJ)RbtFsw.o
else
RBTDIR =
RBTSRC =
RBTOBJ =
endif
ifneq ($(strip $(GMSECFLAG)),)
GMSECOBJ = $(OBJ)gmseckit.o
ACIPCOBJ = $(OBJ)AppReadFromFile.o $(OBJ)AppWriteToGmsec.o $(OBJ)AppReadFromGmsec.o \
$(OBJ)AppWriteToSocket.o $(OBJ)AppReadFromSocket.o $(OBJ)AppWriteToFile.o
SIMIPCOBJ = $(OBJ)SimWriteToFile.o $(OBJ)SimWriteToGmsec.o $(OBJ)SimWriteToSocket.o \
$(OBJ)SimReadFromFile.o $(OBJ)SimReadFromGmsec.o $(OBJ)SimReadFromSocket.o
else
GMSECOBJ =
ACIPCOBJ = $(OBJ)AppReadFromFile.o \
$(OBJ)AppWriteToSocket.o $(OBJ)AppReadFromSocket.o $(OBJ)AppWriteToFile.o
SIMIPCOBJ = $(OBJ)SimWriteToFile.o $(OBJ)SimWriteToSocket.o \
$(OBJ)SimReadFromFile.o $(OBJ)SimReadFromSocket.o
endif
42OBJ = $(OBJ)42main.o $(OBJ)42exec.o $(OBJ)42actuators.o $(OBJ)42cmd.o \
$(OBJ)42dynamics.o $(OBJ)42environs.o $(OBJ)42ephem.o $(OBJ)42fsw.o \
$(OBJ)42init.o $(OBJ)42ipc.o $(OBJ)42jitter.o $(OBJ)42joints.o \
$(OBJ)42perturb.o $(OBJ)42report.o $(OBJ)42sensors.o \
$(OBJ)42nos3.o
KITOBJ = $(OBJ)dcmkit.o $(OBJ)envkit.o $(OBJ)fswkit.o $(OBJ)geomkit.o \
$(OBJ)iokit.o $(OBJ)mathkit.o $(OBJ)nrlmsise00kit.o $(OBJ)msis86kit.o \
$(OBJ)orbkit.o $(OBJ)radbeltkit.o $(OBJ)sigkit.o $(OBJ)sphkit.o $(OBJ)timekit.o
LIBKITOBJ = $(OBJ)dcmkit.o $(OBJ)envkit.o $(OBJ)fswkit.o $(OBJ)geomkit.o \
$(OBJ)iokit.o $(OBJ)mathkit.o $(OBJ)orbkit.o $(OBJ)sigkit.o $(OBJ)sphkit.o $(OBJ)timekit.o
ACKITOBJ = $(OBJ)dcmkit.o $(OBJ)mathkit.o $(OBJ)fswkit.o $(OBJ)iokit.o $(OBJ)timekit.o
ACIPCOBJ = $(OBJ)AppReadFromFile.o \
$(OBJ)AppWriteToSocket.o $(OBJ)AppReadFromSocket.o $(OBJ)AppWriteToFile.o
#ANSIFLAGS = -Wstrict-prototypes -pedantic -ansi -Werror
ANSIFLAGS =
CFLAGS = -fpic -Wall -Wshadow -Wno-deprecated $(XWARN) -g $(ANSIFLAGS) $(GLINC) $(CINC) -I $(INC) -I $(KITINC) -I $(KITSRC) -I $(RBTSRC) $(GMSECINC) -O0 $(ARCHFLAG) $(GUIFLAG) $(GUI_LIB) $(SHADERFLAG) $(CFDFLAG) $(FFTBFLAG) $(GSFCFLAG) $(GMSECFLAG) $(STANDALONEFLAG) $(RBTFLAG) $(DEFAULT_CASE_PATH) $(DEFAULT_MODEL_PATH)
########################## Rules to link 42 #############################
42 : $(42OBJ) $(GUIOBJ) $(SIMIPCOBJ) $(FFTBOBJ) $(SLOSHOBJ) $(KITOBJ) $(ACOBJ) $(GMSECOBJ) $(RBTOBJ)
$(CC) $(LFLAGS) $(GMSECBIN) -o $(EXENAME) $(42OBJ) $(GUIOBJ) $(FFTBOBJ) $(SLOSHOBJ) $(KITOBJ) $(ACOBJ) $(GMSECOBJ) $(SIMIPCOBJ) $(RBTOBJ) $(LIBS) $(GMSECLIB)
AcApp : $(OBJ)AcApp.o $(ACKITOBJ) $(ACIPCOBJ) $(GMSECOBJ)
$(CC) $(LFLAGS) -o AcApp $(OBJ)AcApp.o $(ACKITOBJ) $(ACIPCOBJ) $(GMSECOBJ) $(LIBS)
42kit : $(LIBKITOBJ)
$(CC) $(LFLAGS) -shared -o $(KITDIR)42kit.so $(LIBKITOBJ)
#################### Rules to compile objects ###########################
$(OBJ)42main.o : $(SRC)42main.c
$(CC) $(CFLAGS) -c $(SRC)42main.c -o $(OBJ)42main.o
$(OBJ)42exec.o : $(SRC)42exec.c $(INC)42.h
$(CC) $(CFLAGS) -c $(SRC)42exec.c -o $(OBJ)42exec.o
$(OBJ)42actuators.o : $(SRC)42actuators.c $(INC)42.h $(INC)Ac.h $(INC)AcTypes.h
$(CC) $(CFLAGS) -c $(SRC)42actuators.c -o $(OBJ)42actuators.o
$(OBJ)42cmd.o : $(SRC)42cmd.c $(INC)42.h $(INC)Ac.h $(INC)AcTypes.h
$(CC) $(CFLAGS) -c $(SRC)42cmd.c -o $(OBJ)42cmd.o
$(OBJ)42dynamics.o : $(SRC)42dynamics.c $(INC)42.h
$(CC) $(CFLAGS) -c $(SRC)42dynamics.c -o $(OBJ)42dynamics.o
$(OBJ)42environs.o : $(SRC)42environs.c $(INC)42.h
$(CC) $(CFLAGS) -c $(SRC)42environs.c -o $(OBJ)42environs.o
$(OBJ)42ephem.o : $(SRC)42ephem.c $(INC)42.h
$(CC) $(CFLAGS) -c $(SRC)42ephem.c -o $(OBJ)42ephem.o
$(OBJ)42fsw.o : $(SRC)42fsw.c $(INC)Ac.h $(INC)AcTypes.h
$(CC) $(CFLAGS) -c $(SRC)42fsw.c -o $(OBJ)42fsw.o
$(OBJ)42gl.o : $(SRC)42gl.c $(INC)42.h $(INC)42gl.h
$(CC) $(CFLAGS) -c $(SRC)42gl.c -o $(OBJ)42gl.o
$(OBJ)42glfw.o : $(SRC)42glfw.c $(INC)42.h $(INC)42gl.h $(INC)42glfw.h
$(CC) $(CFLAGS) -c $(SRC)42glfw.c -o $(OBJ)42glfw.o
$(OBJ)42glut.o : $(SRC)42glut.c $(INC)42.h $(INC)42gl.h $(INC)42glut.h
$(CC) $(CFLAGS) -c $(SRC)42glut.c -o $(OBJ)42glut.o
$(OBJ)42gpgpu.o : $(SRC)42gpgpu.c $(INC)42.h $(INC)42gl.h $(INC)42glut.h
$(CC) $(CFLAGS) -c $(SRC)42gpgpu.c -o $(OBJ)42gpgpu.o
$(OBJ)42init.o : $(SRC)42init.c $(INC)42.h
$(CC) $(CFLAGS) -c $(SRC)42init.c -o $(OBJ)42init.o
$(OBJ)42ipc.o : $(SRC)42ipc.c $(INC)42.h
$(CC) $(CFLAGS) -c $(SRC)42ipc.c -o $(OBJ)42ipc.o
$(OBJ)42jitter.o : $(SRC)42jitter.c $(INC)42.h
$(CC) $(CFLAGS) -c $(SRC)42jitter.c -o $(OBJ)42jitter.o
$(OBJ)42joints.o : $(SRC)42joints.c $(INC)42.h
$(CC) $(CFLAGS) -c $(SRC)42joints.c -o $(OBJ)42joints.o
$(OBJ)42perturb.o : $(SRC)42perturb.c $(INC)42.h
$(CC) $(CFLAGS) -c $(SRC)42perturb.c -o $(OBJ)42perturb.o
$(OBJ)42report.o : $(SRC)42report.c $(INC)42.h
$(CC) $(CFLAGS) -c $(SRC)42report.c -o $(OBJ)42report.o
$(OBJ)42sensors.o : $(SRC)42sensors.c $(INC)42.h $(INC)Ac.h $(INC)AcTypes.h
$(CC) $(CFLAGS) -c $(SRC)42sensors.c -o $(OBJ)42sensors.o
$(OBJ)dcmkit.o : $(KITSRC)dcmkit.c
$(CC) $(CFLAGS) -c $(KITSRC)dcmkit.c -o $(OBJ)dcmkit.o
$(OBJ)envkit.o : $(KITSRC)envkit.c
$(CC) $(CFLAGS) -c $(KITSRC)envkit.c -o $(OBJ)envkit.o
$(OBJ)fswkit.o : $(KITSRC)fswkit.c
$(CC) $(CFLAGS) -c $(KITSRC)fswkit.c -o $(OBJ)fswkit.o
$(OBJ)glkit.o : $(KITSRC)glkit.c $(KITINC)glkit.h
$(CC) $(CFLAGS) -c $(KITSRC)glkit.c -o $(OBJ)glkit.o
$(OBJ)geomkit.o : $(KITSRC)geomkit.c $(KITINC)geomkit.h
$(CC) $(CFLAGS) -c $(KITSRC)geomkit.c -o $(OBJ)geomkit.o
$(OBJ)gmseckit.o : $(KITSRC)gmseckit.c $(KITINC)gmseckit.h
$(CC) $(CFLAGS) -c $(KITSRC)gmseckit.c -o $(OBJ)gmseckit.o
$(OBJ)iokit.o : $(KITSRC)iokit.c
$(CC) $(CFLAGS) -c $(KITSRC)iokit.c -o $(OBJ)iokit.o
$(OBJ)mathkit.o : $(KITSRC)mathkit.c
$(CC) $(CFLAGS) -c $(KITSRC)mathkit.c -o $(OBJ)mathkit.o
$(OBJ)nrlmsise00kit.o : $(KITSRC)nrlmsise00kit.c
$(CC) $(CFLAGS) -c $(KITSRC)nrlmsise00kit.c -o $(OBJ)nrlmsise00kit.o
$(OBJ)msis86kit.o : $(KITSRC)msis86kit.c $(KITINC)msis86kit.h
$(CC) $(CFLAGS) -c $(KITSRC)msis86kit.c -o $(OBJ)msis86kit.o
$(OBJ)orbkit.o : $(KITSRC)orbkit.c
$(CC) $(CFLAGS) -c $(KITSRC)orbkit.c -o $(OBJ)orbkit.o
$(OBJ)radbeltkit.o : $(KITSRC)radbeltkit.c
$(CC) $(CFLAGS) -c $(KITSRC)radbeltkit.c -o $(OBJ)radbeltkit.o
$(OBJ)sigkit.o : $(KITSRC)sigkit.c
$(CC) $(CFLAGS) -c $(KITSRC)sigkit.c -o $(OBJ)sigkit.o
$(OBJ)sphkit.o : $(KITSRC)sphkit.c
$(CC) $(CFLAGS) -c $(KITSRC)sphkit.c -o $(OBJ)sphkit.o
$(OBJ)timekit.o : $(KITSRC)timekit.c
$(CC) $(CFLAGS) -c $(KITSRC)timekit.c -o $(OBJ)timekit.o
$(OBJ)42CfdSlosh.o : $(GSFCSRC)42CfdSlosh.c $(INC)42.h
$(CC) $(CFLAGS) -c $(GSFCSRC)42CfdSlosh.c -o $(OBJ)42CfdSlosh.o
$(OBJ)42fftb.o : $(GSFCSRC)42fftb.c $(INC)42.h
$(CC) $(CFLAGS) -c $(GSFCSRC)42fftb.c -o $(OBJ)42fftb.o
$(OBJ)AcApp.o : $(SRC)AcApp.c $(INC)Ac.h $(INC)AcTypes.h
$(CC) $(CFLAGS) -c $(SRC)AcApp.c -o $(OBJ)AcApp.o
$(OBJ)SimWriteToFile.o : $(IPCSRC)SimWriteToFile.c $(INC)42.h $(INC)AcTypes.h
$(CC) $(CFLAGS) -c $(IPCSRC)SimWriteToFile.c -o $(OBJ)SimWriteToFile.o
$(OBJ)SimWriteToGmsec.o : $(IPCSRC)SimWriteToGmsec.c $(INC)42.h $(INC)AcTypes.h
$(CC) $(CFLAGS) -c $(IPCSRC)SimWriteToGmsec.c -o $(OBJ)SimWriteToGmsec.o
$(OBJ)SimWriteToSocket.o : $(IPCSRC)SimWriteToSocket.c $(INC)42.h $(INC)AcTypes.h
$(CC) $(CFLAGS) -c $(IPCSRC)SimWriteToSocket.c -o $(OBJ)SimWriteToSocket.o
$(OBJ)SimReadFromFile.o : $(IPCSRC)SimReadFromFile.c $(INC)42.h $(INC)AcTypes.h
$(CC) $(CFLAGS) -c $(IPCSRC)SimReadFromFile.c -o $(OBJ)SimReadFromFile.o
$(OBJ)SimReadFromGmsec.o : $(IPCSRC)SimReadFromGmsec.c $(INC)42.h $(INC)AcTypes.h
$(CC) $(CFLAGS) -c $(IPCSRC)SimReadFromGmsec.c -o $(OBJ)SimReadFromGmsec.o
$(OBJ)SimReadFromSocket.o : $(IPCSRC)SimReadFromSocket.c $(INC)42.h $(INC)AcTypes.h
$(CC) $(CFLAGS) -c $(IPCSRC)SimReadFromSocket.c -o $(OBJ)SimReadFromSocket.o
#$(OBJ)SimReadFromCmd.o : $(IPCSRC)SimReadFromCmd.c $(INC)42.h $(INC)AcTypes.h
# $(CC) $(CFLAGS) -c $(IPCSRC)SimReadFromCmd.c -o $(OBJ)SimReadFromCmd.o
$(OBJ)AppWriteToFile.o : $(IPCSRC)AppWriteToFile.c $(INC)42.h $(INC)AcTypes.h
$(CC) $(CFLAGS) -c $(IPCSRC)AppWriteToFile.c -o $(OBJ)AppWriteToFile.o
$(OBJ)AppWriteToGmsec.o : $(IPCSRC)AppWriteToGmsec.c $(INC)42.h $(INC)AcTypes.h
$(CC) $(CFLAGS) -c $(IPCSRC)AppWriteToGmsec.c -o $(OBJ)AppWriteToGmsec.o
$(OBJ)AppWriteToSocket.o : $(IPCSRC)AppWriteToSocket.c $(INC)42.h $(INC)AcTypes.h
$(CC) $(CFLAGS) -c $(IPCSRC)AppWriteToSocket.c -o $(OBJ)AppWriteToSocket.o
$(OBJ)AppReadFromFile.o : $(IPCSRC)AppReadFromFile.c $(INC)42.h $(INC)AcTypes.h
$(CC) $(CFLAGS) -c $(IPCSRC)AppReadFromFile.c -o $(OBJ)AppReadFromFile.o
$(OBJ)AppReadFromGmsec.o : $(IPCSRC)AppReadFromGmsec.c $(INC)42.h $(INC)AcTypes.h
$(CC) $(CFLAGS) -c $(IPCSRC)AppReadFromGmsec.c -o $(OBJ)AppReadFromGmsec.o
$(OBJ)AppReadFromSocket.o : $(IPCSRC)AppReadFromSocket.c $(INC)42.h $(INC)AcTypes.h
$(CC) $(CFLAGS) -c $(IPCSRC)AppReadFromSocket.c -o $(OBJ)AppReadFromSocket.o
$(OBJ)42nos3.o : $(SRC)42nos3.c
$(CC) $(CFLAGS) -c $(SRC)42nos3.c -o $(OBJ)42nos3.o
$(OBJ)RbtFsw.o : $(RBTSRC)RbtFsw.c $(RBTSRC)Rbt.h
$(CC) $(CFLAGS) -c $(RBTSRC)RbtFsw.c -o $(OBJ)RbtFsw.o
######################## Miscellaneous Rules ############################
clean :
ifeq ($(42PLATFORM),_WIN32)
del .\Object\*.o .\$(EXENAME) .\InOut\*.42
else ifeq ($(42PLATFORM),_WIN64)
del .\Object\*.o .\$(EXENAME) .\InOut\*.42
else
rm -f $(OBJ)*.o ./$(EXENAME) ./AcApp $(KITDIR)42kit.so $(INOUT)*.42 ./Standalone/*.42 ./Demo/*.42 ./Rx/*.42 ./Tx/*.42
endif