25 lines
546 B
Makefile
25 lines
546 B
Makefile
# Makefile - hhl - /usr/src/world/lksh
|
|
# Copyright 2020 Nathan Fisher <nfisher.sr@gmail.com>
|
|
#
|
|
include ../../../config.mk
|
|
progname = lksh
|
|
src = ../mksh/src
|
|
|
|
cppflags += -D_LKSH
|
|
|
|
cflags += -fno-asynchronous-unwind-tables
|
|
cflags += -fno-strict-aliasing
|
|
cflags += -fstack-protector-strong
|
|
cflags += -Wall
|
|
cflags += -fwrapv
|
|
cflags += -fno-lto
|
|
cflags += -Wno-deprecated-declarations
|
|
|
|
ifeq (${arch},x86_64)
|
|
cflags += -malign-data=abi
|
|
endif
|
|
|
|
post_build = ln -sfv lksh ${bindir}/sh
|
|
|
|
include hhl.cprog.mk
|