Firenet

Check-in [a549b16bf8]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:[28adbc87ea] Add linux makefile
Timelines: family | ancestors | descendants | both | NEWNET
Files: files | file ages | folders
SHA1:a549b16bf8def83e414abd8f88668a1888bcb003
User & Date: jim 2011-12-25 11:42:24
References
2011-12-25
11:43 Tested ticket [28adbc87ea]: Generate a Linux make file plus 4 other changes artifact: 3288dd0a0d user: jim
Context
2011-12-26
01:36
Add BSD_VERSION flag to old project check-in: c6b9583664 user: jim tags: NEWNET
2011-12-25
11:42
[28adbc87ea] Add linux makefile check-in: a549b16bf8 user: jim tags: NEWNET
2011-12-24
19:30
Add OSX Makefile then build Linux makefile check-in: 05a0aa949b user: jim tags: NEWNET
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to Firenet.xcodeproj/project.pbxproj.

800
801
802
803
804
805
806

807


808
809
810
811
812
813
814
815
816
817
818

819
820
821
822
823
824
825
...
826
827
828
829
830
831
832

833
834
835
836
837
838
839
				GCC_C_LANGUAGE_STANDARD = c99;
				GCC_OPTIMIZATION_LEVEL = 0;
				GCC_VERSION = com.apple.compilers.llvmgcc42;
				GCC_WARN_ABOUT_RETURN_TYPE = YES;
				GCC_WARN_UNUSED_VARIABLE = YES;
				MACOSX_DEPLOYMENT_TARGET = 10.7;
				ONLY_ACTIVE_ARCH = YES;

				OTHER_CFLAGS = "-IWORDS_BIGENDIAN=1";


			};
			name = "Debug PPC";
		};
		1DEB928B08733DD80010E9CD /* Release */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				ARCHS = "$(ARCHS_STANDARD_32_BIT)";
				GCC_C_LANGUAGE_STANDARD = c99;
				GCC_WARN_ABOUT_RETURN_TYPE = YES;
				GCC_WARN_UNUSED_VARIABLE = YES;
				MACOSX_DEPLOYMENT_TARGET = 10.7;

			};
			name = Release;
		};
		384445C6119D6D2500246B6C /* Debug INTEL */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				ARCHS = "$(NATIVE_ARCH_ACTUAL)";
................................................................................
				GCC_C_LANGUAGE_STANDARD = c99;
				GCC_OPTIMIZATION_LEVEL = 0;
				GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
				GCC_WARN_ABOUT_RETURN_TYPE = YES;
				GCC_WARN_UNUSED_VARIABLE = YES;
				MACOSX_DEPLOYMENT_TARGET = 10.7;
				ONLY_ACTIVE_ARCH = YES;

			};
			name = "Debug INTEL";
		};
		384445C7119D6D2500246B6C /* Debug INTEL */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				ALWAYS_SEARCH_USER_PATHS = NO;







>
|
>
>











>







 







>







800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
...
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
				GCC_C_LANGUAGE_STANDARD = c99;
				GCC_OPTIMIZATION_LEVEL = 0;
				GCC_VERSION = com.apple.compilers.llvmgcc42;
				GCC_WARN_ABOUT_RETURN_TYPE = YES;
				GCC_WARN_UNUSED_VARIABLE = YES;
				MACOSX_DEPLOYMENT_TARGET = 10.7;
				ONLY_ACTIVE_ARCH = YES;
				OTHER_CFLAGS = (
					"-IWORDS_BIGENDIAN=1",
					"-DBSD_VERSION",
				);
			};
			name = "Debug PPC";
		};
		1DEB928B08733DD80010E9CD /* Release */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				ARCHS = "$(ARCHS_STANDARD_32_BIT)";
				GCC_C_LANGUAGE_STANDARD = c99;
				GCC_WARN_ABOUT_RETURN_TYPE = YES;
				GCC_WARN_UNUSED_VARIABLE = YES;
				MACOSX_DEPLOYMENT_TARGET = 10.7;
				OTHER_CFLAGS = "-DBSD_VERSION";
			};
			name = Release;
		};
		384445C6119D6D2500246B6C /* Debug INTEL */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				ARCHS = "$(NATIVE_ARCH_ACTUAL)";
