1*f3e7f55eSRobert Mustacchi# 2*f3e7f55eSRobert Mustacchi# This file and its contents are supplied under the terms of the 3*f3e7f55eSRobert Mustacchi# Common Development and Distribution License ("CDDL"), version 1.0. 4*f3e7f55eSRobert Mustacchi# You may only use this file in accordance with the terms of version 5*f3e7f55eSRobert Mustacchi# 1.0 of the CDDL. 6*f3e7f55eSRobert Mustacchi# 7*f3e7f55eSRobert Mustacchi# A full copy of the text of the CDDL should have accompanied this 8*f3e7f55eSRobert Mustacchi# source. A copy of the CDDL is also available via the Internet at 9*f3e7f55eSRobert Mustacchi# http://www.illumos.org/license/CDDL. 10*f3e7f55eSRobert Mustacchi# 11*f3e7f55eSRobert Mustacchi 12*f3e7f55eSRobert MustacchiPROG = ctfmerge 13*f3e7f55eSRobert MustacchiSRCS = ctfmerge.c 14*f3e7f55eSRobert Mustacchi 15*f3e7f55eSRobert Mustacchiinclude ../../Makefile.ctf 16*f3e7f55eSRobert Mustacchi 17*f3e7f55eSRobert MustacchiCFLAGS += $(CCVERBOSE) 18*f3e7f55eSRobert MustacchiLDLIBS += -lctf -lelf 19*f3e7f55eSRobert Mustacchi 20*f3e7f55eSRobert MustacchiLDFLAGS += \ 21*f3e7f55eSRobert Mustacchi -L$(ROOTONBLDLIBMACH) \ 22*f3e7f55eSRobert Mustacchi '-R$$ORIGIN/../../lib/$(MACH)' \ 23*f3e7f55eSRobert Mustacchi 24*f3e7f55eSRobert MustacchiCPPFLAGS += -include ../../common/ctf_headers.h 25*f3e7f55eSRobert MustacchiCERRWARN += -_gcc=-Wno-unused-variable 26*f3e7f55eSRobert MustacchiCERRWARN += -_gcc=-Wno-uninitialized 27*f3e7f55eSRobert Mustacchi 28*f3e7f55eSRobert MustacchiOBJS = $(SRCS:%.c=%.o) 29*f3e7f55eSRobert Mustacchi 30*f3e7f55eSRobert Mustacchiall: $(PROG) 31*f3e7f55eSRobert Mustacchi 32*f3e7f55eSRobert Mustacchi$(PROG): $(OBJS) 33*f3e7f55eSRobert Mustacchi $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 34*f3e7f55eSRobert Mustacchi $(POST_PROCESS) 35*f3e7f55eSRobert Mustacchi 36*f3e7f55eSRobert Mustacchi%.o: $(SRC)/cmd/ctfmerge/%.c 37*f3e7f55eSRobert Mustacchi $(COMPILE.c) $< 38*f3e7f55eSRobert Mustacchi 39*f3e7f55eSRobert Mustacchi$(ROOTONBLDMACHPROG): $(PROG) 40*f3e7f55eSRobert Mustacchi 41*f3e7f55eSRobert Mustacchiinstall: $(ROOTONBLDMACHPROG) 42*f3e7f55eSRobert Mustacchi 43*f3e7f55eSRobert Mustacchiclean: 44*f3e7f55eSRobert Mustacchi $(RM) $(OBJS) $(LINTFILES) 45*f3e7f55eSRobert Mustacchi 46*f3e7f55eSRobert Mustacchiinclude $(SRC)/tools/Makefile.targ 47