File: Makefile

package info (click to toggle)
z8530-utils2 3.0-1-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 248 kB
  • ctags: 116
  • sloc: ansic: 1,217; makefile: 76; sh: 9
file content (57 lines) | stat: -rw-r--r-- 1,857 bytes parent folder | download | duplicates (6)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
VERSION = 3.0-1
DIRECTORY = z8530drv-utils
KERNEL  = `cat /proc/version | cut -d" " -f3`
CCOPT   = -O2 -Wall -g -Wstrict-prototypes # -DCONFIG_SCC_STANDALONE

all: utils

utils: sccparam sccstat sccinit gencfg kissbridge

sccparam: sccparam.c
	gcc ${CCOPT} sccparam.c -o $@

sccstat: sccstat.c
	gcc ${CCOPT} sccstat.c -o $@

sccinit: sccinit.c
	gcc ${CCOPT} sccinit.c -o $@

gencfg: gencfg.c
	gcc ${CCOPT} gencfg.c -o $@

kissbridge: kissbridge.c
	gcc ${CCOPT} kissbridge.c -o $@

install:
	install -s -g root -o root -m 0755 -s gencfg $(DESTDIR)/usr/bin/gencfg
	install -s -g root -o root -m 0755 -s sccstat $(DESTDIR)/usr/bin/sccstat
	install -s -g root -o root -m 0700 -s sccinit $(DESTDIR)/usr/sbin/sccinit
	install -s -g root -o root -m 0700 -s sccparam $(DESTDIR)/usr/sbin/sccparam
	install -s -g root -o root -m 0700 -s kissbridge $(DESTDIR)/usr/sbin/kissbridge
	install -g root -o root -m 0644 z8530drv.conf $(DESTDIR)/etc/z8530drv.conf

clean:
	rm -f *.o *~ doc/*~ sccstat sccinit sccparam gencfg kissbridge

distrib:
	( cd .. && tar zcvvf z8530drv-utils-${VERSION}.tar.gz \
	z8530drv-utils/README z8530drv-utils/Makefile \
	z8530drv-utils/doc z8530drv-utils/*.c z8530drv-utils/*.h \
	z8530drv-utils/sccinit z8530drv-utils/sccparam z8530drv-utils/sccstat \
	z8530drv-utils/gencfg z8530drv-utils/kissbridge \
	z8530drv-utils/z8530drv.conf z8530drv-utils/*.lsm)

lharc:
	( cd .. && lharc a z8530drv-utils-${VERSION}.lzh \
	z8530drv-utils/README z8530drv-utils/Makefile \
	z8530drv-utils/doc z8530drv-utils/*.c z8530drv-utils/*.h \
	z8530drv-utils/sccinit z8530drv-utils/sccparam z8530drv-utils/sccstat \
	z8530drv-utils/gencfg z8530drv-utils/kissbridge \
	z8530drv-utils/z8530drv.conf z8530drv-utils/*.lsm)

dep:
	gcc ${CCOPT} -M sccstat.c sccinit.c sccparam.c kissbridge.c gencfg.c >.depend

ifeq (.depend,$(wildcard .depend))
include .depend
endif