File: Makefile

package info (click to toggle)
s390-zfcp 1.0.6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 144 kB
  • sloc: ansic: 1,651; makefile: 24; sh: 3
file content (35 lines) | stat: -rw-r--r-- 734 bytes parent folder | download | duplicates (3)
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
28
29
30
31
32
33
34
35
#
# Makefile to build the s390 FCP device configuration panels for the
# Debian Installer
#

CC := gcc
CFLAGS := -Wall -W -pipe -Os -I/usr/include/sysfs -D_GNU_SOURCE
LDFLAGS := -ldebconfclient -ldebian-installer

DEB_BUILD_OPTIONS=debug

ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
CFLAGS += -g -ggdb
STRIP = /bin/true
else
CFLAGS += -fomit-frame-pointer
STRIPTOOL=strip
STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment
endif

S390_DEV_LIB = s390-dev.o s390-dev-misc.o s390-dev-path.o
ZFCP_CONFIG = zfcp-config

all: $(ZFCP_CONFIG)

$(S390_DEV_LIB): s390-dev.h

zfcp-config: zfcp-config.o $(S390_DEV_LIB) s390-zfcp.o
	$(CC) -o $@ $^ $(LDFLAGS)
	$(STRIP) $@

clean:
	rm -f $(ZFCP_CONFIG) *.o

.PHONY: clean