Print this page




  27 PROG_OBJS =     lxinit.o pipe_stream.o run_command.o
  28 LIST_OBJS =     list.o
  29 
  30 OBJS =          $(PROG_OBJS) \
  31                 $(LIST_OBJS)
  32 SRCS =          $(PROG_OBJS:%.o=%.c) \
  33                 $(LIST_OBJS:%.o=$(SRC)/common/list/%.c)
  34 
  35 all:            $(PROG)
  36 
  37 include ../Makefile.lx
  38 include $(SRC)/cmd/Makefile.cmd
  39 
  40 # override the install directory
  41 ROOTBIN =       $(ROOTBRANDDIR)
  42 CLOBBERFILES =  $(OBJS) $(ROOTPROG)
  43 
  44 UTSBASE =       $(SRC)/uts
  45 
  46 CFLAGS +=       $(CCVERBOSE)
  47 CPPFLAGS +=     -D_REENTRANT -I$(UTSBASE)/common/brand/lx
  48 LDLIBS +=       -lzonecfg -lipadm -lsocket -linetutil -lnsl -lcmdutils -ldhcpagent

  49 
  50 .KEEP_STATE:
  51 
  52 install: all $(ROOTPROG)
  53 
  54 clean:
  55         $(RM) $(PROG) $(OBJS)
  56 
  57 lint: lint_PROG lint_SRCS
  58 
  59 $(PROG): $(OBJS)
  60         $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
  61         $(POST_PROCESS)
  62 
  63 %.o: %.c
  64         $(COMPILE.c) $<
  65         $(POST_PROCESS_O)
  66 
  67 %.o: $(SRC)/common/list/%.c
  68         $(COMPILE.c) $<
  69         $(POST_PROCESS_O)
  70 
  71 include $(SRC)/cmd/Makefile.targ


  27 PROG_OBJS =     lxinit.o pipe_stream.o run_command.o
  28 LIST_OBJS =     list.o
  29 
  30 OBJS =          $(PROG_OBJS) \
  31                 $(LIST_OBJS)
  32 SRCS =          $(PROG_OBJS:%.o=%.c) \
  33                 $(LIST_OBJS:%.o=$(SRC)/common/list/%.c)
  34 
  35 all:            $(PROG)
  36 
  37 include ../Makefile.lx
  38 include $(SRC)/cmd/Makefile.cmd
  39 
  40 # override the install directory
  41 ROOTBIN =       $(ROOTBRANDDIR)
  42 CLOBBERFILES =  $(OBJS) $(ROOTPROG)
  43 
  44 UTSBASE =       $(SRC)/uts
  45 
  46 CFLAGS +=       $(CCVERBOSE)
  47 CPPFLAGS +=     -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I$(UTSBASE)/common/brand/lx
  48 LDLIBS +=       -lzonecfg -lipadm -lsocket -linetutil -lnsl -lcmdutils -ldhcpagent
  49 LINTFLAGS +=    -xerroff=E_NAME_DEF_NOT_USED2
  50 
  51 .KEEP_STATE:
  52 
  53 install: all $(ROOTPROG)
  54 
  55 clean:
  56         $(RM) $(PROG) $(OBJS)
  57 
  58 lint: lint_SRCS
  59 
  60 $(PROG): $(OBJS)
  61         $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
  62         $(POST_PROCESS)
  63 
  64 %.o: %.c
  65         $(COMPILE.c) $<
  66         $(POST_PROCESS_O)
  67 
  68 %.o: $(SRC)/common/list/%.c
  69         $(COMPILE.c) $<
  70         $(POST_PROCESS_O)
  71 
  72 include $(SRC)/cmd/Makefile.targ