1 # Make file for so-thresh test
8 # This is how to build this generator.
9 genso-thresh.o
: ${SRCDIR}/genso-thresh.c
10 $(CC
) $(CFLAGS
) -o genso-thresh.o
-c
${SRCDIR}/genso-thresh.c
11 genso-thresh
: genso-thresh.o
12 $(CC
) $(CFLAGS
) -o genso-thresh genso-thresh.o
14 # This is how to run this generator.
15 # This target should be made before the 'all' target,
16 # to ensure that the shlib sources are all available.
17 require_shlibs
: genso-thresh
18 if
! [ -a lib00-so-thresh.c
] ; then \
21 if
! [ -a lib01-so-thresh.c
] ; then \
24 if
! [ -a lib02-so-thresh.c
] ; then \
28 # This is how to build all the shlibs.
29 # Be sure to first make the require_shlibs target!
30 lib00-so-thresh.o
: lib00-so-thresh.c
31 $(CC
) $(CFLAGS
) +Z
-o lib00-so-thresh.o
-c lib00-so-thresh.c
32 lib00-so-thresh.sl
: lib00-so-thresh.o
33 $(LD
) $(LDFLAGS
) -b
-o lib00-so-thresh.sl lib00-so-thresh.o
34 lib01-so-thresh.o
: lib01-so-thresh.c
35 $(CC
) $(CFLAGS
) +Z
-o lib01-so-thresh.o
-c lib01-so-thresh.c
36 lib01-so-thresh.sl
: lib01-so-thresh.o
37 $(LD
) $(LDFLAGS
) -b
-o lib01-so-thresh.sl lib01-so-thresh.o
38 lib02-so-thresh.o
: lib02-so-thresh.c
39 $(CC
) $(CFLAGS
) +Z
-o lib02-so-thresh.o
-c lib02-so-thresh.c
40 lib02-so-thresh.sl
: lib02-so-thresh.o
41 $(LD
) $(LDFLAGS
) -b
-o lib02-so-thresh.sl lib02-so-thresh.o
46 # For convenience, here's names for all pieces of all shlibs.
52 SHLIB_OBJECTS
= $(SHLIB_SOURCES
:.c
=.o
)
53 SHLIBS
= $(SHLIB_SOURCES
:.c
=.sl
)
54 SHLIB_NAMES
= $(SHLIB_SOURCES
:.c
=)
55 EXECUTABLES
= $(SHLIBS
) genso-thresh so-thresh
56 OBJECT_FILES
= $(SHLIB_OBJECTS
) genso-thresh.o so-thresh.o
58 shlib_objects
: $(SHLIB_OBJECTS
)
61 # This is how to build the debuggable testcase that uses the shlibs.
62 so-thresh.o
: so-thresh.c
63 $(CC
) $(CFLAGS
) -o so-thresh.o
-c so-thresh.c
64 so-thresh
: shlibs so-thresh.o
65 $(LD
) $(LDFLAGS
) -o so-thresh
-lc
-L
${OBJDIR} -c so-thresh.lopt
/opt
/langtools
/lib
/end.o
/lib
/crt0.o so-thresh.o
67 # Yeah, but you should first make the require_shlibs target!
68 all: so-thresh genso-thresh
70 # To remove everything built via this makefile...
72 rm -f lib0
*-so-thresh.
*
73 rm -f
*.o genso-thresh so-thresh.lopt so-thresh.c