~ubuntu-branches/ubuntu/oneiric/base-installer/oneiric

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2009-09-23 16:24:16 UTC
  • Revision ID: james.westby@ubuntu.com-20090923162416-73gj7x1qo5y62ii9
Tags: 1.101ubuntu5
Use DMI information if possible to determine memory size (LP: #413135).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
ifndef TARGETS
2
2
TARGETS=pkgdetails run-debootstrap
3
3
endif
 
4
ifeq ($(shell dpkg-architecture -qDEB_HOST_ARCH),i386)
 
5
TARGETS+=dmi-available-memory
 
6
endif
4
7
 
5
8
CFLAGS = -Wall -g -D_GNU_SOURCE
6
9
 
18
21
run-debootstrap: run-debootstrap.c
19
22
        $(CC) $(CFLAGS) -o $@ $^ -ldebconfclient -ldebian-installer
20
23
 
 
24
dmi-available-memory: dmi-available-memory.c
 
25
        $(CC) $(CFLAGS) -o $@ $^
 
26
 
21
27
small: CFLAGS:=-Os $(CFLAGS)
22
28
small: $(TARGETS)
23
29
        strip --remove-section=.comment --remove-section=.note $^