Skip to content

Commit c4fb5f0

Browse files
committed
Fixed bug in Makefile - link all prerequisites, not just newer ones
1 parent b45f3e1 commit c4fb5f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ TARGETS=mqtt-sn-pub mqtt-sn-sub mqtt-sn-serial-bridge
99
all: $(TARGETS)
1010

1111
$(TARGETS): %: mqtt-sn.o %.o
12-
$(CC) $(LDFLAGS) -o $@ $?
12+
$(CC) $(LDFLAGS) -o $@ $^
1313

1414
%.o : %.c mqtt-sn.h
1515
$(CC) $(CFLAGS) -c $<

0 commit comments

Comments
 (0)