summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i386/ts_386ex/tools/network_ada/tcprelay/Makefile
blob: 1de940b9c5f30fd23642485a9b30be8983bf04e4 (plain) (blame)
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
#
#  Makefile for tcprelay example
#

MAIN=tcprelay

# Tool paths
tooldir=/usr/local/rtems
rtemsdir=${tooldir}/ts_386ex

# Tool names
GCC=${tooldir}/bin/i386-rtemself-gcc
GNATMAKE=${tooldir}/bin/i386-rtemself-gnatmake
SIZE=${tooldir}/bin/i386-rtemself-size
SIS=${tooldir}/bin/sis
GDB=${tooldir}/bin/sis-gdb

CINCLUDES=-I/usr/local/rtems/ts_386ex/lib/include/networking

AINCLUDES=-i -I/usr/local/rtems/lib/adasockets

CARGS=-B${rtemsdir}/lib/ -specs bsp_specs -qrtems

all: init.o print_error.o
	$(GNATMAKE) -O -gnata -gnatE -gnato $(AINCLUDES) $(MAIN) -g \
	    -bargs -r \
	    -cargs $(CARGS) \
	    -largs $(CARGS) init.o print_error.o
	$(SIZE) $(MAIN)



init.o: init.c
	$(GCC) -O4 -g  -Wall -ansi -fasm $(CARGS) $(CINCLUDES) -c init.c

print_error.o: print_error.c
	$(GCC) -O4 -g  -Wall -ansi -fasm $(CARGS) $(CINCLUDES) -c print_error.c

run:
	$(SIS) $(MAIN)	

gdb:
	$(GDB) $(MAIN)	

clean:
	rm -f b_$(MAIN).c b_$(MAIN).o *.o *.ali $(MAIN)