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

Diff of /qemu-start/trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.293  
changed lines
  Added in v.314

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