blob: 68040feef8300216c754fb3742dc84661de1fe2f [file] [log] [blame]
nethercote4388a402004-09-01 23:20:49 +00001include $(top_srcdir)/Makefile.all.am
2include $(top_srcdir)/Makefile.core-AM_CPPFLAGS.am
njn25cac76cb2002-09-23 11:21:57 +00003
nethercote7f390022004-10-25 17:18:24 +00004## Test repeated in both arms of the if-then-else because older versions of
5## automake don't seem to like having += within an if-then-else.
6if USE_PIE
7AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -O -g -fpie
8else
nethercote89dd2552004-10-25 15:32:09 +00009AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -O -g
nethercote7f390022004-10-25 17:18:24 +000010endif
sewardj16851842002-04-24 11:14:22 +000011
sewardjde4a1d02002-03-22 01:27:54 +000012noinst_HEADERS = \
13 ansidecl.h \
gobry1be19852002-03-26 20:44:55 +000014 dyn-string.h \
15 demangle.h \
16 safe-ctype.h
sewardjde4a1d02002-03-22 01:27:54 +000017
18noinst_LIBRARIES = libdemangle.a
19
20libdemangle_a_SOURCES = \
21 cp-demangle.c cplus-dem.c dyn-string.c safe-ctype.c
22
nethercote4388a402004-09-01 23:20:49 +000023## Ignore harmless warnings for these ones
njna63e2d72003-06-12 14:13:05 +000024cp-demangle.o: CFLAGS += -Wno-unused -Wno-shadow
25cplus-dem.o: CFLAGS += -Wno-unused
26