Skip to content

Commit

Permalink
Upstream 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Sep 3, 2016
1 parent a8faad0 commit 1689b91
Show file tree
Hide file tree
Showing 47 changed files with 90 additions and 13,669 deletions.
1,398 changes: 0 additions & 1,398 deletions BUG-REPORTS

This file was deleted.

1,600 changes: 0 additions & 1,600 deletions ChangeLog

This file was deleted.

3,589 changes: 0 additions & 3,589 deletions ChangeLog.0

This file was deleted.

18 changes: 0 additions & 18 deletions IAFA-PACKAGE

This file was deleted.

151 changes: 0 additions & 151 deletions INSTALL

This file was deleted.

52 changes: 12 additions & 40 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,44 +1,16 @@
CC ?= cc
CFLAGS ?= -O2
CFLAGS += -I. -D_GNU_SOURCE -std=gnu99 -Wall -pedantic -Wno-format-security -Wno-pointer-sign
LDFLAGS ?=
DESTDIR ?= /
PREFIX ?= /usr
BIN_DIR ?= $(PREFIX)/bin
BIN_NAME ?= ksh
MAN_DIR ?= $(PREFIX)/share/man
DOC_DIR ?= $(PREFIX)/share/doc/loksh
HAVE_LIBBSD ?= 0
# $OpenBSD: Makefile,v 1.33 2016/03/30 06:38:40 jmc Exp $

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
PROG= ksh
SRCS= alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c eval.c \
exec.c expr.c history.c io.c jobs.c lex.c mail.c main.c \
misc.c path.c shf.c syn.c table.c trap.c tree.c tty.c var.c \
version.c vi.c

ifeq (1,$(HAVE_LIBBSD))
CFLAGS += $(shell pkg-config --cflags libbsd-overlay)
LDFLAGS += $(shell pkg-config --libs libbsd-overlay)
endif
DEFS= -Wall
CFLAGS+=${DEFS} -I. -I${.CURDIR} -I${.CURDIR}/../../lib/libc/gen
MAN= ksh.1 sh.1

all: ksh
LINKS= ${BINDIR}/ksh ${BINDIR}/rksh
LINKS+= ${BINDIR}/ksh ${BINDIR}/sh

%.o: %.c $(HEADERS)
$(CC) -c -o $@ $< $(CFLAGS)

ksh: $(OBJECTS)
$(CC) -o $@ $^ $(LDFLAGS)

clean:
rm -f $(BIN_NAME) *.o

install: all
install -v -D -m 755 ksh $(DESTDIR)/$(BIN_DIR)/$(BIN_NAME)
install -v -D -m 644 ksh.1 $(DESTDIR)/$(MAN_DIR)/man1/$(BIN_NAME).1
install -v -m 644 sh.1 $(DESTDIR)/$(MAN_DIR)/man1/sh.1
install -v -D -m 644 README $(DESTDIR)/$(DOC_DIR)/README
install -v -m 644 README.upstream $(DESTDIR)/$(DOC_DIR)/README.upstream
install -v -m 644 ChangeLog $(DESTDIR)/$(DOC_DIR)/ChangeLog
install -v -m 644 ChangeLog.0 $(DESTDIR)/$(DOC_DIR)/ChangeLog.0
install -v -m 644 CONTRIBUTORS $(DESTDIR)/$(DOC_DIR)/CONTRIBUTORS
install -v -m 644 LEGAL $(DESTDIR)/$(DOC_DIR)/LEGAL
.include <bsd.prog.mk>
Loading

0 comments on commit 1689b91

Please sign in to comment.