Skip to content

Commit

Permalink
Added libbsd support
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Jan 23, 2016
1 parent a8566c6 commit aedb7c4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,19 @@ BIN_DIR ?= $(PREFIX)/bin
BIN_NAME ?= ksh
MAN_DIR ?= $(PREFIX)/share/man
DOC_DIR ?= $(PREFIX)/share/doc/loksh
HAVE_LIBBSD ?= 0

OBJECTS = alloc.o c_ksh.o c_sh.o c_test.o c_ulimit.o edit.o emacs.o eval.o \
exec.o expr.o history.o io.o jobs.o lex.o mail.o main.o misc.o \
path.o shf.o syn.o table.o trap.o tree.o tty.o var.o version.o vi.o
HEADERS = c_test.h charclass.h config.h edit.h expand.h ksh_limval.h lex.h \
proto.h sh.h shf.h table.h tree.h tty.h

ifeq (1,$(HAVE_LIBBSD))
CFLAGS += $(shell pkg-config --cflags libbsd-overlay)
LDFLAGS += $(shell pkg-config --libs libbsd-overlay)
endif

all: ksh

%.o: %.c $(HEADERS)
Expand Down

0 comments on commit aedb7c4

Please sign in to comment.