Avoid '$^' variable
GNU make extension, which is not supported by other make programs.
This commit is contained in:
parent
3731dc0b46
commit
f7549f0948
1 changed files with 6 additions and 6 deletions
12
Makefile
12
Makefile
|
@ -37,27 +37,27 @@ DEMO_OBJ = \
|
||||||
all: libquirc.so qrtest inspect quirc-demo quirc-scanner
|
all: libquirc.so qrtest inspect quirc-demo quirc-scanner
|
||||||
|
|
||||||
qrtest: tests/dbgutil.o tests/qrtest.o libquirc.a
|
qrtest: tests/dbgutil.o tests/qrtest.o libquirc.a
|
||||||
$(CC) -o $@ $^ $(LDFLAGS) -lm -ljpeg -lpng
|
$(CC) -o $@ tests/dbgutil.o tests/qrtest.o libquirc.a $(LDFLAGS) -lm -ljpeg -lpng
|
||||||
|
|
||||||
inspect: tests/dbgutil.o tests/inspect.o libquirc.a
|
inspect: tests/dbgutil.o tests/inspect.o libquirc.a
|
||||||
$(CC) -o $@ $^ $(LDFLAGS) -lm -ljpeg -lpng $(SDL_LIBS) -lSDL_gfx
|
$(CC) -o $@ tests/dbgutil.o tests/inspect.o libquirc.a $(LDFLAGS) -lm -ljpeg -lpng $(SDL_LIBS) -lSDL_gfx
|
||||||
|
|
||||||
quirc-demo: $(DEMO_OBJ) demo/demo.o libquirc.a
|
quirc-demo: $(DEMO_OBJ) demo/demo.o libquirc.a
|
||||||
$(CC) -o $@ $^ $(LDFLAGS) -lm -ljpeg $(SDL_LIBS) -lSDL_gfx
|
$(CC) -o $@ $(DEMO_OBJ) demo/demo.o libquirc.a $(LDFLAGS) -lm -ljpeg $(SDL_LIBS) -lSDL_gfx
|
||||||
|
|
||||||
quirc-scanner: $(DEMO_OBJ) demo/scanner.o libquirc.a
|
quirc-scanner: $(DEMO_OBJ) demo/scanner.o libquirc.a
|
||||||
$(CC) -o $@ $^ $(LDFLAGS) -lm -ljpeg
|
$(CC) -o $@ $(DEMO_OBJ) demo/scanner.o libquirc.a $(LDFLAGS) -lm -ljpeg
|
||||||
|
|
||||||
libquirc.a: $(LIB_OBJ)
|
libquirc.a: $(LIB_OBJ)
|
||||||
rm -f $@
|
rm -f $@
|
||||||
ar cru $@ $^
|
ar cru $@ $(LIB_OBJ)
|
||||||
ranlib $@
|
ranlib $@
|
||||||
|
|
||||||
.PHONY: libquirc.so
|
.PHONY: libquirc.so
|
||||||
libquirc.so: libquirc.so.$(LIB_VERSION)
|
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 $@ $(LIB_OBJ) $(LDFLAGS) -lm
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) -fPIC $(QUIRC_CFLAGS) -o $@ -c $<
|
$(CC) -fPIC $(QUIRC_CFLAGS) -o $@ -c $<
|
||||||
|
|
Loading…
Reference in a new issue