29 lines
717 B
Makefile
29 lines
717 B
Makefile
# Makefile - hhl - /usr/src/world/usr.bin/ex
|
|
# Copyright 2020 Nathan Fisher <nfisher.sr@gmail.com>
|
|
#
|
|
progname = ex
|
|
binlinks = $(bindir)/edit $(bindir)/view $(bindir)/vi
|
|
libexecs += $(libexecdir)/ex3.7preserve
|
|
libexecs += $(libexecdir)/ex3.7recover
|
|
|
|
ldflags += -include src/config.h
|
|
|
|
cflags += -Wall
|
|
cflags += -Wextra
|
|
cflags += -fcommon
|
|
|
|
libs += -lncurses
|
|
|
|
include hhl.cprog.mk
|
|
|
|
$(install): $(libexecs)
|
|
|
|
$(libexecdir)/ex3.7preserve: ex3.7preserve/ex3.7preserve.c | $(libexecdir)
|
|
$(CC) $(cppflags) $(cflags) $(ldflags) -o $@ $<
|
|
|
|
$(libexecdir)/ex3.7recover: ex3.7recover/ex3.7recover.c src/ex_extern.c | $(libexecdir)
|
|
$(CC) $(cppflags) $(cflags) -O1 $(ldflags) -o $@ $^
|
|
|
|
$(libexecdir):
|
|
install -d $@
|