[public] / qemu-start / Makefile Repository:
ViewVC logotype

View of /qemu-start/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (download) (annotate)
Wed Apr 9 19:00:11 2008 UTC (2 years, 4 months ago) by frodo
Branch: MAIN
CVS Tags: VERSION_2_0, HEAD
Changes since 1.3: +21 -2 lines
(Frodo) Major updates for version 2.0:
  * Merged (somewhat cleaned-up) contribution of Daniel Dickinson
    <cshore@wightman.ca> which brought:
    - getopt command-line parsing using gengetopt
    - New mac address, model type and window location options
    - Updated manpage
  * Bumped version up to 2.0
  * Update Makefile for new version, new gengetopt stuff and new files
  * Corrected a fprintf which lacked a newline
  * Added uml-utilities to the suggests, gengetopt to the build-depends

DESTDIR=
BINDIR=/usr/bin
MANDIR=/usr/share/man
QEMUSTARTGROUP=emulator

PACKAGE=qemu-start
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)
	install -d $(DESTDIR)$(MANDIR)/man1
	install -o root -g root -m 755 qemu-start.1 $(DESTDIR)$(MANDIR)/man1

clean:
	$(RM) qemu-start
	$(RM) cmdline.o
	$(RM) qemu-start.o
	$(RM) cmdline.c
	$(RM) cmdline.h

package:
	ln -s . $(BASENAME)
	tar cfvzp $(BASENAME).tar.gz $(addprefix $(BASENAME)/,$(FILES))
	$(RM) $(BASENAME)

CVS Admin
ViewVC Help
Powered by ViewVC 1.0.5