summaryrefslogtreecommitdiffstats
path: root/testsuites/ada/ada.am
blob: 33d0c3ae2f42f8341f4de6e8911bc7584573f6ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
SUFFIXES = .adb .ali .ads .adp

GNATMAKE = @GNATMAKE@

AM_ADAFLAGS = -I$(RTEMS_SOURCE_ROOT)/cpukit/include/adainclude \
-I$(top_srcdir)/support

GNATCOMPILE = $(GNATMAKE) \
-bargs -Mgnat_main \
-margs $(AM_ADAFLAGS) $(ADAFLAGS) \
-cargs $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) \
-largs $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) init.o

CLEANFILES += *.ali *.o b~*.adb b~*.ads

#%.o: %.c
#	$(CC) $(CFLAGS) -I@srcdir@ -c $< -o $@

.adp.adb:
	pwd=`pwd` && cd $(srcdir) && $(M4) < $*.adp > $${pwd}/$*.adb