summaryrefslogtreecommitdiffstats
path: root/Makefile.shared
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-02-06 18:08:21 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-02-06 18:08:21 +0000
commite72d576583d98c78aa80656c8ac0d76e1daf192f (patch)
tree307d14eb3a51711f9f214de33a11b09a3ac8501e /Makefile.shared
parent2008-02-06 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadada-examples-e72d576583d98c78aa80656c8ac0d76e1daf192f.tar.bz2
2008-02-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.shared, rtems_init.c: More clean up and more generalization.
Diffstat (limited to 'Makefile.shared')
-rw-r--r--Makefile.shared8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile.shared b/Makefile.shared
index 839b820..4d99bd3 100644
--- a/Makefile.shared
+++ b/Makefile.shared
@@ -27,10 +27,14 @@ ifeq ($(NEED_ROOTFS_FOR_HOST_INFO),yes)
CFLAGS += -DENABLE_UNTAR_ROOT_FILESYSTEM -I.
endif
+CFLAGS += $(DEFINES)
+
all: $(PROGRAM).exe
$(PROGRAM).exe: rtems_init.o $(FILESYSTEM_OBJS) $(PROGRAM).adb $(EXTRA_OBJS)
- $(AS:as=gnatmake) -v $(EXTRA_GNATFLAGS) \
+ $(AS:as=gnatmake) \
+ -I$(RTEMS_MAKEFILE_PATH)/lib/include/adainclude \
+ -v $(EXTRA_GNATFLAGS) \
-O -gnata -gnatE -gnato -g $(PROGRAM) -o $(@) \
-bargs -Mgnat_main \
-largs $(CARGS) $(LINKARGS) rtems_init.o $(FILESYSTEM_OBJS) \
@@ -50,7 +54,7 @@ ifeq ($(RTEMS_BSP_FAMILY),pc386)
endif
rtems_init.o: ../rtems_init.c ../networkconfig.h $(FILESYSTEM_SRCS)
- $(CC) $(CFLAGS) $(CPU_CFLAGS) -c $<
+ $(CC) $(CFLAGS) -I. $(CPU_CFLAGS) -c $<
ifeq ($(NEED_ROOTFS_FOR_HOST_INFO),yes)
FilesystemImage: ../rootfs/etc/host.conf ../rootfs/etc/hosts