This repository has been archived on 2024-02-29. You can view files and clone it, but cannot push or open issues or pull requests.
someblocks/Makefile

26 lines
831 B
Makefile
Raw Normal View History

2020-03-02 13:36:26 +01:00
PREFIX ?= /usr/local
2022-04-20 22:22:07 +02:00
MANPREFIX ?= $(PREFIX)/share/man
CC ?= cc
2024-01-24 23:02:21 +01:00
DEVCFLAGS = -pedantic -Wall -Wextra -Wdeclaration-after-statement -Wno-unused-parameter -Wshadow -Wunused-macros\
-Werror=strict-prototypes -Werror=implicit -Werror=return-type -Werror=incompatible-pointer-types -Wfloat-conversion\
-Ofast -flto
2021-10-28 17:27:05 +02:00
output: someblocks.c blocks.def.h blocks.h
2024-01-24 23:02:21 +01:00
${CC} someblocks.c $(LDFLAGS) $(DEVCFLAGS) -o someblocks
strip someblocks
blocks.h:
cp blocks.def.h $@
2019-03-24 23:31:05 +01:00
clean:
2024-01-24 23:02:21 +01:00
rm -f *.o *.gch someblocks blocks.h
install: output
2020-03-02 13:36:26 +01:00
mkdir -p $(DESTDIR)$(PREFIX)/bin
2021-10-28 17:27:05 +02:00
install -m 0755 someblocks $(DESTDIR)$(PREFIX)/bin/someblocks
2022-04-20 22:22:07 +02:00
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
install -m 0644 someblocks.1 $(DESTDIR)$(MANPREFIX)/man1/someblocks.1
2020-03-02 13:42:26 +01:00
uninstall:
2021-10-28 17:27:05 +02:00
rm -f $(DESTDIR)$(PREFIX)/bin/someblocks
2022-04-20 22:22:07 +02:00
rm -f $(DESTDIR)$(MANPREFIX)/man1/someblocks.1