................................................................................
				GCC_C_LANGUAGE_STANDARD = c99;
				GCC_OPTIMIZATION_LEVEL = 0;
				GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
				GCC_WARN_ABOUT_RETURN_TYPE = YES;
				GCC_WARN_UNUSED_VARIABLE = YES;
				MACOSX_DEPLOYMENT_TARGET = 10.7;
				ONLY_ACTIVE_ARCH = YES;
				OTHER_CFLAGS = "-DBSD_VERSION";
			};
			name = "Debug INTEL";
		};
		384445C7119D6D2500246B6C /* Debug INTEL */ = {
			isa = XCBuildConfiguration;
			buildSettings = {
				ALWAYS_SEARCH_USER_PATHS = NO;

Changes to Network/Real/SERIAL/Linux/linserial.c.

34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
...
277
278
279
280
281
282
283

































284
285
286
287
288
289
290
static int GetPortState( PORT_HANDLE *h );
static int SetPortState( int state,PORT_HANDLE *h );

#pragma mark -- PORT MGMT API --

/****************************************************************
*
*  PORT_LIST *ListPorts()	- Get a list of SERIAL RS-232 ports
*
*	INPUT:NONE
*
*	OUTPUT:	NULL
*	This is not supported in Linux now so just return NULL
*
*****************************************************************/

PORT_LIST *ListPorts(void)
{
	PORT_LIST *base = NULL;
	
	return( base );
}

/****************************************************************
................................................................................
		
		// (4) Free the handle
		
		MEMFREE( h );
	}
}
#pragma mark -- PORT I/O API --


































/***********************************************************************
*
* int WritePort( char *buffer,int size,PORT_HANDLE *h) - Write to a port
*
*	INPUT:	buffer	- Buffer to send
*			size	- # Bytes to send







|

|






|







 







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
...
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
static int GetPortState( PORT_HANDLE *h );
static int SetPortState( int state,PORT_HANDLE *h );

#pragma mark -- PORT MGMT API --

/****************************************************************
*
*  PORT_LIST *ListPorts(int modems)	- Get a list of SERIAL RS-232 ports
*
*	INPUT:modems	- (IGNORE)
*
*	OUTPUT:	NULL
*	This is not supported in Linux now so just return NULL
*
*****************************************************************/

PORT_LIST *ListPorts(int modems)
{
	PORT_LIST *base = NULL;
	
	return( base );
}

/****************************************************************
................................................................................
		
		// (4) Free the handle
		
		MEMFREE( h );
	}
}
#pragma mark -- PORT I/O API --

/***********************************************************************
*
* int StatPort( PORT_HANDLE *h )	- Data present on port ?
*
*	INPUT:	dwelltime	- # MS to scan for data 0 => no wait
*			h			- To this port
*
*	OUTPUT:	1	- Data present for read, 0 no data
*
************************************************************************/

int StatPort( int dwelltime,PORT_HANDLE *h )
{
	int rtnval = 0;
	fd_set scan;
	struct timeval seltime; // Select timeout time
	
	// (1) Build scan array and set up time
	
	FD_ZERO( &scan );
	FD_SET( h->fd,&scan );
	seltime.tv_sec = dwelltime / 1000;
	seltime.tv_usec = (dwelltime - (1000 * seltime.tv_sec)) * 1000;
	
	// (2) Do a select on the socket
	
	rtnval = select(h->fd+1,&scan,NULL,NULL,&seltime);
	if( rtnval < 0 )
		rtnval = 0;		// If failure return 0
		
	return( rtnval );
}

/***********************************************************************
*
* int WritePort( char *buffer,int size,PORT_HANDLE *h) - Write to a port
*
*	INPUT:	buffer	- Buffer to send
*			size	- # Bytes to send

Changes to Network/Real/SERIAL/Linux/linserial.h.

37
38
39
40
41
42
43
44
45
46
47





48
49
50
51
52
53
54
..
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
#include <paths.h>
#include <termios.h>
#include <sysexits.h>
#include <sys/param.h>
#include <sys/select.h>
#include <sys/time.h>
#include <time.h>
#include "tgtypes.h"

#ifndef LINSERIAL_H
#define LINSERIAL_H	1






#pragma mark -- Structures --

typedef struct sdummy {
						struct sdummy *next;
						char *path;				// Path of port
						char *name;				// Just the name part of the port
................................................................................
				} PORT_HANDLE;
				
#define NEW_PORT_HANDLE		((PORT_HANDLE *)MEMALLOC(sizeof(PORT_HANDLE)))

#pragma mark -- API --

// **** PORT DETERMINATION ****
PORT_LIST *ListPorts(void);
void FreePorts(PORT_LIST *base );

// **** PORT OPEN/CLOSE

PORT_HANDLE *OpenPort( int psn,
						PORT_LIST *p,
						int baud,
						SER_PORT_STOP stop,
						SER_PORT_PARITY parity);
void ClosePort( PORT_HANDLE *h );

// **** PORT I/O

int StatPort( PORT_HANDLE *h );
int WritePort( char *buffer,int size,PORT_HANDLE *h);
int ReadPort( char *buffer, int size,PORT_HANDLE *h );

// *** PORT MISC

int CTSPort( PORT_HANDLE *h );				// Read CTS
void DTRPort( int flag,PORT_HANDLE *h);		// Set DTR

#endif







<



>
>
>
>
>







 







|













|









37
38
39
40
41
42
43

44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
..
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
#include <paths.h>
#include <termios.h>
#include <sysexits.h>
#include <sys/param.h>
#include <sys/select.h>
#include <sys/time.h>
#include <time.h>


#ifndef LINSERIAL_H
#define LINSERIAL_H	1

#ifndef MEMALLOC
	#define MEMALLOC(x)	calloc(1,x)
	#define MEMFREE(x)	free(x)
#endif

#pragma mark -- Structures --

typedef struct sdummy {
						struct sdummy *next;
						char *path;				// Path of port
						char *name;				// Just the name part of the port
................................................................................
				} PORT_HANDLE;
				
#define NEW_PORT_HANDLE		((PORT_HANDLE *)MEMALLOC(sizeof(PORT_HANDLE)))

#pragma mark -- API --

// **** PORT DETERMINATION ****
PORT_LIST *ListPorts(int modems);
void FreePorts(PORT_LIST *base );

// **** PORT OPEN/CLOSE

PORT_HANDLE *OpenPort( int psn,
						PORT_LIST *p,
						int baud,
						SER_PORT_STOP stop,
						SER_PORT_PARITY parity);
void ClosePort( PORT_HANDLE *h );

// **** PORT I/O

int StatPort( int dwelltime,PORT_HANDLE *h );
int WritePort( char *buffer,int size,PORT_HANDLE *h);
int ReadPort( char *buffer, int size,PORT_HANDLE *h );

// *** PORT MISC

int CTSPort( PORT_HANDLE *h );				// Read CTS
void DTRPort( int flag,PORT_HANDLE *h);		// Set DTR

#endif

Changes to Network/Real/real_phy.c.

18
19
20
21
22
23
24

25



26
27
28
29
30
31
32
//************************************************************************

#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include <stdio.h>
#include "real_phy.h"

#include "bsdserial.h"



#include "debug.h"

#if 0
	#pragma mark -
	#pragma mark -- Data --
#endif








>
|
>
>
>







18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//************************************************************************

#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include <stdio.h>
#include "real_phy.h"
#ifdef BSD_VERSION
	#include "bsdserial.h"
#else
	#include "linserial.h"
#endif
#include "debug.h"

#if 0
	#pragma mark -
	#pragma mark -- Data --
#endif

Added buildmake.sh.

















>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
#/bin/sh
# Build Linux make file
#
# Build initial file
pbtomake -i Firenet.xcodeproj -obj obj -o tempmake -no_framework -link_opt "-lpthread -lm"
#
# Modifiy file 
awk -f fixmake.awk < tempmake > makefile

Added fixmake.awk.











































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
#
# AWK file to fix up make for run
#
#  Actions:
#		(1) Add missing Include lines
#		(2) Use Linux serial I/O
#		(3) Replace obj & link lines
#		(4) Replace compile lines

BEGIN {
		inhibit = 0
	}

#  (1) Add Missing include lines, NOTE: We start up a bit from the 
# end of the list
/-INode\/node/ {
				print("\t\t-INode/node\\")
				print("\t\t-INetwork\\")
				print("\t\t-INode\\")
				print("\t\t-Iluasupport\\")
				print("\t\t-Iluasupport/JSON\\")
				print("\t\t-Iluasupport/JSON/JSON")
				
				next
	}
	
# (2) Use Linux serial I/O

/OSX/ {
	if( inhibit == 0 )
	{
		print("\t\t-INetwork/Real/SERIAL/Linux\\")
		next
	}
}

# (3) Fix obj  & link stuff

/obj\/bsdserial.o/ {
	if( inhibit == 0 )
	{
		print("\t\tobj/linserial.o\\");
		next
	}
}

# (4) Fix compile line

/-- bsdserial --/ {
	print("# Item # 65 -- linserial --")
	print("obj/linserial.o : Network/Real/SERIAL/Linux/linserial.c")
	print("\t$(CC) $(CC_OPTIONS) Network/Real/SERIAL/Linux/linserial.c -c $(INCLUDE) -o obj/linserial.o")
	inhibit = 1
}
	


# Just print everything else
	
{
	if( inhibit == 0 )
		print($0)
	else
	{
		inhibit = inhibit + 1
		if( inhibit > 3 )
		inhibit = 0
	}
}

Added 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
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
###################################################
#
# Makefile for Firenet
# Creator [Xcode -> Makefile Ver: Oct 16 2006 14:12:12]
# Created: [Sun Dec 25 06:32:20 2011]
#
###################################################

#
# Macros
#

CC = /usr/bin/gcc
CC_OPTIONS = 
LNK_OPTIONS = -lpthread -lm


#
# INCLUDE directories for Firenet
#

INCLUDE = -I.\
		-INode/parent/support\
		-INode/support\
		-INode/parent\
		-Ilua-5.1.4/src\
		-Iluasupport/HTTP/rest\
		-Iluasupport/HTTP/COMS\
		-Iluasupport/HTTP\
		-Iluasupport/kdb\
		-Iluasupport/kdb/Unix\
		-Iluasupport/timer\
		-Iluasupport/firenet\
		-ILogging\
		-Iluasupport/HTTP/libmicrohttpd-0.9.0/src/daemon\
		-Iluasupport/HTTP/libmicrohttpd-0.9.0\
		-Iluasupport/HTTP/libmicrohttpd-0.9.0/src/include\
		-INetwork/Simulation\
		-INetwork/Real\
		-INetwork/Real/SERIAL/Linux\
		-INode/node\
		-INetwork\
		-INode\
		-Iluasupport\
		-Iluasupport/JSON\
		-Iluasupport/JSON/JSON


#
# Build Firenet
#

Firenet : \
		obj/main.o\
		obj/mac.o\
		obj/network.o\
		obj/jescape.o\
		obj/qdj.o\
		obj/qdj_token.o\
		obj/qdj_util.o\
		obj/jsonlua.o\
		obj/comqueue.o\
		obj/clock.o\
		obj/parent.o\
		obj/lapi.o\
		obj/lauxlib.o\
		obj/lbaselib.o\
		obj/lcode.o\
		obj/ldblib.o\
		obj/ldebug.o\
		obj/ldo.o\
		obj/ldump.o\
		obj/lfunc.o\
		obj/lgc.o\
		obj/linit.o\
		obj/liolib.o\
		obj/llex.o\
		obj/lmathlib.o\
		obj/lmem.o\
		obj/loadlib.o\
		obj/lobject.o\
		obj/lopcodes.o\
		obj/loslib.o\
		obj/lparser.o\
		obj/lstate.o\
		obj/lstring.o\
		obj/lstrlib.o\
		obj/ltable.o\
		obj/ltablib.o\
		obj/ltm.o\
		obj/lundump.o\
		obj/lvm.o\
		obj/lzio.o\
		obj/print.o\
		obj/rest.o\
		obj/restclient.o\
		obj/restcom.o\
		obj/restcomQ.o\
		obj/httplib.o\
		obj/lua_kbd.o\
		obj/tgkbhit.o\
		obj/sysop.o\
		obj/lua_timer.o\
		obj/lua_firenet.o\
		obj/packet_lua.o\
		obj/firenetlog.o\
		obj/logmap.o\
		obj/connection.o\
		obj/daemon.o\
		obj/internal.o\
		obj/memorypool.o\
		obj/postprocessor.o\
		obj/reason_phrase.o\
		obj/response.o\
		obj/phy.o\
		obj/sim_phy.o\
		obj/real_phy.o\
		obj/linserial.o\
		obj/child_cmd.o\
		obj/child.o
	$(CC) $(LNK_OPTIONS) \
		obj/main.o\
		obj/mac.o\
		obj/network.o\
		obj/jescape.o\
		obj/qdj.o\
		obj/qdj_token.o\
		obj/qdj_util.o\
		obj/jsonlua.o\
		obj/comqueue.o\
		obj/clock.o\
		obj/parent.o\
		obj/lapi.o\
		obj/lauxlib.o\
		obj/lbaselib.o\
		obj/lcode.o\
		obj/ldblib.o\
		obj/ldebug.o\
		obj/ldo.o\
		obj/ldump.o\
		obj/lfunc.o\
		obj/lgc.o\
		obj/linit.o\
		obj/liolib.o\
		obj/llex.o\
		obj/lmathlib.o\
		obj/lmem.o\
		obj/loadlib.o\
		obj/lobject.o\
		obj/lopcodes.o\
		obj/loslib.o\
		obj/lparser.o\
		obj/lstate.o\
		obj/lstring.o\
		obj/lstrlib.o\
		obj/ltable.o\
		obj/ltablib.o\
		obj/ltm.o\
		obj/lundump.o\
		obj/lvm.o\
		obj/lzio.o\
		obj/print.o\
		obj/rest.o\
		obj/restclient.o\
		obj/restcom.o\
		obj/restcomQ.o\
		obj/httplib.o\
		obj/lua_kbd.o\
		obj/tgkbhit.o\
		obj/sysop.o\
		obj/lua_timer.o\
		obj/lua_firenet.o\
		obj/packet_lua.o\
		obj/firenetlog.o\
		obj/logmap.o\
		obj/connection.o\
		obj/daemon.o\
		obj/internal.o\
		obj/memorypool.o\
		obj/postprocessor.o\
		obj/reason_phrase.o\
		obj/response.o\
		obj/phy.o\
		obj/sim_phy.o\
		obj/real_phy.o\
		obj/linserial.o\
		obj/child_cmd.o\
		obj/child.o\
		-o Firenet

clean : 
		rm \
		obj/main.o\
		obj/mac.o\
		obj/network.o\
		obj/jescape.o\
		obj/qdj.o\
		obj/qdj_token.o\
		obj/qdj_util.o\
		obj/jsonlua.o\
		obj/comqueue.o\
		obj/clock.o\
		obj/parent.o\
		obj/lapi.o\
		obj/lauxlib.o\
		obj/lbaselib.o\
		obj/lcode.o\
		obj/ldblib.o\
		obj/ldebug.o\
		obj/ldo.o\
		obj/ldump.o\
		obj/lfunc.o\
		obj/lgc.o\
		obj/linit.o\
		obj/liolib.o\
		obj/llex.o\
		obj/lmathlib.o\
		obj/lmem.o\
		obj/loadlib.o\
		obj/lobject.o\
		obj/lopcodes.o\
		obj/loslib.o\
		obj/lparser.o\
		obj/lstate.o\
		obj/lstring.o\
		obj/lstrlib.o\
		obj/ltable.o\
		obj/ltablib.o\
		obj/ltm.o\
		obj/lundump.o\
		obj/lvm.o\
		obj/lzio.o\
		obj/print.o\
		obj/rest.o\
		obj/restclient.o\
		obj/restcom.o\
		obj/restcomQ.o\
		obj/httplib.o\
		obj/lua_kbd.o\
		obj/tgkbhit.o\
		obj/sysop.o\
		obj/lua_timer.o\
		obj/lua_firenet.o\
		obj/packet_lua.o\
		obj/firenetlog.o\
		obj/logmap.o\
		obj/connection.o\
		obj/daemon.o\
		obj/internal.o\
		obj/memorypool.o\
		obj/postprocessor.o\
		obj/reason_phrase.o\
		obj/response.o\
		obj/phy.o\
		obj/sim_phy.o\
		obj/real_phy.o\
		obj/linserial.o\
		obj/child_cmd.o\
		obj/child.o\
		Firenet

install : Firenet
		cp Firenet Firenet

#
# Build the parts of Firenet
#


# Item # 1 -- main --
obj/main.o : main.c
	$(CC) $(CC_OPTIONS) main.c -c $(INCLUDE) -o obj/main.o


# Item # 2 -- mac --
obj/mac.o : Network/mac.c
	$(CC) $(CC_OPTIONS) Network/mac.c -c $(INCLUDE) -o obj/mac.o


# Item # 3 -- network --
obj/network.o : Network/network.c
	$(CC) $(CC_OPTIONS) Network/network.c -c $(INCLUDE) -o obj/network.o


# Item # 4 -- jescape --
obj/jescape.o : luasupport/JSON/JSON/jescape.c
	$(CC) $(CC_OPTIONS) luasupport/JSON/JSON/jescape.c -c $(INCLUDE) -o obj/jescape.o


# Item # 5 -- qdj --
obj/qdj.o : luasupport/JSON/JSON/qdj.c
	$(CC) $(CC_OPTIONS) luasupport/JSON/JSON/qdj.c -c $(INCLUDE) -o obj/qdj.o


# Item # 6 -- qdj_token --
obj/qdj_token.o : luasupport/JSON/JSON/qdj_token.c
	$(CC) $(CC_OPTIONS) luasupport/JSON/JSON/qdj_token.c -c $(INCLUDE) -o obj/qdj_token.o


# Item # 7 -- qdj_util --
obj/qdj_util.o : luasupport/JSON/JSON/qdj_util.c
	$(CC) $(CC_OPTIONS) luasupport/JSON/JSON/qdj_util.c -c $(INCLUDE) -o obj/qdj_util.o


# Item # 8 -- jsonlua --
obj/jsonlua.o : luasupport/JSON/jsonlua.c
	$(CC) $(CC_OPTIONS) luasupport/JSON/jsonlua.c -c $(INCLUDE) -o obj/jsonlua.o


# Item # 9 -- comqueue --
obj/comqueue.o : Node/parent/support/comqueue.c
	$(CC) $(CC_OPTIONS) Node/parent/support/comqueue.c -c $(INCLUDE) -o obj/comqueue.o


# Item # 10 -- clock --
obj/clock.o : Node/support/clock.c
	$(CC) $(CC_OPTIONS) Node/support/clock.c -c $(INCLUDE) -o obj/clock.o


# Item # 11 -- parent --
obj/parent.o : Node/parent/parent.c
	$(CC) $(CC_OPTIONS) Node/parent/parent.c -c $(INCLUDE) -o obj/parent.o


# Item # 12 -- lapi --
obj/lapi.o : lua-5.1.4/src/lapi.c
	$(CC) $(CC_OPTIONS) lua-5.1.4/src/lapi.c -c $(INCLUDE) -o obj/lapi.o


# Item # 13 -- lauxlib --
obj/lauxlib.o : lua-5.1.4/src/lauxlib.c
	$(CC) $(CC_OPTIONS) lua-5.1.4/src/lauxlib.c -c $(INCLUDE) -o obj/lauxlib.o


# Item # 14 -- lbaselib --
obj/lbaselib.o : lua-5.1.4/src/lbaselib.c
	$(CC) $(CC_OPTIONS) lua-5.1.4/src/lbaselib.c -c $(INCLUDE) -o obj/lbaselib.o


# Item # 15 -- lcode --
obj/lcode.o : lua-5.1.4/src/lcode.c
	$(CC) $(CC_OPTIONS) lua-5.1.4/src/lcode.c -c $(INCLUDE) -o obj/lcode.o


# Item # 16 -- ldblib --
obj/ldblib.o : lua-5.1.4/src/ldblib.c
	$(CC) $(CC_OPTIONS) lua-5.1.4/src/ldblib.c -c $(INCLUDE) -o obj/ldblib.o


# Item # 17 -- ldebug --
obj/ldebug.o : lua-5.1.4/src/ldebug.c
	$(CC) $(CC_OPTIONS) lua-5.1.4/src/ldebug.c -c $(INCLUDE) -o obj/ldebug.o


# Item # 18 -- ldo --
obj/ldo.o : lua-5.1.4/src/ldo.c
	$(CC) $(CC_OPTIONS) lua-5.1.4/src/ldo.c -c $(INCLUDE) -o obj/ldo.o


# Item # 19 -- ldump --
obj/ldump.o : lua-5.1.4/src/ldump.c
	$(CC) $(CC_OPTIONS) lua-5.1.4/src/ldump.c -c $(INCLUDE) -o obj/ldump.o


# Item # 20 -- lfunc --
obj/lfunc.o : lua-5.1.4/src/lfunc.c
	$(CC) $(CC_OPTIONS) lua-5.1.4/src/lfunc.c -c $(INCLUDE) -o obj/lfunc.o


# Item # 21 -- lgc --
obj/lgc.o : lua-5.1.4/src/lgc.c
	$(CC) $(CC_OPTIONS) lua-5.1.4/src/lgc.c -c $(INCLUDE) -o obj/lgc.o


# Item # 22 -- linit --
obj/linit.o : lua-5.1.4/src/linit.c
	$(CC) $(CC_OPTIONS) lua-5.1.4/src/linit.c -c $(INCLUDE) -o obj/linit.o


# Item # 23 -- liolib --
obj/liolib.o : lua-5.1.4/src/liolib.c
	$(CC) $(CC_OPTIONS) lua-5.1.4/src/liolib.c -c $(INCLUDE) -o obj/liolib.o


# Item # 24 -- llex --
obj/llex.o : lua-5.1.4/src/llex.c
	$(CC) $(CC_OPTIONS) lua-5.1.4/src/llex.c -c $(INCLUDE) -o obj/llex.o


# Item # 25 -- lmathlib --
obj/lmathlib.o : lua-5.1.4/src/lmathlib.c
	$(CC) $(CC_OPTIONS) lua-5.1.4/src/lmathlib.c -c $(INCLUDE) -o obj/lmathlib.o


# Item # 26 -- lmem --
obj/lmem.o : lua-5.1.4/src/lmem.c
	$(CC) $(CC_OPTIONS) lua-5.1.4/src/lmem.c -c $(INCLUDE) -o obj/lmem.o


# Item # 27 -- loadlib --
obj/loadlib.o : lua-5.1.4/src/loadlib.c
	$(CC) $(CC_OPTIONS) lua-5.1.4/src/loadlib.c -c $(INCLUDE) -o obj/loadlib.o


# Item # 28 -- lobject --
obj/lobject.o : lua-5.1.4/src/lobject.c
	$(CC) $(CC_OPTIONS) lua-5.1.4/src/lobject.c -c $(INCLUDE) -o obj/lobject.o


# Item # 29 -- lopcodes --
obj/lopcodes.o : lua-5.1.4/src/lopcodes.c
	$(CC) $(CC_OPTIONS) lua-5.1.4/src/lopcodes.c -c $(INCLUDE) -o obj/lopcodes.o


# Item # 30 -- loslib --
obj/loslib.o : lua-5.1.4/src/loslib.c
	$(CC) $(CC_OPTIONS) lua-5.1.4/src/loslib.c -c $(INCLUDE) -o obj/loslib.o


# Item # 31 -- lparser --
obj/lparser.o : lua-5.1.4/src/lparser.c
	$(CC) $(CC_OPTIONS) lua-5.1.4/src/lparser.c -c $(INCLUDE) -o obj/lparser.o


# Item # 32 -- lstate --
obj/lstate.o : lua-5.1.4/src/lstate.c
	$(CC) $(CC_OPTIONS) lua-5.1.4/src/lstate.c -c $(INCLUDE) -o obj/lstate.o


# Item # 33 -- lstring --
obj/lstring.o : lua-5.1.4/src/lstring.c
	$(CC) $(CC_OPTIONS) lua-5.1.4/src/lstring.c -c $(INCLUDE) -o obj/lstring.o


# Item # 34 -- lstrlib --
obj/lstrlib.o : lua-5.1.4/src/lstrlib.c
	$(CC) $(CC_OPTIONS) lua-5.1.4/src/lstrlib.c -c $(INCLUDE) -o obj/lstrlib.o


# Item # 35 -- ltable --
obj/ltable.o : lua-5.1.4/src/ltable.c
	$(CC) $(CC_OPTIONS) lua-5.1.4/src/ltable.c -c $(INCLUDE) -o obj/ltable.o


# Item # 36 -- ltablib --
obj/ltablib.o : lua-5.1.4/src/ltablib.c
	$(CC) $(CC_OPTIONS) lua-5.1.4/src/ltablib.c -c $(INCLUDE) -o obj/ltablib.o


# Item # 37 -- ltm --
obj/ltm.o : lua-5.1.4/src/ltm.c
	$(CC) $(CC_OPTIONS) lua-5.1.4/src/ltm.c -c $(INCLUDE) -o obj/ltm.o


# Item # 38 -- lundump --
obj/lundump.o : lua-5.1.4/src/lundump.c
	$(CC) $(CC_OPTIONS) lua-5.1.4/src/lundump.c -c $(INCLUDE) -o obj/lundump.o


# Item # 39 -- lvm --
obj/lvm.o : lua-5.1.4/src/lvm.c
	$(CC) $(CC_OPTIONS) lua-5.1.4/src/lvm.c -c $(INCLUDE) -o obj/lvm.o


# Item # 40 -- lzio --
obj/lzio.o : lua-5.1.4/src/lzio.c
	$(CC) $(CC_OPTIONS) lua-5.1.4/src/lzio.c -c $(INCLUDE) -o obj/lzio.o


# Item # 41 -- print --
obj/print.o : lua-5.1.4/src/print.c
	$(CC) $(CC_OPTIONS) lua-5.1.4/src/print.c -c $(INCLUDE) -o obj/print.o


# Item # 42 -- rest --
obj/rest.o : luasupport/HTTP/rest/rest.c
	$(CC) $(CC_OPTIONS) luasupport/HTTP/rest/rest.c -c $(INCLUDE) -o obj/rest.o


# Item # 43 -- restclient --
obj/restclient.o : luasupport/HTTP/rest/restclient.c
	$(CC) $(CC_OPTIONS) luasupport/HTTP/rest/restclient.c -c $(INCLUDE) -o obj/restclient.o


# Item # 44 -- restcom --
obj/restcom.o : luasupport/HTTP/COMS/restcom.c
	$(CC) $(CC_OPTIONS) luasupport/HTTP/COMS/restcom.c -c $(INCLUDE) -o obj/restcom.o


# Item # 45 -- restcomQ --
obj/restcomQ.o : luasupport/HTTP/COMS/restcomQ.c
	$(CC) $(CC_OPTIONS) luasupport/HTTP/COMS/restcomQ.c -c $(INCLUDE) -o obj/restcomQ.o


# Item # 46 -- httplib --
obj/httplib.o : luasupport/HTTP/httplib.c
	$(CC) $(CC_OPTIONS) luasupport/HTTP/httplib.c -c $(INCLUDE) -o obj/httplib.o


# Item # 47 -- lua_kbd --
obj/lua_kbd.o : luasupport/kdb/lua_kbd.c
	$(CC) $(CC_OPTIONS) luasupport/kdb/lua_kbd.c -c $(INCLUDE) -o obj/lua_kbd.o


# Item # 48 -- tgkbhit --
obj/tgkbhit.o : luasupport/kdb/Unix/tgkbhit.c
	$(CC) $(CC_OPTIONS) luasupport/kdb/Unix/tgkbhit.c -c $(INCLUDE) -o obj/tgkbhit.o


# Item # 49 -- sysop --
obj/sysop.o : luasupport/sysop.c
	$(CC) $(CC_OPTIONS) luasupport/sysop.c -c $(INCLUDE) -o obj/sysop.o


# Item # 50 -- lua_timer --
obj/lua_timer.o : luasupport/timer/lua_timer.c
	$(CC) $(CC_OPTIONS) luasupport/timer/lua_timer.c -c $(INCLUDE) -o obj/lua_timer.o


# Item # 51 -- lua_firenet --
obj/lua_firenet.o : luasupport/firenet/lua_firenet.c
	$(CC) $(CC_OPTIONS) luasupport/firenet/lua_firenet.c -c $(INCLUDE) -o obj/lua_firenet.o


# Item # 52 -- packet_lua --
obj/packet_lua.o : luasupport/firenet/packet_lua.c
	$(CC) $(CC_OPTIONS) luasupport/firenet/packet_lua.c -c $(INCLUDE) -o obj/packet_lua.o


# Item # 53 -- firenetlog --
obj/firenetlog.o : Logging/firenetlog.c
	$(CC) $(CC_OPTIONS) Logging/firenetlog.c -c $(INCLUDE) -o obj/firenetlog.o


# Item # 54 -- logmap --
obj/logmap.o : Node/parent/logmap.c
	$(CC) $(CC_OPTIONS) Node/parent/logmap.c -c $(INCLUDE) -o obj/logmap.o


# Item # 55 -- connection --
obj/connection.o : luasupport/HTTP/libmicrohttpd-0.9.0/src/daemon/connection.c
	$(CC) $(CC_OPTIONS) luasupport/HTTP/libmicrohttpd-0.9.0/src/daemon/connection.c -c $(INCLUDE) -o obj/connection.o


# Item # 56 -- daemon --
obj/daemon.o : luasupport/HTTP/libmicrohttpd-0.9.0/src/daemon/daemon.c
	$(CC) $(CC_OPTIONS) luasupport/HTTP/libmicrohttpd-0.9.0/src/daemon/daemon.c -c $(INCLUDE) -o obj/daemon.o


# Item # 57 -- internal --
obj/internal.o : luasupport/HTTP/libmicrohttpd-0.9.0/src/daemon/internal.c
	$(CC) $(CC_OPTIONS) luasupport/HTTP/libmicrohttpd-0.9.0/src/daemon/internal.c -c $(INCLUDE) -o obj/internal.o


# Item # 58 -- memorypool --
obj/memorypool.o : luasupport/HTTP/libmicrohttpd-0.9.0/src/daemon/memorypool.c
	$(CC) $(CC_OPTIONS) luasupport/HTTP/libmicrohttpd-0.9.0/src/daemon/memorypool.c -c $(INCLUDE) -o obj/memorypool.o


# Item # 59 -- postprocessor --
obj/postprocessor.o : luasupport/HTTP/libmicrohttpd-0.9.0/src/daemon/postprocessor.c
	$(CC) $(CC_OPTIONS) luasupport/HTTP/libmicrohttpd-0.9.0/src/daemon/postprocessor.c -c $(INCLUDE) -o obj/postprocessor.o


# Item # 60 -- reason_phrase --
obj/reason_phrase.o : luasupport/HTTP/libmicrohttpd-0.9.0/src/daemon/reason_phrase.c
	$(CC) $(CC_OPTIONS) luasupport/HTTP/libmicrohttpd-0.9.0/src/daemon/reason_phrase.c -c $(INCLUDE) -o obj/reason_phrase.o


# Item # 61 -- response --
obj/response.o : luasupport/HTTP/libmicrohttpd-0.9.0/src/daemon/response.c
	$(CC) $(CC_OPTIONS) luasupport/HTTP/libmicrohttpd-0.9.0/src/daemon/response.c -c $(INCLUDE) -o obj/response.o


# Item # 62 -- phy --
obj/phy.o : Network/phy.c
	$(CC) $(CC_OPTIONS) Network/phy.c -c $(INCLUDE) -o obj/phy.o


# Item # 63 -- sim_phy --
obj/sim_phy.o : Network/Simulation/sim_phy.c
	$(CC) $(CC_OPTIONS) Network/Simulation/sim_phy.c -c $(INCLUDE) -o obj/sim_phy.o


# Item # 64 -- real_phy --
obj/real_phy.o : Network/Real/real_phy.c
	$(CC) $(CC_OPTIONS) Network/Real/real_phy.c -c $(INCLUDE) -o obj/real_phy.o


# Item # 65 -- linserial --
obj/linserial.o : Network/Real/SERIAL/Linux/linserial.c
	$(CC) $(CC_OPTIONS) Network/Real/SERIAL/Linux/linserial.c -c $(INCLUDE) -o obj/linserial.o


# Item # 66 -- child_cmd --
obj/child_cmd.o : Node/node/child_cmd.c
	$(CC) $(CC_OPTIONS) Node/node/child_cmd.c -c $(INCLUDE) -o obj/child_cmd.o


# Item # 67 -- child --
obj/child.o : Node/node/child.c
	$(CC) $(CC_OPTIONS) Node/node/child.c -c $(INCLUDE) -o obj/child.o


##### END RUN ####

Added obj/marker.



>
1
This is a marker file to ensure directory is in Fossil