In this episode: - introduce a common header with a minimal set of common definitions; - bring the main() function and options parser in main.c - rename the main functions with an ipfw_ prefix No code changes except for the introduction of a global variable, resvd_set_number, which stores the RESVD_SET value from ip_fw.h and is used to remove the dependency of main.c from ip_fw.h (and the subtree of dependencies) for just a single constant.
9 lines
91 B
Makefile
9 lines
91 B
Makefile
# $FreeBSD$
|
|
|
|
PROG= ipfw
|
|
SRCS= ipfw2.c main.c
|
|
WARNS?= 2
|
|
MAN= ipfw.8
|
|
|
|
.include <bsd.prog.mk>
|