aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index cedf0925..d306f5b1 100644
--- a/Makefile
+++ b/Makefile
@@ -116,11 +116,8 @@ test-dissect: test-dissect.o $(LIBS)
ctags: ctags.o $(LIBS)
$(QUIET_LINK)$(CC) $(LDFLAGS) -o $@ $< $(LIBS)
-ifeq ($(HAVE_LIBXML),yes)
-c2xml: c2xml.c $(LIBS) $(LIB_H)
- $(CC) $(LDFLAGS) `pkg-config --cflags --libs libxml-2.0` -o $@ $< $(LIBS)
-
-endif
+c2xml: c2xml.o $(LIBS)
+ $(QUIET_LINK)$(CC) $(LDFLAGS) `pkg-config --libs libxml-2.0` -o $@ $< $(LIBS)
$(LIB_FILE): $(LIB_OBJS)
$(QUIET_AR)$(AR) rcs $@ $(LIB_OBJS)
@@ -162,6 +159,9 @@ storage.o: $(LIB_H)
dissect.o: $(LIB_H)
graph.o: $(LIB_H)
+c2xml.o: c2xml.c $(LIB_H)
+ $(QUIET_CC)$(CC) `pkg-config --cflags libxml-2.0` -o $@ -c $(CFLAGS) $<
+
compat-linux.o: compat/strtold.c compat/mmap-blob.c \
$(LIB_H)
compat-solaris.o: compat/mmap-blob.c $(LIB_H)