From 3731dc0b4634dbce82a3a6061553ca5e4e1ae15a Mon Sep 17 00:00:00 2001 From: "Dmitrij D. Czarkoff" Date: Thu, 11 Aug 2016 11:34:13 +0200 Subject: [PATCH] Use proper inference rules --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 796f75b..0bc87c3 100644 --- a/Makefile +++ b/Makefile @@ -59,8 +59,8 @@ libquirc.so: libquirc.so.$(LIB_VERSION) libquirc.so.$(LIB_VERSION): $(LIB_OBJ) $(CC) -shared -o $@ $^ $(LDFLAGS) -lm -%.o: %.c - $(CC) -fPIC $(QUIRC_CFLAGS) -o $*.o -c $*.c +.c.o: + $(CC) -fPIC $(QUIRC_CFLAGS) -o $@ -c $< install: libquirc.a libquirc.so.$(LIB_VERSION) quirc-demo quirc-scanner install -o root -g root -m 0644 lib/quirc.h $(DESTDIR)$(PREFIX)/include