Skip to content

Commit

Permalink
Add testing target for compiling test client fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Jan 2, 2020
1 parent d452ea1 commit 6aa9b91
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ build/
client/mosquitto_pub
client/mosquitto_rr
client/mosquitto_sub
client/testing
client/testing.c

cov-int/

Expand Down
9 changes: 9 additions & 0 deletions client/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ client_shared.o : client_shared.c client_shared.h
client_props.o : client_props.c client_shared.h
${CROSS_COMPILE}${CC} $(CLIENT_CPPFLAGS) $(CLIENT_CFLAGS) -c $< -o $@

# The "testing" target is intended to make it easy to compile a quick client
# for testing purposes. testing.c should not be committed as a file.
testing : testing.o
${CROSS_COMPILE}${CC} $(CLIENT_LDFLAGS) $^ -o $@ $(CLIENT_LDADD) $(CLIENT_LDFLAGS)

testing.o : testing.c
${CROSS_COMPILE}${CC} $(CLIENT_CPPFLAGS) $(CLIENT_CFLAGS) -c $< -o $@


../lib/libmosquitto.so.${SOVERSION} :
$(MAKE) -C ../lib

Expand Down

0 comments on commit 6aa9b91

Please sign in to comment.