5 # Beware: in releases, the Notion system.mk is used to build both libtu,
6 # libextl and notion - so structural changes to this file should also be
7 # carried out on the Notion system.mk
15 # No need to modify these usually
21 INCDIR
=$(PREFIX
)/include
28 # You may uncomment this if you know your system has
29 # asprintf and vasprintf in the c library. (gnu libc has.)
30 # If HAS_SYSTEM_ASPRINTF is not defined, an implementation
31 # in sprintf_2.2/ is used.
41 # The POSIX_SOURCE, XOPEN_SOURCE and WARN options should not be necessary,
42 # they're mainly for development use. So, if they cause trouble (not
43 # the ones that should be used on your system or the system is broken),
44 # just comment them out.
47 POSIX_SOURCE
=-D_POSIX_SOURCE
49 # Same as '-Wall -pedantic' without '-Wunused' as callbacks often
50 # have unused variables.
51 WARN
= -W
-Wimplicit
-Wreturn-type
-Wswitch
-Wcomment \
52 -Wtrigraphs
-Wformat
-Wchar-subscripts \
53 -Wparentheses
-pedantic
-Wuninitialized
56 CFLAGS
=-g
-Os
$(WARN
) $(DEFINES
) $(INCLUDES
) $(EXTRA_INCLUDES
) -DHAS_SYSTEM_ASPRINTF
=$(HAS_SYSTEM_ASPRINTF
)
57 LDFLAGS
=-g
$(LIBS
) $(EXTRA_LIBS
)
73 # Should work almost everywhere
74 INSTALL
=sh
$(TOPDIR
)/install-sh
-c