CFLAGS := $(CFLAGS) $(PKCL_CFLAGS) $(TCS_CFLAGS)
+# Define a list of pkg-config packages we want to use
+pkg_packages = dlog
+
+PKG_CFLAGS = $(shell pkg-config --cflags $(pkg_packages))
+PKG_LDFLAGS = $(shell pkg-config --libs $(pkg_packages))
+
+# Combine user supplied, additional, and pkg-config flags
+ifeq ($(TCS_CFG), release)
+ PKGLD_FLAGS =
+ PKGCFLAGS =
+else
+ PKGLD_FLAGS += $(PKG_LDFLAGS) -L./lib
+ PKGCFLAGS += -I$(SRCDIR) $(PKCL_CFLAGS) $(PKG_CFLAGS)
+endif
+
SOURCES = $(SRCDIR)/TCSImpl.c $(SRCDIR)/TWPImpl.c
OBJECTS = $(OUTDIR)/TCSImpl.o $(OUTDIR)/TWPImpl.o
$(OUTDIR)/%.o: $(SRCDIR)/%.c
- $(CC) $(CFLAGS) -o $(OUTDIR)/$*.o -c $(SRCDIR)/$*.c
+ $(CC) $(CFLAGS) $(PKGCFLAGS) -I. -o $(OUTDIR)/$*.o -c $(SRCDIR)/$*.c
all: $(OUTDIR) $(TARGET)
$(TARGET): $(OBJECTS)
- $(CC) -shared -Wl,-zdefs -o $(TARGET) $(OBJECTS) $(LD_FLAGS)
+ $(CC) -shared -Wl,-zdefs -o $(TARGET) $(OBJECTS) $(LD_FLAGS) $(PKGLD_FLAGS)
$(OUTDIR):
@mkdir $(OUTDIR)
LD_FLAGS += $(PKG_LDFLAGS) -lscserver -L./lib -lxml2
GBS_CFLAGS = -I${SYSROOT}/usr/include/dbus-1.0 -I${SYSROOT}/usr/lib/dbus-1.0/include -I${SYSROOT}/usr/include/libxml2
-CFLAGS += -Wall -I$(SRCDIR) $(PKCL_CFLAGS) $(GBS_CFLAGS) $(PKG_CFLAGS)
+CFLAGS += -I$(SRCDIR) $(PKCL_CFLAGS) $(GBS_CFLAGS) $(PKG_CFLAGS)
SOURCES = $(SRCDIR)/TPCSSerDaemon.c \
$(SRCDIR)/IpcForkDaemon.c
all: $(OUTDIR) $(TARGET)
$(TARGET): $(OBJECTS)
- $(CC) -Wl,-zdefs -o $(TARGET) $(OBJECTS) $(LD_FLAGS)
+ $(CC) -Wl,-zdefs -o $(TARGET) $(OBJECTS) $(LD_FLAGS) $(PKG_LDFLAGS)
$(OUTDIR):
@mkdir $(OUTDIR)
$(OUTDIR)/IpcForkDaemon.o
# Define a list of pkg-config packages we want to use
-pkg_packages = dbus-glib-1 dlog
+ifeq ($(TCS_CFG), release)
+ pkg_packages = dbus-glib-1
+else
+ pkg_packages = dbus-glib-1 dlog
+endif
PKG_CFLAGS = $(shell pkg-config --cflags $(pkg_packages))
PKG_LDFLAGS = $(shell pkg-config --libs $(pkg_packages))
PKGLD_FLAGS += $(PKG_LDFLAGS) -lscserver -L./lib
GBS_CFLAGS = -I${SYSROOT}/usr/include/dbus-1.0 -I${SYSROOT}/usr/lib/dbus-1.0/include
-PKGCFLAGS += -Wall -I$(SRCDIR) $(PKCL_CFLAGS) $(GBS_CFLAGS) $(PKG_CFLAGS)
+PKGCFLAGS += -I$(SRCDIR) $(PKCL_CFLAGS) $(GBS_CFLAGS) $(PKG_CFLAGS)
$(OUTDIR)/%.o: $(SRCDIR)/%.c
$(CC) $(CFLAGS) $(PKGCFLAGS) -I. -o $(OUTDIR)/$*.o -c $(SRCDIR)/$*.c
LD_FLAGS += $(PKG_LDFLAGS)
GBS_CFLAGS = -I${SYSROOT}/usr/include/dbus-1.0 -I${SYSROOT}/usr/lib/dbus-1.0/include
-CFLAGS += $(PKCL_CFLAGS) $(TCS_CFLAGS) $(GBS_CFLAGS) $(PKG_CFLAGS) -Wall -Werror
+CFLAGS += $(PKCL_CFLAGS) $(TCS_CFLAGS) $(GBS_CFLAGS) $(PKG_CFLAGS)
SOURCES = $(SRCDIR)/IpcClient.c \
$(SRCDIR)/IpcStructs.c
LD_FLAGS += $(PKG_LDFLAGS)
GBS_CFLAGS = -I${SYSROOT}/usr/include/dbus-1.0 -I${SYSROOT}/usr/lib/dbus-1.0/include
-CFLAGS += $(PKCL_CFLAGS) $(TCS_CFLAGS) $(GBS_CFLAGS) $(PKG_CFLAGS) -Wall -Werror
+CFLAGS += $(PKCL_CFLAGS) $(TCS_CFLAGS) $(GBS_CFLAGS) $(PKG_CFLAGS)
SOURCES = $(SRCDIR)/IpcServer.c \
$(SRCDIR)/IpcServerError.c \
+* Fri Jan 09 2015 John L. Whiteman <john.l.whiteman@intel.com> upstream/2.0.2.1-6-gda86fc8
+- Coverity fixes for TC-2075. Makefile changes.
+
* Thu Aug 14 2014 John L. Whiteman <john.l.whiteman@intel.com> upstream/2.0.2-1-gf74ac25
- Fixed the HTTP test code for TWP testing per Samsung report
Summary: Content Security Framework
Name: csf-framework
-Version: 2.0.2
+Version: 2.0.2.1
Release: 0
License: BSD-3-Clause
Group: Security/Libraries