+Fri Jul 27 03:52:33 CEST 2001 Wichert Akkerman <wakkerma@debian.org>
+
+ * main/Makefile.in: changed things around to dpkg-query builds more
+ easily
+
Fri Jul 27 03:43:52 CEST 2001 Wichert Akkerman <wakkerma@debian.org>
* main/query.c: remove -D from usage, we don't support it
OBJECTS = $(patsubst %.c, %.o, $(SOURCES))
GENFILES = $(OBJECTS) archtable.h dpkg dpkg-static
-dpkg-query: SOURCES = query.c filesdb.c errors.c
+QUERY_SOURCES = query.c showpkg.c filesdb.c errors.c
+QUERY_OBJECTS = $(patsubst %.c, %.o, $(QUERY_SOURCES))
+QUERY_GENFILES = $(QUERY_OBJECTS) dpkg-query
.PHONY: all
all:: dpkg dpkg-query
.PHONY: clean
clean::
- $(RM) $(GENFILES)
+ $(RM) $(GENFILES) $(QUERY_GENFILES)
.PHONY: distclean
cvslean:: clean
dpkg-static: LDFLAGS += -static
dpkg dpkg-static: $(OBJECTS) ../lib/libdpkg.a
-dpkg-query: $(OBJECTS) query.o ../lib/libdpkg.a
dpkg dpkg-static dpkg-query:
- $(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS) $(NLS_LIBS)
+ $(CC) $(LDFLAGS) -o $@ $(LIBS) $(NLS_LIBS)
+
+dpkg-query: $(OQUERY_BJECTS) ../lib/libdpkg.a
+ $(CC) $(LDFLAGS) -o $@ $(QUERY_OBJECTS) $(LIBS) $(NLS_LIBS)
enquiry.o: archtable.h