mirror of
https://github.com/opnsense/src.git
synced 2026-02-25 02:42:54 -05:00
and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit.
32 lines
616 B
Makefile
32 lines
616 B
Makefile
#
|
|
# $FreeBSD$
|
|
#
|
|
# For multiple programs using a single source file each,
|
|
# we can just define 'progs' and create custom targets.
|
|
PROGS = pkt-gen bridge vale-ctl
|
|
|
|
CLEANFILES = $(PROGS) *.o
|
|
MAN=
|
|
CFLAGS += -Werror -Wall # -nostdinc -I/usr/include -I../../../sys
|
|
CFLAGS += -Wextra
|
|
|
|
LDFLAGS += -lpthread
|
|
.ifdef WITHOUT_PCAP
|
|
CFLAGS += -DNO_PCAP
|
|
.else
|
|
LDFLAGS += -lpcap
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|
|
.include <bsd.lib.mk>
|
|
|
|
all: $(PROGS)
|
|
|
|
pkt-gen: pkt-gen.o
|
|
$(CC) $(CFLAGS) -o pkt-gen pkt-gen.o $(LDFLAGS)
|
|
|
|
bridge: bridge.o
|
|
$(CC) $(CFLAGS) -o bridge bridge.o
|
|
|
|
vale-ctl: vale-ctl.o
|
|
$(CC) $(CFLAGS) -o vale-ctl vale-ctl.o
|