File: Makefile.in

package info (click to toggle)
isdnutils 1:3.25+dfsg1-3.5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 18,188 kB
  • ctags: 12,236
  • sloc: ansic: 98,041; sh: 19,044; perl: 4,948; makefile: 3,145; cpp: 2,708; tcl: 22
file content (70 lines) | stat: -rw-r--r-- 1,642 bytes parent folder | download | duplicates (5)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
# $Id: Makefile.in,v 1.2 2002/07/19 19:03:51 keil Exp $
#
# Makefile for hisaxctrl adapted from telesctrl
# (C) 1997 Fritz Elfert
# (C) 2000 Karsten Keil
#
#
SHELL			= /bin/sh
CFLAGS			= -Wall -O2 -I.
LDFLAGS			= -L../lib @LIBS@
PROGRAMS		=
MODULES			= hisaxctrl.o
MANPAGES		=
INSTALL			= @INSTALL@
SBINDIR			= @CONFIG_SBINDIR@
DATADIR			= @CONFIG_DATADIR@
MANDIR			= @CONFIG_MANDIR@
MAN8DIR			= $(MANDIR)/man8
INSTALL_PROGRAM	= $(INSTALL) -o 0 -g 0 -m 0750
INSTALL_DATA	= $(INSTALL) -o 0 -g 0 -m 0644
INSTALL_MAN		= $(INSTALL) -o 0 -g 0 -m 0644
prefix			= @prefix@
exec_prefix		= @exec_prefix@
ifeq ("@CONFIG_HISAXCTRL@","y")
	PROGRAMS	+= hisaxctrl
	MANPAGES	+= hisaxctrl.8
endif
CC				= @CC@

#.SUFFIXES:
#.SUFFIXES: .c .o

%.8: %.man
	cp $< $@

all: $(PROGRAMS) $(MANPAGES)

config:
	@./configure

hisaxctrl:	$(MODULES)
	$(CC) $(CFLAGS) $? $(LDFLAGS) -o $@

install: $(PROGRAMS) $(MANPAGES)
	mkdir -p $(DESTDIR)$(SBINDIR)
	$(INSTALL_PROGRAM) $(PROGRAMS) $(DESTDIR)$(SBINDIR)
#	mkdir -p $(DESTDIR)$(DATADIR)
#	$(INSTALL_DATA) ISAR.BIN $(DESTDIR)$(DATADIR)/ISAR.BIN
	mkdir -p $(DESTDIR)$(MAN8DIR)
	$(INSTALL_MAN) $(MANPAGES) $(DESTDIR)$(MAN8DIR)

install-strip: $(PROGRAMS) $(MANPAGES)
	mkdir -p $(DESTDIR)$(SBINDIR)
	$(INSTALL_PROGRAM) -s $(PROGRAMS) $(DESTDIR)$(SBINDIR)
	mkdir -p $(DESTDIR)$(MAN8DIR)
	$(INSTALL_MAN) $(MANPAGES) $(DESTDIR)$(MAN8DIR)

uninstall:
	@for i in `echo $(PROGRAMS)` ; do \
		rm -f $(DESTDIR)$(SBINDIR)/$$i ; \
	done
	@for i in `echo $(MANPAGES)` ; do \
		rm -f $(DESTDIR)$(MAN8DIR)/$$i ; \
	done

clean:
	rm -f *.o *~ $(PROGRAMS) *.8 *.man

distclean: clean
	rm -f config.status config.cache config.log Makefile