1*3625efb1SRichard Lowe# 2*3625efb1SRichard Lowe# This file and its contents are supplied under the terms of the 3*3625efb1SRichard Lowe# Common Development and Distribution License ("CDDL"), version 1.0. 4*3625efb1SRichard Lowe# You may only use this file in accordance with the terms of version 5*3625efb1SRichard Lowe# 1.0 of the CDDL. 6*3625efb1SRichard Lowe# 7*3625efb1SRichard Lowe# A full copy of the text of the CDDL should have accompanied this 8*3625efb1SRichard Lowe# source. A copy of the CDDL is also available via the Internet at 9*3625efb1SRichard Lowe# http://www.illumos.org/license/CDDL. 10*3625efb1SRichard Lowe# 11*3625efb1SRichard Lowe 12*3625efb1SRichard Lowe# Copyright 2015, Richard Lowe. 13*3625efb1SRichard Lowe 14*3625efb1SRichard LowePROG= make 15*3625efb1SRichard LowePOFILE= make.po 16*3625efb1SRichard LoweOBJS= ar.o \ 17*3625efb1SRichard Lowe depvar.o \ 18*3625efb1SRichard Lowe doname.o \ 19*3625efb1SRichard Lowe dosys.o \ 20*3625efb1SRichard Lowe files.o \ 21*3625efb1SRichard Lowe globals.o \ 22*3625efb1SRichard Lowe implicit.o \ 23*3625efb1SRichard Lowe macro.o \ 24*3625efb1SRichard Lowe main.o \ 25*3625efb1SRichard Lowe misc.o \ 26*3625efb1SRichard Lowe nse_printdep.o \ 27*3625efb1SRichard Lowe parallel.o \ 28*3625efb1SRichard Lowe pmake.o \ 29*3625efb1SRichard Lowe read.o \ 30*3625efb1SRichard Lowe read2.o \ 31*3625efb1SRichard Lowe rep.o \ 32*3625efb1SRichard Lowe state.o 33*3625efb1SRichard LowePOFILES= $(OBJS:%.o=%.po) 34*3625efb1SRichard Lowe 35*3625efb1SRichard Loweinclude ../../Makefile.cmd 36*3625efb1SRichard Loweinclude ../Makefile.com 37*3625efb1SRichard Lowe 38*3625efb1SRichard LoweLDLIBS += ../lib/mksh/libmksh.a ../lib/vroot/libvroot.a 39*3625efb1SRichard LoweLDLIBS += ../lib/bsd/libbsd.a -lc -lnsl -lumem 40*3625efb1SRichard Lowe 41*3625efb1SRichard LoweCPPFLAGS += -D_FILE_OFFSET_BITS=64 42*3625efb1SRichard Lowe 43*3625efb1SRichard LoweROOTLINKS = $(ROOTCCSBIN)/make $(ROOTXPG4BIN)/make $(ROOTBIN)/dmake $(ROOTCCSLIB)/svr4.make \ 44*3625efb1SRichard Lowe $(ROOTLIB)/svr4.make 45*3625efb1SRichard Lowe 46*3625efb1SRichard LoweROOTRULES = $(ROOTSHLIB)/make/make.rules $(ROOTSHLIB)/make/svr4.make.rules 47*3625efb1SRichard Lowe 48*3625efb1SRichard Loweall: $(PROG) 49*3625efb1SRichard Lowe 50*3625efb1SRichard Loweinstall: all $(ROOTPROG) $(ROOTLINKS) $(ROOTRULES) 51*3625efb1SRichard Lowe 52*3625efb1SRichard Lowe$(PROG): $(OBJS) 53*3625efb1SRichard Lowe $(LINK.cc) $(OBJS) -o $@ $(LDLIBS) 54*3625efb1SRichard Lowe $(POST_PROCESS) 55*3625efb1SRichard Lowe 56*3625efb1SRichard Lowe$(ROOTCCSBIN)/make: 57*3625efb1SRichard Lowe -$(RM) $@; $(SYMLINK) ../../bin/make $@ 58*3625efb1SRichard Lowe 59*3625efb1SRichard Lowe$(ROOTCCSLIB)/svr4.make: 60*3625efb1SRichard Lowe -$(RM) $@; $(SYMLINK) ../../bin/make $@ 61*3625efb1SRichard Lowe 62*3625efb1SRichard Lowe$(ROOTLIB)/svr4.make: 63*3625efb1SRichard Lowe -$(RM) $@; $(SYMLINK) ../bin/make $@ 64*3625efb1SRichard Lowe 65*3625efb1SRichard Lowe$(ROOTXPG4BIN)/make: 66*3625efb1SRichard Lowe -$(RM) $@; $(SYMLINK) ../../bin/make $@ 67*3625efb1SRichard Lowe 68*3625efb1SRichard Lowe$(ROOTBIN)/dmake: 69*3625efb1SRichard Lowe -$(RM) $@; $(SYMLINK) ./make $@ 70*3625efb1SRichard Lowe 71*3625efb1SRichard Lowe$(ROOTRULES) := FILEMODE = 0444 72*3625efb1SRichard Lowe 73*3625efb1SRichard Lowe$(ROOTRULES): $(ROOTSHLIB)/make 74*3625efb1SRichard Lowe 75*3625efb1SRichard Lowe$(ROOTSHLIB)/make: FRC 76*3625efb1SRichard Lowe $(INS.dir) 77*3625efb1SRichard Lowe 78*3625efb1SRichard Lowe$(ROOTSHLIB)/make/%: %.file 79*3625efb1SRichard Lowe $(INS.rename) 80*3625efb1SRichard Lowe 81*3625efb1SRichard Lowelint: 82*3625efb1SRichard Lowe 83*3625efb1SRichard Loweclean: 84*3625efb1SRichard Lowe $(RM) $(OBJS) 85*3625efb1SRichard Lowe 86*3625efb1SRichard LoweFRC: 87*3625efb1SRichard Lowe 88*3625efb1SRichard Loweinclude ../../Makefile.targ 89*3625efb1SRichard Lowe 90