~ubuntu-branches/ubuntu/hardy/silo/hardy-updates

« back to all changes in this revision

Viewing changes to silo/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Fabio M. Di Nitto
  • Date: 2007-10-25 09:28:08 UTC
  • mfrom: (15.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071025092808-1yhj12t7s4zqsfu5
Tags: 1.4.13a+git20070930-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Build with -fno-stack-protector.
  - Change silo.postinst to automatically update the boot block without
    invoking siloconfig and keep asking questions on upgrades.
  - Convert silo.conf to use /dev/disk/by-uuid.
  - Ubuntu maintainer foobar.
  - Fix debian/rules call to dh_installdocs.
  - Drop the requirement of gcc-4.1 and start using default gcc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include ../Rules.make
 
2
 
 
3
PROGRAMS=silo silocheck
 
4
UFSDEPS=
 
5
 
 
6
CFLAGS=-O2 -Wall -I. -I../include
 
7
 
 
8
ifeq ($(OPSYS),Solaris)
 
9
  UFSDEPS=../second/ufs.c ufs.h
 
10
endif
 
11
 
 
12
all: $(PROGRAMS)
 
13
 
 
14
HEADERS=../first/first.h ../first/ultra.h ../first/fd.h
 
15
SILO_OBJS=confcheck.o prom.o silo.o
 
16
SILOCHK_OBJS=silocheck.o
 
17
 
 
18
silo: $(HEADERS) $(SILO_OBJS)
 
19
        $(CC) -o $@ $(SILO_OBJS)
 
20
 
 
21
silocheck: $(SILOCHK_OBJS) $(UFSDEPS)
 
22
        $(CC) -o $@ $(SILOCHK_OBJS)
 
23
 
 
24
floppy.h: floppy.label $(BIN2H)
 
25
        $(BIN2H) floppy_label floppy.label > floppy.h
 
26
 
 
27
ufs.h: ../second/ufs.h
 
28
        ln -f ../second/ufs.h ufs.h
 
29
 
 
30
$(HEADERS):
 
31
        $(MAKE) -C ../first first.h ultra.h fd.h
 
32
 
 
33
silo.o: silo.c floppy.h $(UFSDEPS)
 
34
        $(CC) $(CFLAGS) -DVERSION='"$(VERSION)"' -DIMGVERSION='"$(IMGVERSION)"' -c silo.c
 
35
 
 
36
clean:
 
37
        $(RM) *.o silo floppy.h ufs.h silocheck