File: Makefile

package info (click to toggle)
base-installer 1.98
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,580 kB
  • ctags: 115
  • sloc: sh: 1,320; ansic: 569; makefile: 83; perl: 50
file content (27 lines) | stat: -rw-r--r-- 488 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
ifndef TARGETS
TARGETS=pkgdetails run-debootstrap
endif

CFLAGS = -Wall -g -D_GNU_SOURCE

ifdef DEBUG
CFLAGS:=$(CFLAGS) -g3
else
CFLAGS:=$(CFLAGS) -Os -fomit-frame-pointer
endif

all: $(TARGETS)

pkgdetails: pkgdetails.c
	$(CC) $(CFLAGS) -o $@ $^

run-debootstrap: run-debootstrap.c
	$(CC) $(CFLAGS) -o $@ $^ -ldebconfclient -ldebian-installer

small: CFLAGS:=-Os $(CFLAGS)
small: $(TARGETS)
	strip --remove-section=.comment --remove-section=.note $^
	ls -l $^

clean:
	-rm -f $(TARGETS)