1 # template for Unix-specific compiler definitions
7 LIBTOOL := $(BUILD)/libtool
11 # The object file extension (for standard and static libraries). This can be
12 # .o, .tco, .obj, etc., depending on the platform.
18 # The library file extension (for standard and static libraries). This can
19 # be .a, .lib, etc., depending on the platform.
25 # The name of the final library file. Note that the DOS-specific Makefile
26 # uses a shorter (8.3) name.
28 LIBRARY := lib$(PROJECT)
31 # Path inclusion flag. Some compilers use a different flag than `-I' to
32 # specify an additional include path. Examples are `/i=' or `-J'.
37 # C flag used to define a macro before the compilation of a given source
38 # object. Usually it is `-D' like in `-DDEBUG'.
43 # The link flag used to specify a given library file on link. Note that
44 # this is only used to compile the demo programs, not the library itself.
51 T := -o # Don't remove this comment line! We need the space after `-o'.
56 # These should concern: debug output, optimization & warnings.
58 # Use the ANSIFLAGS variable to define the compiler flags used to enfore
61 CFLAGS := -c @XX_CFLAGS@ @CFLAGS@
63 # ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
65 ANSIFLAGS := @XX_ANSIFLAGS@
67 # C compiler to use -- we use libtool!
71 CC := $(LIBTOOL) --mode=compile $(CCraw)
80 LINK_LIBRARY = $(LIBTOOL) --mode=link $(CCraw) -o $@ $(OBJECTS_LIST) \
81 -rpath $(libdir) -version-info $(version_info) \