logo

deblob

remove binary executables from a directory git clone https://hacktivis.me/git/deblob.git
commit: b7a2db79eb742fce1854c4ed3375ada2f08eab00
parent 1aedceb570813fdfe5b3c8deb3e0b7fe5c316f6a
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat, 25 Jun 2022 02:52:51 +0200

Makefile: Compatibility fix for bmake

Diffstat:

MMakefile21++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,14 +1,11 @@ -.POSIX: - -PREFIX = /usr/local -BINDIR = $(PREFIX)/bin -MANDIR = $(PREFIX)/share/man - -MANDOC = mandoc +PREFIX ?= /usr/local +BINDIR ?= $(PREFIX)/bin +MANDIR ?= $(PREFIX)/share/man +CFLAGS ?= -Os -s +MANDOC ?= mandoc EXE = deblob TEST_BLOBS = test/fixtures/hello test/fixtures/hello.a test/fixtures/hello.o -CFLAGS = -Os -s all: $(EXE) @@ -20,7 +17,13 @@ clean: rm -f $(EXE) $(TEST_BLOBS) test/fixtures/hello.a: test/fixtures/hello - $(AR) -rc $@ $< + $(AR) -rc $@ test/fixtures/hello + +test/fixtures/hello.o: test/fixtures/hello.c + $(CC) $(CFLAGS) -c -o $@ test/fixtures/hello.c + +test/fixtures/hello: test/fixtures/hello.c + $(CC) $(CFLAGS) -o $@ test/fixtures/hello.c .PHONY: test test: all $(TEST_BLOBS)