Improvements in Makefile

This commit is contained in:
Ashish Kumar Yadav 2020-07-26 18:08:05 +05:30
parent cc5d9dc57e
commit a5c92746ed

View file

@ -3,7 +3,7 @@ PREFIX = ${HOME}/.local
CC = gcc
CFLAGS = -O3 -Wall -Wextra
CFLAGSEXTRA = -Wno-unused-parameter -Wno-missing-field-initializers
CFLAGSEXTRA = -Wno-missing-field-initializers -Wno-unused-parameter
all: dwmblocks sigdwmblocks
@ -11,10 +11,10 @@ dwmblocks: dwmblocks.c blocks.h
${CC} -o $@ -lX11 ${CFLAGS} ${CFLAGSEXTRA} $<
sigdwmblocks: sigdwmblocks.c
${CC} -o $@ ${CFLAGS} sigdwmblocks.c
${CC} -o $@ ${CFLAGS} $<
xgetrootname: xgetrootname.c
${CC} -o $@ -lX11 ${CFLAGS} xgetrootname.c
${CC} -o $@ -lX11 ${CFLAGS} $<
clean:
rm -f dwmblocks sigdwmblocks