Questions tagged [bmake]

bmake(1) is a flavor of standard Unix make(1). It is the primary make(1) in FreeBSD while its upstream is maintained by the NetBSD project.

4 questions
5
votes
1 answer

Remove a flag from CFLAGS in FreeBSD makefile

In a GNU makefile, it is possible to use filter-out to remove a flag from CFLAG like this : CFLAGS:=$(filter-out -flag,$(CFLAGS)) However, I can't make it work with a FreeBSD makefile. Is filter-out supported by FreeBSD ? Otherwise, what can I do…
poloDD
  • 71
  • 6
3
votes
1 answer

old Makefile for building library no longer works under FreeBSD

I haven't been doing a lot of C programming lately, but recently I revisited an old project and found the old Makefile to build a library under FreeBSD no longer works. Here's a much simplified version of the Makefile that used to work: TEST =…
varro
  • 2,382
  • 2
  • 16
  • 24
0
votes
1 answer

How to express basic gmake pattern rule in bmake?

I'm trying to emulate this rule with bmake %.o: %.c echo $< $@ This is valid in GNU make but I'm having a hard time to replicate it with BSD make. Thanks in advance!
argot
  • 77
  • 7
0
votes
1 answer

How to properly link libraries with FreeBSD bmake?

Background I'd like to compile a small program with some libraries and headers which live in /usr/local/lib and /usr/local/include (I installed them from ports). I'm using the default FreeBSD make(1) (which happens to be bmake(1)…
Mateusz Piotrowski
  • 8,029
  • 10
  • 53
  • 79