]> Dogcows Code - chaz/openbox/blob - build/Makefile.render
use .los not .os
[chaz/openbox] / build / Makefile.render
1 include build/Makefile.incl
2
3 dir = render
4
5 CPPFLAGS += $(GLIB_CFLAGS) $(XFT_CFLAGS) -DG_LOG_DOMAIN=\"Render\"
6
7 target = libobrender.la
8 sources = color.c font.c gradient.c image.c mask.c render.c test.c
9
10 srcdir := $(srcdir)/$(dir)
11 target := $(addprefix $(dir)/, $(target))
12 objects := $(addprefix $(dir)/, $(sources:.c=.lo))
13 sources := $(addprefix $(srcdir)/, $(sources))
14 deps := $(addprefix $(depdir)/, $(objects:.lo=.d))
15 depdir := $(depdir)/$(dir)
16
17 all: $(target)
18
19 $(target): $(objects)
20 $(LINK) -rpath $(libdir) -o $@ $^ $(LDFLAGS)
21
22 $(dir)/%.lo: $(srcdir)/%.c $(depdir)/%.d
23 $(LTCOMPILE) -c -o $@ $<
24
25 $(depdir)/%.d: $(srcdir)/%.c
26 @echo Building dependancies for $<
27 @$(INSTALL) -d $(depdir)
28 @$(DEPCOMPILE) -w -MM -MF $@ -MQ $(<:.c=.lo) $<
29
30 install:
31 $(INSTALL) -d $(DESTDIR)$(libdir)/
32 $(LIBTOOL) --mode=install $(INSTALL) $(target) \
33 $(DESTDIR)$(libdir)/$(notdir $(target))
34 $(LIBTOOL) --mode=finish $(DESTDIR)$(libdir)
35
36 uninstall:
37 $(LTRM) $(DESTDIR)$(libdir)/$(notdir $(target))
38
39 clean:
40 $(LTCLEAN) $(target) $(objects)
41 $(RM) $(srcdir)/*\~
42
43 distclean:
44
45 -include $(deps)
46
47 .PHONY: all install uninstall clean distclean
This page took 0.036123 seconds and 4 git commands to generate.