12 # No need to modify these usually
18 INCDIR
=$(PREFIX
)/include
26 #MODULE_SUPPORT=-DCF_NO_MODULE_SUPPORT
27 MODULE_SUPPORT_LDFLAGS
=-export-dynamic
-ldl
31 ## X libraries, includes and options
37 #X11_PREFIX=/usr/openwin
39 X11_LIBS
=-L
$(X11_PREFIX
)/lib
40 X11_INCLUDES
=-I
$(X11_PREFIX
)/include
43 #EXTRA_INCLUDES = -I$(PREFIX)/include
44 #EXTRA_LIBS = -L$(PREFIX)/lib
51 # You may uncomment this if you know your system has
52 # asprintf and vasprintf in the c library. (gnu libc has.)
53 # If HAS_SYSTEM_ASPRINTF is not defined, an implementation
54 # in libtu/sprintf_2.2/ is used.
55 #HAS_SYSTEM_ASPRINTF=1
64 # The POSIX_SOURCE, XOPEN_SOURCE and WARN options should not be necessary,
65 # they're mainly for development use. So, if they cause trouble (not
66 # the ones that should be used on your system or the system is broken),
67 # just comment them out.
69 # libtu/ uses POSIX_SOURCE
71 POSIX_SOURCE
=-ansi
-D_POSIX_SOURCE
73 # and . (ion) XOPEN_SOURCE.
74 # There is variation among systems what should be used and how they interpret
75 # it so it is perhaps better not using anything at all.
78 #XOPEN_SOURCE=-ansi -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
80 #XOPEN_SOURCE=-ansi -D__EXTENSIONS__
82 # Same as '-Wall -pedantic-errors' without '-Wunused' as callbacks often
83 # have unused variables.
84 WARN
= -W
-Wimplicit
-Wreturn-type
-Wswitch
-Wcomment \
85 -Wtrigraphs
-Wformat
-Wchar-subscripts \
86 -Wparentheses
-Wuninitialized
89 CFLAGS
=-g
-O2
$(WARN
) $(DEFINES
) $(INCLUDES
) $(EXTRA_INCLUDES
)
90 LDFLAGS
=-g
$(LIBS
) $(EXTRA_LIBS
)
98 MAKE_DEPEND
=$(CC
) -M
$(DEFINES
) $(INCLUDES
) $(EXTRA_INCLUDES
) > $(DEPEND_FILE
)
114 # Should work almost everywhere
116 # On a system with pure BSD install, -c might be preferred