summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i386/ts_386ex/tools/debug_ada/Makefile
blob: 4effbc7f758c71be2e9fffe8abdb1120c3331206 (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
#
#  Makefile for debug example
#

MAIN=debug

# 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=

AINCLUDES=-i -I../ts_1325_ada

CARGS=-B${rtemsdir}/lib/ -specs bsp_specs -qrtems \
	-msoft-float -mno-fp-ret-in-387

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

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

run:
	$(SIS) $(MAIN)	

gdb:
	$(GDB) $(MAIN)	

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