/[public]/qemu-start/trunk/Makefile
ViewVC logotype

Annotation of /qemu-start/trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 314 - (hide annotations)
Wed Apr 9 19:00:11 2008 UTC (16 years, 7 months ago) by frodo
File size: 1183 byte(s)
(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

1 frodo 293 DESTDIR=
2     BINDIR=/usr/bin
3     MANDIR=/usr/share/man
4     QEMUSTARTGROUP=emulator
5    
6 frodo 290 PACKAGE=qemu-start
7 frodo 314 VERSION=2.0
8     FILES=AUTHORS COPYING NEWS README Makefile qemu-start.c qemu-start.1 qemu-start.ggo
9 frodo 290 BASENAME=$(PACKAGE)-$(VERSION)
10    
11     CFLAGS=-Wall -W
12    
13     all: qemu-start
14    
15 frodo 314 qemu-start : qemu-start.o cmdline.o qemu-start.c cmdline.c cmdline.h qemu-start.ggo
16     $(CC) -o qemu-start qemu-start.o cmdline.o
17    
18     cmdline.o : cmdline.c cmdline.h qemu-start.ggo
19    
20     qemu-start.o: qemu-start.c cmdline.h qemu-start.ggo
21    
22     cmdline.c : qemu-start.ggo
23     gengetopt -i qemu-start.ggo -u
24    
25     # Automake FAQ: make cmdline.h depend on cmdline.c to compensate for parallel
26     # make problems (gengetopt produces two result files).
27     cmdline.h : cmdline.c qemu-start.ggo
28     gengetopt -i qemu-start.ggo -u
29    
30 frodo 290 install:
31 frodo 293 install -d $(DESTDIR)$(BINDIR)
32     install -o root -g $(QEMUSTARTGROUP) -m 4710 qemu-start $(DESTDIR)$(BINDIR)
33     install -d $(DESTDIR)$(MANDIR)/man1
34     install -o root -g root -m 755 qemu-start.1 $(DESTDIR)$(MANDIR)/man1
35 frodo 290
36     clean:
37     $(RM) qemu-start
38 frodo 314 $(RM) cmdline.o
39     $(RM) qemu-start.o
40     $(RM) cmdline.c
41     $(RM) cmdline.h
42 frodo 290
43     package:
44     ln -s . $(BASENAME)
45     tar cfvzp $(BASENAME).tar.gz $(addprefix $(BASENAME)/,$(FILES))
46     $(RM) $(BASENAME)

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26