--- qemu-start/trunk/Makefile 2007/11/09 14:07:44 313 +++ qemu-start/trunk/Makefile 2008/04/09 19:00:11 314 @@ -4,14 +4,29 @@ QEMUSTARTGROUP=emulator PACKAGE=qemu-start -VERSION=1.1.1 -FILES=AUTHORS COPYING README Makefile qemu-start.c qemu-start.1 +VERSION=2.0 +FILES=AUTHORS COPYING NEWS README Makefile qemu-start.c qemu-start.1 qemu-start.ggo BASENAME=$(PACKAGE)-$(VERSION) CFLAGS=-Wall -W all: qemu-start +qemu-start : qemu-start.o cmdline.o qemu-start.c cmdline.c cmdline.h qemu-start.ggo + $(CC) -o qemu-start qemu-start.o cmdline.o + +cmdline.o : cmdline.c cmdline.h qemu-start.ggo + +qemu-start.o: qemu-start.c cmdline.h qemu-start.ggo + +cmdline.c : qemu-start.ggo + gengetopt -i qemu-start.ggo -u + +# Automake FAQ: make cmdline.h depend on cmdline.c to compensate for parallel +# make problems (gengetopt produces two result files). +cmdline.h : cmdline.c qemu-start.ggo + gengetopt -i qemu-start.ggo -u + install: install -d $(DESTDIR)$(BINDIR) install -o root -g $(QEMUSTARTGROUP) -m 4710 qemu-start $(DESTDIR)$(BINDIR) @@ -20,6 +35,10 @@ clean: $(RM) qemu-start + $(RM) cmdline.o + $(RM) qemu-start.o + $(RM) cmdline.c + $(RM) cmdline.h package: ln -s . $(BASENAME)