Renamed Makefile to GNUmakefile

Since gnu make specific features are being used, Makefile was
renamed to GNUmakefile.
This commit is contained in:
Ashish Kumar Yadav 2020-08-22 20:26:30 +05:30
parent 62f5636691
commit 39ced773b6

View file

@ -1,20 +1,23 @@
#PREFIX = /usr/local
PREFIX = ${HOME}/.local
#PREFIX := /usr/local
PREFIX := ${HOME}/.local
CC = gcc
CFLAGS = -O3 -Wall -Wextra
CFLAGSEXTRA = -Wno-missing-field-initializers -Wno-unused-parameter
CC := gcc
CFLAGS := -O3 -Wall -Wextra
CFLAGSEXTRA := -Wno-missing-field-initializers -Wno-unused-parameter
X11CFLAGS := $(shell pkg-config --cflags x11)
X11LIBS := $(shell pkg-config --libs x11)
all: dwmblocks sigdwmblocks
dwmblocks: dwmblocks.c blocks.h
${CC} -o $@ ${CFLAGS} ${CFLAGSEXTRA} `pkg-config --cflags x11` $< `pkg-config --libs x11`
${CC} -o $@ ${CFLAGS} ${CFLAGSEXTRA} ${X11CFLAGS} $< ${X11LIBS}
sigdwmblocks: sigdwmblocks.c
${CC} -o $@ ${CFLAGS} $<
xgetrootname: xgetrootname.c
${CC} -o $@ ${CFLAGS} `pkg-config --cflags x11` $< `pkg-config --libs x11`
${CC} -o $@ ${CFLAGS} ${X11CFLAGS} $< ${X11LIBS}
clean:
rm -f dwmblocks sigdwmblocks