~ubuntu-branches/ubuntu/hoary/s390-tools/hoary

« back to all changes in this revision

Viewing changes to zipl/src/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Blank
  • Date: 2004-06-27 18:45:15 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20040627184515-q7lnvli1j94gr6dv
Tags: upstream-1.3.1
ImportĀ upstreamĀ versionĀ 1.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Common definitions
 
2
include ../../common.mak
 
3
 
 
4
CFLAGS := -I../include -I../boot -O2 -Wall -DZFCPDUMP_DIR=$(ZFCPDUMP_DIR) \
 
5
          -DZFCPDUMP_IMAGE=$(ZFCPDUMP_IMAGE) -DZFCPDUMP_RD=$(ZFCPDUMP_RD) \
 
6
          -DS390_TOOLS_RELEASE=$(S390_TOOLS_RELEASE)
 
7
objects = misc.o procpart.o error.o scan.o job.o boot.o bootmap.o disk.o \
 
8
          install.o zipl.o
 
9
includes = $(wildcard ../include/*.h)
 
10
 
 
11
all: zipl
 
12
 
 
13
zipl: ../boot/data.c $(objects)
 
14
        $(CC) $(objects) -o zipl
 
15
 
 
16
%.o: %.c $(includes) Makefile
 
17
        $(CC) $(CFLAGS) -c -o $@ $<
 
18
 
 
19
install: all
 
20
        @echo $(INSTALL)
 
21
        $(INSTALL) -d -m 755 $(BINDIR)
 
22
        $(INSTALL) -c zipl $(BINDIR)
 
23
 
 
24
clean:
 
25
        rm -f *.o zipl
 
26
 
 
27
.PHONY: all install clean
 
28
 
 
29
 
 
30
# Additional manual dependencies
 
31
 
 
32
boot.o: ../boot/data.c