diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-04-09 18:18:43 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-04-09 18:18:43 +0000 |
| commit | d0e9015651aa960cf8cb58a5ab08da79e6aeb51b (patch) | |
| tree | 6f4462d4855d008da4a03b67cbd8c5e03f2f96a2 /build/Makefile.obcl | |
| parent | c2983d1f155e3fe67d32cf9cf10cb2cb7661096b (diff) | |
add libcwmcc and libobcl
Diffstat (limited to 'build/Makefile.obcl')
| -rw-r--r-- | build/Makefile.obcl | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/build/Makefile.obcl b/build/Makefile.obcl new file mode 100644 index 00000000..c602c686 --- /dev/null +++ b/build/Makefile.obcl @@ -0,0 +1,46 @@ +include build/Makefile.incl + +dir = obcl + +CPPFLAGS += $(GLIB_CFLAGS) $(XFT_CFLAGS) -DG_LOG_DOMAIN=\"OBCF\" + +target = libobcl.la +sources = obcl.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 |
