rework makefile and toggle a little
This commit is contained in:
parent
811df18d54
commit
9151f9358b
7
Makefile
7
Makefile
|
@ -9,9 +9,12 @@ include toggle.mk
|
|||
SRC = draw.c speedwm.c main.c
|
||||
OBJ = ${SRC:.c=.o}
|
||||
|
||||
ifdef USEIPC
|
||||
# ipc
|
||||
ifdef YAJLLIBS
|
||||
IPC=speedwm-ipc
|
||||
endif
|
||||
|
||||
# status
|
||||
ifdef USESTATUS
|
||||
STATUS=status
|
||||
endif
|
||||
|
@ -40,7 +43,7 @@ status.o: status.c status.h
|
|||
$(CC) -c status.c
|
||||
endif
|
||||
|
||||
ifdef USEIPC
|
||||
ifdef YAJLLIBS
|
||||
speedwm-ipc: toggle/ipc-speedwm-msg.o
|
||||
${CC} -o $@ toggle/ipc-speedwm-msg.c ${LDFLAGS} ; rm -f ipc-speedwm-msg.o
|
||||
endif
|
||||
|
|
|
@ -5,9 +5,8 @@
|
|||
# IPC
|
||||
# Whether or not to compile in IPC support.
|
||||
# If you use OpenBSD or FreeBSD, this is not supported. In that case comment out these three lines and set USEIPC in toggle.h to 0.
|
||||
USEIPC = true # Comment if you don't use IPC
|
||||
YAJLLIBS = -lyajl # Comment if you don't use IPC
|
||||
YAJLINC = /usr/include/yajl # Comment if you don't use IPC
|
||||
YAJLLIBS = -lyajl # Comment if you don't use IPC
|
||||
|
||||
# Built in status
|
||||
# Whether or not to compile the built in status bar (fork of dwmblocks).
|
||||
|
|
Loading…
Reference in a new issue