Skip to content

Commit

Permalink
Add mxqset to build system
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Apr 13, 2020
1 parent 0a70658 commit a3f6872
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ mx_mysql.o
mxqd_control.o
keywordset.o
test_keywordset.o
mxqset.o


mxqsub
Expand All @@ -32,6 +33,7 @@ mxqdump
mxqkill
mxqd
mxqps
mxqset
test_mx_util
test_mx_log
test_mx_mysq
Expand Down
25 changes: 25 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,16 @@ mxqadmin.o: CFLAGS += $(CFLAGS_MYSQL)

clean: CLEAN += mxqadmin.o

### mxqset.o ----------------------------------------------------------

mxqsset.o: $(mx_mysql.h)
mxqsset.o: $(keywordset.h)
mxqkill.o: $(mxq.h)
mxqkill.o: $(mxq_group.h)
mxqset.o: CFLAGS += $(CFLAGS_MYSQL)

clean: CLEAN += mxqsset.o

### mxqkill.o ----------------------------------------------------------

mxqkill.o: $(mx_log.h)
Expand Down Expand Up @@ -579,6 +589,21 @@ clean: CLEAN += mxqadmin
install:: mxqadmin
$(call quiet-installforuser,$(SUID_MODE),$(UID_CLIENT),$(GID_CLIENT),mxqadmin,${DESTDIR}${BINDIR}/mxqadmin)

### mxqset ---------------------------------------------------------------

mxqset: mx_mysql.o
mxqset: mx_log.o
mxqset: mx_util.o
mxqset: keywordset.o
mxqset: LDLIBS += $(LDLIBS_MYSQL)

build: mxqset

clean: CLEAN += mxqset

install:: mxqset
$(call quiet-installforuser,$(SUID_MODE),$(UID_CLIENT),$(GID_CLIENT),mxqset,${DESTDIR}${BINDIR}/mxqset)

### mxqkill ------------------------------------------------------------

mxqkill: mx_log.o
Expand Down

0 comments on commit a3f6872

Please sign in to comment.