Use proper inference rules
This commit is contained in:
parent
38b491c9ba
commit
3731dc0b46
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue