Changeset View
Changeset View
Standalone View
Standalone View
Makefile
Show All 21 Lines | |||||
ALLOBJS = $(OBJS) \ | ALLOBJS = $(OBJS) \ | ||||
main.o | main.o | ||||
AFLS = afl/test-blk_recv \ | AFLS = afl/test-blk_recv \ | ||||
afl/test-flist_recv | afl/test-flist_recv | ||||
MANDIR = $(PREFIX)/man | MANDIR = $(PREFIX)/man | ||||
BINDIR = $(PREFIX)/bin | BINDIR = $(PREFIX)/bin | ||||
# The -O0 is to help with debugging coredumps. | # The -O0 is to help with debugging coredumps. | ||||
CFLAGS += -O0 -g -W -Wall -Wextra -Wno-unused-parameter | CFLAGS += -O0 -g -W -Wall -Wextra -Wno-unused-parameter -DWITH_CASPER | ||||
emaste: Discussed with @oshogbo, in my opinion it's a bug that we need to `-DWITH_CASPER` to use our… | |||||
kibUnsubmitted Not Done Inline ActionsHaving -O0 -g hardcoded is wrong (very wrong). And why not use normal freebsd build ? kib: Having -O0 -g hardcoded is wrong (very wrong). And why not use normal freebsd build ? | |||||
emasteUnsubmitted Not Done Inline ActionsWe'd certainly do that if importing into base; this is a patch against upstream's repo. Main goal in this phab review is to present the proposed approach to Capsicum use. emaste: We'd certainly do that if importing into base; this is a patch against upstream's repo. Main… | |||||
all: openrsync | all: openrsync | ||||
openrsync: $(ALLOBJS) | openrsync: $(ALLOBJS) | ||||
$(CC) -o $@ $(ALLOBJS) -lm | $(CC) -o $@ $(ALLOBJS) -lm -lcap_fileargs -lcasper | ||||
afl: $(AFLS) | afl: $(AFLS) | ||||
$(AFLS): $(OBJS) | $(AFLS): $(OBJS) | ||||
$(CC) -o $@ $*.c $(OBJS) | $(CC) -o $@ $*.c $(OBJS) | ||||
install: openrsync | install: openrsync | ||||
mkdir -p $(DESTDIR)$(BINDIR) | mkdir -p $(DESTDIR)$(BINDIR) | ||||
Show All 18 Lines |
Discussed with @oshogbo, in my opinion it's a bug that we need to -DWITH_CASPER to use our headers -- but an issue to be addressed outside of this review.