Fix gcc warnings
[wmaker-crm.git] / wrlib / Makefile.am
blobe644cedb3678cc703464114591491aeccf068bb3
1 ## automake input file for wrlib
3 SUBDIRS = . tests
5 AUTOMAKE_OPTIONS = no-dependencies
7 lib_LTLIBRARIES = libwraster.la
9 libwraster_la_LDFLAGS = -version-info 4:0:1
11 LIBTOOL = $(QUIET) $(SHELL) $(top_srcdir)/libtool $(LIBTOOL_ARG)
13 bin_SCRIPTS = get-wraster-flags
15 include_HEADERS = wraster.h
17 libwraster_la_SOURCES =         \
18         LookupCmap.c    \
19         StdCmap.c       \
20         StdCmap.h       \
21         CrCmap.c        \
22         DelCmap.c       \
23         CmapAlloc.c     \
24         raster.c        \
25         draw.c          \
26         color.c         \
27         load.c          \
28         save.c          \
29         gradient.c      \
30         xpixmap.c       \
31         convert.c       \
32         x86_specific.c  \
33         context.c       \
34         misc.c          \
35         scale.c         \
36         rotate.c        \
37         convolve.c      \
38         nxpm.c          \
39         xpm.c           \
40         xutil.c         \
41         ppm.c           \
42         png.c           \
43         jpeg.c          \
44         tiff.c          \
45         gif.c
48 .c:
49         $(QUIET)$(COMPILE) -c $<
51 .c.obj:
52         $(QUIET)$(COMPILE) -c `$(CYGPATH_W) '$<'`
54 # This is the same as LTCOMPILE but without LIBTOOL
55 LTCOMPILE1= --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
56         --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
57         $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
59 LTCOMPILE2=`echo $(LTCOMPILE1) | sed -e s/-fomit-frame-pointer//`
60 COMPILE2=`echo $(COMPILE) | sed -e s/-fomit-frame-pointer//`
62 # cant compile asm stuff with optimizations
63 x86_specific.lo: x86_specific.c
64         $(LIBTOOL) $(LTCOMPILE2) -O0 -c $<
66 x86_specific.o: x86_specific.c
67         $(QUIET)$(COMPILE2) -O0 -c $<
70 INCLUDES = $(DFLAGS) @HEADER_SEARCH_PATH@
72 libwraster_la_LIBADD = @ALLOCA@ @LIBRARY_SEARCH_PATH@ @GFXLIBS@ @XLIBS@ -lm
74 DISTCLEANFILES = wrlib.pc
76 install-exec-local:
77         @$(NORMAL_INSTALL)
78         $(mkinstalldirs) $(DESTDIR)$(libdir)/pkgconfig
79         @list='wrlib.pc'; for p in $$list; do \
80           if test -f $$p; then \
81             echo "$(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/pkgconfig/"; \
82             $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/pkgconfig/; \
83           else :; fi; \
84         done