summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmbrose <me@librelife.org>2026-01-10 04:39:22 +0000
committerAmbrose <me@librelife.org>2026-01-10 04:39:22 +0000
commit8cddbbb58b26aa91e94979c46af12e52ac4a04d1 (patch)
tree29df69e843a4e219f1c577f09bd554ac003757eb
parentdafdb92473a03cd545601cc57e279466137e42a7 (diff)
Fixed make file
-rw-r--r--Makefile2
-rw-r--r--makefiles/Makefile.freebsd30
-rw-r--r--makefiles/Makefile.linux28
-rw-r--r--makefiles/Makefile.openbsd30
4 files changed, 1 insertions, 89 deletions
diff --git a/Makefile b/Makefile
index efbbde0..8bf9210 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
PREFIX := /usr/local
CC := cc
-CFLAGS := -pedantic -Wall -Wno-deprecated-declarations -Os
+CFLAGS := -pedantic -Wall -Wno-deprecated-declarations -Os -std=gnu17
LDFLAGS := -lX11
all: options dwmblocks
diff --git a/makefiles/Makefile.freebsd b/makefiles/Makefile.freebsd
deleted file mode 100644
index 4d60375..0000000
--- a/makefiles/Makefile.freebsd
+++ /dev/null
@@ -1,30 +0,0 @@
-PREFIX := /usr/local
-CC := cc
-CFLAGS := -pedantic -Wall -Wno-deprecated-declarations -Os
-LDFLAGS := -lX11
-
-LDFLAGS += -L/usr/local/lib -I/usr/local/include
-
-all: options dwmblocks
-
-options:
- @echo dwmblocks build options:
- @echo "CFLAGS = ${CFLAGS}"
- @echo "LDFLAGS = ${LDFLAGS}"
- @echo "CC = ${CC}"
-
-dwmblocks: dwmblocks.c blocks.h
- ${CC} -o dwmblocks dwmblocks.c ${CFLAGS} ${LDFLAGS}
-
-clean:
- rm -f *.o *.gch dwmblocks
-
-install: dwmblocks
- mkdir -p ${DESTDIR}${PREFIX}/bin
- cp -f dwmblocks ${DESTDIR}${PREFIX}/bin
- chmod 755 ${DESTDIR}${PREFIX}/bin/dwmblocks
-
-uninstall:
- rm -f ${DESTDIR}${PREFIX}/bin/dwmblocks
-
-.PHONY: all options clean install uninstall
diff --git a/makefiles/Makefile.linux b/makefiles/Makefile.linux
deleted file mode 100644
index efbbde0..0000000
--- a/makefiles/Makefile.linux
+++ /dev/null
@@ -1,28 +0,0 @@
-PREFIX := /usr/local
-CC := cc
-CFLAGS := -pedantic -Wall -Wno-deprecated-declarations -Os
-LDFLAGS := -lX11
-
-all: options dwmblocks
-
-options:
- @echo dwmblocks build options:
- @echo "CFLAGS = ${CFLAGS}"
- @echo "LDFLAGS = ${LDFLAGS}"
- @echo "CC = ${CC}"
-
-dwmblocks: dwmblocks.c blocks.h
- ${CC} -o dwmblocks dwmblocks.c ${CFLAGS} ${LDFLAGS}
-
-clean:
- rm -f *.o *.gch dwmblocks
-
-install: dwmblocks
- mkdir -p ${DESTDIR}${PREFIX}/bin
- cp -f dwmblocks ${DESTDIR}${PREFIX}/bin
- chmod 755 ${DESTDIR}${PREFIX}/bin/dwmblocks
-
-uninstall:
- rm -f ${DESTDIR}${PREFIX}/bin/dwmblocks
-
-.PHONY: all options clean install uninstall
diff --git a/makefiles/Makefile.openbsd b/makefiles/Makefile.openbsd
deleted file mode 100644
index d6198e1..0000000
--- a/makefiles/Makefile.openbsd
+++ /dev/null
@@ -1,30 +0,0 @@
-PREFIX := /usr/local
-CC := cc
-CFLAGS := -pedantic -Wall -Wno-deprecated-declarations -Os
-LDFLAGS := -lX11
-
-LDFLAGS += -L/usr/X11R6/lib -I/usr/X11R6/include
-
-all: options dwmblocks
-
-options:
- @echo dwmblocks build options:
- @echo "CFLAGS = ${CFLAGS}"
- @echo "LDFLAGS = ${LDFLAGS}"
- @echo "CC = ${CC}"
-
-dwmblocks: dwmblocks.c blocks.h
- ${CC} -o dwmblocks dwmblocks.c ${CFLAGS} ${LDFLAGS}
-
-clean:
- rm -f *.o *.gch dwmblocks
-
-install: dwmblocks
- mkdir -p ${DESTDIR}${PREFIX}/bin
- cp -f dwmblocks ${DESTDIR}${PREFIX}/bin
- chmod 755 ${DESTDIR}${PREFIX}/bin/dwmblocks
-
-uninstall:
- rm -f ${DESTDIR}${PREFIX}/bin/dwmblocks
-
-.PHONY: all options clean install uninstall