src/world/lib/libopenbsd/Makefile

24 lines
716 B
Makefile

# Makefile - hhl - /usr/src/world/lib/libopenbsd
# Copyright 2020 Nathan Fisher <nfisher.sr@gmail.com>
#
libname = openbsd
doinstall = false
include srcs.mk
cppflags += -D__LIBC__
cppflags += -DHAVE_CONFIG_H
cflags += -O2
cflags += --sysroot=$(DESTDIR)
cflags += -Werror=deprecated-declarations
cflags += -Werror-implicit-function-declaration
ldflags += -I./include
ldflags += -I./hidden
ldflags += -I../../../include/openbsd
ldflags += -include compat.h
ldflags += -include config.h
ldflags += -include namespace.h
include hhl.staticlib.mk
$(objdir)/%.o: %.c | $(objdir)
$(CC) $(cppflags) $(cflags) $(ldflags) -o $@ -c $<