1 | # |
---|
2 | # Config file for HPUX running the posix bsp |
---|
3 | # |
---|
4 | # $Id$ |
---|
5 | # |
---|
6 | |
---|
7 | # Specify here the host and target "architectures" |
---|
8 | HOST_ARCH=o-$(RTEMS_HOST) |
---|
9 | TARGET_ARCH=o-$(RTEMS_BSP) |
---|
10 | |
---|
11 | RTEMS_CPU=unix |
---|
12 | RTEMS_CPU_FAMILY=hppa1_1 |
---|
13 | RTEMS_CPU_MODEL=hppa7200 |
---|
14 | RTEMS_UNIX_FLAVOR=hpux |
---|
15 | |
---|
16 | # This is the actual bsp directory used during the build process. |
---|
17 | RTEMS_BSP_FAMILY=posix |
---|
18 | |
---|
19 | # share the posix bsp |
---|
20 | TARGET_ARCH=o-hpux9 |
---|
21 | RTEMS_BSP=posix |
---|
22 | |
---|
23 | include $(RTEMS_ROOT)/make/custom/default.cfg |
---|
24 | |
---|
25 | # use the macros instead of the inline functions |
---|
26 | # The macros work better when mixed with other compilers. |
---|
27 | INLINE=macros |
---|
28 | INLINE_UPCASE=MACRO |
---|
29 | |
---|
30 | # RTEMS_LIBC_DIR must already be set (by configuration) DOES NOT MATTER |
---|
31 | LIBC_DEFINES=-DRTEMS_UNIXLIB -DRTEMS_UNIX -DMALLOC_PROVIDED -DRTEMS_DEBUG |
---|
32 | |
---|
33 | # The following define the memory reserved in the executable for the |
---|
34 | # RTEMS Workspace and the C Program Heap. |
---|
35 | # NOTE: some of the timing tests need > 1M workspace |
---|
36 | LIBC_DEFINES += -DWORKSPACE_MB=2 |
---|
37 | LIBC_DEFINES += -DHEAPSPACE_MB=1 |
---|
38 | |
---|
39 | # Define this to yes if this target supports multiprocessor environments. |
---|
40 | HAS_MP=yes |
---|
41 | |
---|
42 | # This target does NOT support the TCP/IP stack so ignore requests |
---|
43 | # to enable it. |
---|
44 | HAS_NETWORKING=no |
---|
45 | |
---|
46 | # This target does NOT support the POSIX API. |
---|
47 | HAS_POSIX_API=no |
---|
48 | |
---|
49 | # optimize flag: typically -0, could use -O4 or -fast |
---|
50 | # -O4 is ok for RTEMS |
---|
51 | CFLAGS_OPTIMIZE_V = -O2 |
---|
52 | |
---|
53 | # This section makes the target dependent options file. |
---|
54 | |
---|
55 | # NDEBUG (C library) |
---|
56 | # if defined asserts do not generate code. This is commonly used |
---|
57 | # as a command line option. |
---|
58 | # |
---|
59 | # RTEMS_TEST_NO_PAUSE (RTEMS tests) |
---|
60 | # do not pause between screens of output in the rtems tests |
---|
61 | # |
---|
62 | # NO_TABLE_MOVE (SPARC PORT) |
---|
63 | # do not have a second trap table -- use the BSP's |
---|
64 | # |
---|
65 | # RTEMS_DEBUG (RTEMS) |
---|
66 | # If defined, debug checks in RTEMS and support library code are enabled. |
---|
67 | # |
---|
68 | # RTEMS_UNIX (unix) |
---|
69 | # Define this to indicate this is an RTEMS UNIX port. |
---|
70 | |
---|
71 | define make-target-options |
---|
72 | echo "/* #define NDEBUG 1 */ " >>$@ |
---|
73 | echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
---|
74 | echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
---|
75 | echo "#define RTEMS_UNIX 1 " >>$@ |
---|
76 | endef |
---|
77 | |
---|
78 | define make-exe |
---|
79 | $(CC) $(CFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS) |
---|
80 | $(NM) -ng $@ > $(basename $@).num |
---|
81 | $(SIZE) $@ |
---|
82 | endef |
---|
83 | |
---|
84 | # Miscellaneous additions go here |
---|
85 | |
---|