diff options
Diffstat (limited to 'usr/src/lib/libzonecfg/Makefile.com')
-rw-r--r-- | usr/src/lib/libzonecfg/Makefile.com | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/usr/src/lib/libzonecfg/Makefile.com b/usr/src/lib/libzonecfg/Makefile.com index aa7dea9cc9..55b33a3e77 100644 --- a/usr/src/lib/libzonecfg/Makefile.com +++ b/usr/src/lib/libzonecfg/Makefile.com @@ -20,11 +20,14 @@ # # # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. +# Copyright 2015 Joyent, Inc. # LIBRARY= libzonecfg.a VERS= .1 -OBJECTS= libzonecfg.o getzoneent.o scratchops.o +LIB_OBJS= libzonecfg.o getzoneent.o scratchops.o +XML_OBJS= os_dtd.o +OBJECTS= $(LIB_OBJS) $(XML_OBJS) include ../../Makefile.lib @@ -36,12 +39,24 @@ $(DYNLIB) := LDLIBS += -lxml2 NATIVE_LIBS += libxml2.so SRCDIR = ../common + +XMLDIR = $(SRC)/lib/xml +SRCS = \ + $(LIB_OBJS:%.o=$(SRCDIR)/%.c) \ + $(XML_OBJS:%.o=$(XMLDIR)/%.c) \ + CPPFLAGS += -I$(ADJUNCT_PROTO)/usr/include/libxml2 -I$(SRCDIR) -D_REENTRANT CERRWARN += $(CNOWARN_UNINIT) CERRWARN += -_gcc=-Wno-parentheses +CPPFLAGS += -I$(XMLDIR) + .KEEP_STATE: all: $(LIBS) +pics/%.o: $(XMLDIR)/%.c + $(COMPILE.c) -o $@ $< + $(POST_PROCESS_O) + include ../../Makefile.targ |