summaryrefslogtreecommitdiff
path: root/PACE/tests/Makefile
blob: e8bbac30acbd2d157ce25f7662368f3f29421a8f (plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
#----------------------------------------------------------------------------
#
# $Id$
#
#       Makefile for all the PACE tests
#----------------------------------------------------------------------------

CFLAGS += -DPACE_HAS_ALL_POSIX_FUNCS

#----------------------------------------------------------------------------
#       Local macros
#----------------------------------------------------------------------------

BIN =   Stdio_Test \
        Posix_SP_Test \
	mqueue_test

#### If the PACE library wasn't built with all components, don't
#### try to build certain tests.
PACE_BUILD_COMPONENTS := $(shell sh $(ACE_ROOT)/bin/ace_components --pace)

PSRC=$(addsuffix .c,$(BIN))

#----------------------------------------------------------------------------
#       Include macros and targets
#----------------------------------------------------------------------------

include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU
ACELIB =
INCLDIRS += -I$(PACE_ROOT)
include $(ACE_ROOT)/include/makeinclude/macros.GNU
include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU

ifndef SOEXT
  SOEXT=so
endif

include $(ACE_ROOT)/include/makeinclude/rules.local.GNU

include $(ACE_ROOT)/PACE/include/makeinclude/rules.common.GNU

ifndef static_libs_only
  ifndef shared_libs_only
    static_libs_only = 1
  endif # shared_libs_only
endif # static_libs_only

# If we are inlining the PACE functions then we don't want to include
# the PACE library (and we need to define PACE_HAS_INLINE). If we're not
# inlining then we need to include the PACE library. Inlining is the default.

ifndef inline
  CFLAGS += -DPACE_HAS_INLINE
else
  ifneq (0,$(inline))
    CFLAGS += -DPACE_HAS_INLINE
  else
    LIBS += -L$(ACE_ROOT)/PACE/pace -lPACE
  endif # ! inline
endif # ! inline

# To compile in the PACE lib on platforms that compile c code
ifeq  (1, $(emulation))
  LIBS += -L$(PACE_ROOT)/pace -lPACE
endif # emulation

# To build multiple executables in the same directory on AIX, it works
# best to wipe out any previously-created tempinc directory.
# The compiler/linker isn't too smart about instantiating templates...
ifdef TEMPINCDIR
COMPILE.cc := $(RM) -rf tempinc; $(COMPILE.cc)
endif

#----------------------------------------------------------------------------
#       Local targets
#----------------------------------------------------------------------------

#----------------------------------------------------------------------------
#       Dependencies
#----------------------------------------------------------------------------
# DO NOT DELETE THIS LINE -- g++dep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.


.obj/Stdio_Test.o .obj/Stdio_Test.so .shobj/Stdio_Test.o .shobj/Stdio_Test.so: Stdio_Test.c $(ACE_ROOT)/PACE/pace/stdio.h \
 $(ACE_ROOT)/PACE/pace/config/defines.h \
 $(ACE_ROOT)/PACE/pace/config/platform.h \
 $(ACE_ROOT)/PACE/pace/config/config.h \
 $(ACE_ROOT)/PACE/pace/config/compiler.h \
 $(ACE_ROOT)/PACE/pace/config/constants.h \
 $(ACE_ROOT)/PACE/pace/sys/types.h \
 $(ACE_ROOT)/PACE/pace/config/defaults.h \
 $(ACE_ROOT)/PACE/pace/config/utility.h \
 $(ACE_ROOT)/PACE/pace/errno.h \
 $(ACE_ROOT)/PACE/pace/config/features.h \
 $(ACE_ROOT)/PACE/pace/unistd.h \
 $(ACE_ROOT)/PACE/pace/string.h

.obj/Posix_SP_Test.o .obj/Posix_SP_Test.so .shobj/Posix_SP_Test.o .shobj/Posix_SP_Test.so: Posix_SP_Test.c \
 $(ACE_ROOT)/PACE/pace/stdio.h \
 $(ACE_ROOT)/PACE/pace/config/defines.h \
 $(ACE_ROOT)/PACE/pace/config/platform.h \
 $(ACE_ROOT)/PACE/pace/config/config.h \
 $(ACE_ROOT)/PACE/pace/config/compiler.h \
 $(ACE_ROOT)/PACE/pace/config/constants.h \
 $(ACE_ROOT)/PACE/pace/sys/types.h \
 $(ACE_ROOT)/PACE/pace/config/defaults.h \
 $(ACE_ROOT)/PACE/pace/config/utility.h \
 $(ACE_ROOT)/PACE/pace/errno.h \
 $(ACE_ROOT)/PACE/pace/config/features.h \
 $(ACE_ROOT)/PACE/pace/unistd.h \
 $(ACE_ROOT)/PACE/pace/time.h \
 $(ACE_ROOT)/PACE/pace/sys/utsname.h

.obj/mqueue_test.o .obj/mqueue_test.so .shobj/mqueue_test.o .shobj/mqueue_test.so: mqueue_test.c \
 $(ACE_ROOT)/PACE/pace/stdio.h \
 $(ACE_ROOT)/PACE/pace/config/defines.h \
 $(ACE_ROOT)/PACE/pace/config/platform.h \
 $(ACE_ROOT)/PACE/pace/config/config.h \
 $(ACE_ROOT)/PACE/pace/config/compiler.h \
 $(ACE_ROOT)/PACE/pace/config/constants.h \
 $(ACE_ROOT)/PACE/pace/sys/types.h \
 $(ACE_ROOT)/PACE/pace/config/defaults.h \
 $(ACE_ROOT)/PACE/pace/config/utility.h \
 $(ACE_ROOT)/PACE/pace/errno.h \
 $(ACE_ROOT)/PACE/pace/config/features.h \
 $(ACE_ROOT)/PACE/pace/fcntl.h \
 $(ACE_ROOT)/PACE/pace/mqueue.h \
 $(ACE_ROOT)/PACE/pace/signal.h \
 $(ACE_ROOT)/PACE/pace/stdlib.h \
 $(ACE_ROOT)/PACE/pace/unistd.h \
 $(ACE_ROOT)/PACE/pace/string.h

# IF YOU PUT ANYTHING HERE IT WILL GO AWAY