blob: fd64f0a2f433ea033f9dfdea3b72ff527afe86b2 [file] [log] [blame]
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
# Copyright 2018 Jason King.
include $(SRC)/Makefile.master
include $(SRC)/cmd/Makefile.cmd
include $(SRC)/test/
PROG = gcc-libstdc++ llvm-stdcxxabi afl-fast
ROOTOPTPKG = $(ROOT)/opt/util-tests
TESTDIR = $(ROOTOPTPKG)/tests/demangle
$(CMDS) := FILEMODE = 0555
OBJS = $(PROG:%=%.o)
SRCS = $(OBJS:%.o=%.c)
LDLIBS += -ldemangle-sys
all: $(PROG)
gcc-libstdc++: gcc-libstdc++.o
$(LINK.c) -o $@ gcc-libstdc++.o $(LDLIBS)
llvm-stdcxxabi: llvm-stdcxxabi.o
$(LINK.c) -o $@ llvm-stdcxxabi.o $(LDLIBS)
afl-fast: afl-fast.o
$(LINK.c) -o $@ afl-fast.o $(LDLIBS)
install: all $(CMDS)
clobber: clean
-$(RM) $(PROG)
-$(RM) $(OBJS)
$(TESTDIR)/%: %