X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=build%2FMakefile.kernel;h=a58798e244a4b6e80f21b53fd395817f87b55e01;hb=b3ed490e8f4c438535a2cf6be1600242e1031440;hp=a5e79c66ff9142e2e20374e7ee8f0e04b93c2fbb;hpb=787cbcf656890fae77fd3e6bef8e2d0cfc669ee8;p=chaz%2Fopenbox diff --git a/build/Makefile.kernel b/build/Makefile.kernel index a5e79c66..a58798e2 100644 --- a/build/Makefile.kernel +++ b/build/Makefile.kernel @@ -16,9 +16,9 @@ sources = action.c client.c config.c dispatch.c engine.c event.c group.c \ srcdir := $(srcdir)/$(dir) target := $(addprefix $(dir)/,$(target)) -objects := $(addprefix $(dir)/,$(sources:.c=.o)) +objects := $(addprefix $(dir)/,$(sources:.c=.lo)) sources := $(addprefix $(srcdir)/,$(sources)) -deps := $(addprefix $(depdir)/,$(objects:.o=.d)) +deps := $(addprefix $(depdir)/,$(objects:.lo=.d)) depdir := $(depdir)/$(dir) all: $(target) @@ -30,7 +30,7 @@ $(target): $(objects) render/libobrender.la $(srcdir)/%.c: $(srcdir)/%.y @ -$(dir)/%.o: $(srcdir)/%.c $(depdir)/%.d +$(dir)/%.lo: $(srcdir)/%.c $(depdir)/%.d $(COMPILE) -c -o $@ $< %.lex.c: %.l @@ -42,11 +42,12 @@ $(dir)/%.o: $(srcdir)/%.c $(depdir)/%.d $(depdir)/%.d: $(srcdir)/%.c @echo Building dependancies for $< $(INSTALL) -d $(depdir) - @$(CC) $(CPPFLAGS) $(CFLAGS) -w -MM -MF $@ -MQ $(<:.c=.o) $< + @$(CC) $(CPPFLAGS) $(CFLAGS) -w -MM -MF $@ -MQ $(<:.c=.lo) $< install: $(INSTALL) -d $(DESTDIR)$(bindir)/ - $(INSTALL) $(target) $(DESTDIR)$(bindir)/$(notdir $(target)) + $(LIBTOOL) --mode=install $(INSTALL) $(target) \ + $(DESTDIR)$(bindir)/$(notdir $(target)) uninstall: -$(RM) $(DESTDIR)$(bindir)/$(notdir $(target))