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 = ctfconvert 13*f3e7f55eSRobert MustacchiSRCS = ctfconvert.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 Mustacchi 26*f3e7f55eSRobert MustacchiOBJS = $(SRCS:%.c=%.o) 27*f3e7f55eSRobert Mustacchi 28*f3e7f55eSRobert Mustacchiall: $(PROG) 29*f3e7f55eSRobert Mustacchi 30*f3e7f55eSRobert Mustacchi$(PROG): $(OBJS) 31*f3e7f55eSRobert Mustacchi $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 32*f3e7f55eSRobert Mustacchi $(POST_PROCESS) 33*f3e7f55eSRobert Mustacchi 34*f3e7f55eSRobert Mustacchi%.o: $(SRC)/cmd/ctfconvert/%.c 35*f3e7f55eSRobert Mustacchi $(COMPILE.c) $< 36*f3e7f55eSRobert Mustacchi 37*f3e7f55eSRobert Mustacchi$(ROOTONBLDMACHPROG): $(PROG) 38*f3e7f55eSRobert Mustacchi 39*f3e7f55eSRobert Mustacchiinstall: $(ROOTONBLDMACHPROG) 40*f3e7f55eSRobert Mustacchi 41*f3e7f55eSRobert Mustacchiclean: 42*f3e7f55eSRobert Mustacchi $(RM) $(OBJS) $(LINTFILES) 43*f3e7f55eSRobert Mustacchi 44*f3e7f55eSRobert Mustacchiinclude $(SRC)/tools/Makefile.targ 45