Use proper inference rules

This commit is contained in:
Dmitrij D. Czarkoff 2016-08-11 11:34:13 +02:00
parent 38b491c9ba
commit 3731dc0b46

View file

@ -59,8 +59,8 @@ libquirc.so: libquirc.so.$(LIB_VERSION)
libquirc.so.$(LIB_VERSION): $(LIB_OBJ) libquirc.so.$(LIB_VERSION): $(LIB_OBJ)
$(CC) -shared -o $@ $^ $(LDFLAGS) -lm $(CC) -shared -o $@ $^ $(LDFLAGS) -lm
%.o: %.c .c.o:
$(CC) -fPIC $(QUIRC_CFLAGS) -o $*.o -c $*.c $(CC) -fPIC $(QUIRC_CFLAGS) -o $@ -c $<
install: libquirc.a libquirc.so.$(LIB_VERSION) quirc-demo quirc-scanner install: libquirc.a libquirc.so.$(LIB_VERSION) quirc-demo quirc-scanner
install -o root -g root -m 0644 lib/quirc.h $(DESTDIR)$(PREFIX)/include install -o root -g root -m 0644 lib/quirc.h $(DESTDIR)$(PREFIX)/include