summaryrefslogtreecommitdiff
path: root/build/Makefile.cwmcc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-04-09 18:18:43 +0000
committerDana Jansens <danakj@orodu.net>2003-04-09 18:18:43 +0000
commitd0e9015651aa960cf8cb58a5ab08da79e6aeb51b (patch)
tree6f4462d4855d008da4a03b67cbd8c5e03f2f96a2 /build/Makefile.cwmcc
parentc2983d1f155e3fe67d32cf9cf10cb2cb7661096b (diff)
add libcwmcc and libobcl
Diffstat (limited to 'build/Makefile.cwmcc')
-rw-r--r--build/Makefile.cwmcc46
1 files changed, 46 insertions, 0 deletions
diff --git a/build/Makefile.cwmcc b/build/Makefile.cwmcc
new file mode 100644
index 00000000..4e17a7dd
--- /dev/null
+++ b/build/Makefile.cwmcc
@@ -0,0 +1,46 @@
+include build/Makefile.incl
+
+dir = cwmcc
+
+CPPFLAGS += $(GLIB_CFLAGS) $(XFT_CFLAGS) -DG_LOG_DOMAIN=\"CWMCC\"
+
+target = libcwmcc.la
+sources = cwmcc.c
+
+srcdir := $(srcdir)/$(dir)
+target := $(addprefix $(dir)/, $(target))
+objects := $(addprefix $(dir)/, $(sources:.c=.lo))
+sources := $(addprefix $(srcdir)/, $(sources))
+deps := $(addprefix $(depdir)/, $(objects:.lo=.d))
+depdir := $(depdir)/$(dir)
+
+all: $(target)
+
+$(target): $(objects)
+ $(LINK) -o $@ $^ $(LDFLAGS)
+
+$(dir)/%.lo: $(srcdir)/%.c $(depdir)/%.d
+ $(LTCOMPILE) -c -o $@ $<
+
+$(depdir)/%.d: $(srcdir)/%.c
+ @echo Building dependancies for $<
+ @$(INSTALL) -d $(depdir)
+ @$(DEPCOMPILE) -w -MM -MF $@ -MQ $(<:.c=.o) $<
+
+install:
+ $(INSTALL) -d $(DESTDIR)$(libdir)/
+ $(LIBTOOL) --mode=install $(INSTALL) $(target) \
+ $(DESTDIR)$(libdir)/$(notdir $(target))
+
+uninstall:
+ $(LTRM) $(DESTDIR)$(libdir)/$(notdir $(target))
+
+clean:
+ $(LTCLEAN) $(target) $(objects)
+ $(RM) $(srcdir)/*\~
+
+distclean:
+
+-include $(deps)
+
+.PHONY: all install uninstall clean distclean