$(depdir)/%.d: $(srcdir)/%.c
@echo Building dependancies for $<
@$(INSTALL) -d $(depdir)
- @$(DEPCOMPILE) -w -MM -MF $@ -MQ $(<:.c=.o) $<
+ @$(DEPCOMPILE) -w -MM -MF $@ -MQ $(<:.c=.lo) $<
install:
$(INSTALL) -d $(DESTDIR)$(libdir)/
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)
$(srcdir)/%.c: $(srcdir)/%.y
@
-$(dir)/%.o: $(srcdir)/%.c $(depdir)/%.d
+$(dir)/%.lo: $(srcdir)/%.c $(depdir)/%.d
$(COMPILE) -c -o $@ $<
%.lex.c: %.l
$(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)/
$(depdir)/%.d: $(srcdir)/%.c
@echo Building dependancies for $<
@$(INSTALL) -d $(depdir)
- @$(DEPCOMPILE) -w -MM -MF $@ -MQ $(<:.c=.o) $<
+ @$(DEPCOMPILE) -w -MM -MF $@ -MQ $(<:.c=.lo) $<
install:
$(INSTALL) -d $(DESTDIR)$(libdir)/
$(depdir)/%.d: $(srcdir)/%.c
@echo Building dependancies for $<
@$(INSTALL) -d $(depdir)
- @$(DEPCOMPILE) -w -MM -MF $@ -MQ $(<:.c=.o) $<
+ @$(DEPCOMPILE) -w -MM -MF $@ -MQ $(<:.c=.lo) $<
install:
$(INSTALL) -d $(DESTDIR)$(libdir)/