Print this page
Rich's feedback
   1 #
   2 # This file and its contents are supplied under the terms of the
   3 # Common Development and Distribution License ("CDDL"), version 1.0.
   4 # You may only use this file in accordance with the terms of version
   5 # 1.0 of the CDDL.
   6 #
   7 # A full copy of the text of the CDDL should have accompanied this
   8 # source.  A copy of the CDDL is also available via the Internet at
   9 # http://www.illumos.org/license/CDDL.
  10 #
  11 
  12 #
  13 # Copyright 2017 Jason King.
  14 #
  15 
  16 include $(SRC)/Makefile.master
  17 include $(SRC)/cmd/Makefile.cmd
  18 include $(SRC)/test/Makefile.com
  19 
  20 ROOTBINDIR = $(ROOTOPTPKG)/bin
  21 
  22 PROG = gcc-libstdc++ llvm-stdcxxabi afl-fast
  23 
  24 ROOTOPTPKG = $(ROOT)/opt/util-tests
  25 TESTDIR = $(ROOTOPTPKG)/tests/demangle
  26 
  27 CMDS = $(PROG:%=$(TESTDIR)/%)
  28 $(CMDS) := FILEMODE = 0555
  29 
  30 OBJS = $(PROG:%=%.o)
  31 SRCS = $(OBJS:%.o=%.c)
  32 
  33 C99MODE= $(C99_ENABLE)
  34 
  35 LDLIBS += -lsysdemangle
  36 
  37 all: $(PROG)
  38 
  39 gcc-libstdc++: gcc-libstdc++.o
  40         $(LINK.c) -o $@ gcc-libstdc++.o $(LDLIBS)
  41         $(POST_PROCESS)
  42 
  43 llvm-stdcxxabi: llvm-stdcxxabi.o
  44         $(LINK.c) -o $@ llvm-stdcxxabi.o $(LDLIBS)
  45         $(POST_PROCESS)
  46 
  47 afl-fast: afl-fast.o
  48         $(LINK.c) -o $@ afl-fast.o $(LDLIBS)
  49         $(POST_PROCESS)
  50 
  51 install: all $(CMDS)
  52 
  53 lint:
  54 
  55 clobber: clean
   1 #
   2 # This file and its contents are supplied under the terms of the
   3 # Common Development and Distribution License ("CDDL"), version 1.0.
   4 # You may only use this file in accordance with the terms of version
   5 # 1.0 of the CDDL.
   6 #
   7 # A full copy of the text of the CDDL should have accompanied this
   8 # source.  A copy of the CDDL is also available via the Internet at
   9 # http://www.illumos.org/license/CDDL.
  10 #
  11 
  12 #
  13 # Copyright 2018 Jason King.
  14 #
  15 
  16 include $(SRC)/Makefile.master
  17 include $(SRC)/cmd/Makefile.cmd
  18 include $(SRC)/test/Makefile.com
  19 
  20 ROOTBINDIR = $(ROOTOPTPKG)/bin
  21 
  22 PROG = gcc-libstdc++ llvm-stdcxxabi afl-fast
  23 
  24 ROOTOPTPKG = $(ROOT)/opt/util-tests
  25 TESTDIR = $(ROOTOPTPKG)/tests/demangle
  26 
  27 CMDS = $(PROG:%=$(TESTDIR)/%)
  28 $(CMDS) := FILEMODE = 0555
  29 
  30 OBJS = $(PROG:%=%.o)
  31 SRCS = $(OBJS:%.o=%.c)
  32 
  33 CSTD = $(CSTD_GNU99)
  34 
  35 LDLIBS += -ldemangle-sys
  36 
  37 all: $(PROG)
  38 
  39 gcc-libstdc++: gcc-libstdc++.o
  40         $(LINK.c) -o $@ gcc-libstdc++.o $(LDLIBS)
  41         $(POST_PROCESS)
  42 
  43 llvm-stdcxxabi: llvm-stdcxxabi.o
  44         $(LINK.c) -o $@ llvm-stdcxxabi.o $(LDLIBS)
  45         $(POST_PROCESS)
  46 
  47 afl-fast: afl-fast.o
  48         $(LINK.c) -o $@ afl-fast.o $(LDLIBS)
  49         $(POST_PROCESS)
  50 
  51 install: all $(CMDS)
  52 
  53 lint:
  54 
  55 clobber: clean