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
|
#
# This Makefile is used for compatibility to the
# isdn4k-utils package. In order to superseede
# the original Makefile, it is called GNUmakefile.
#
EDEF=$(CFLAGS)
ifeq (../.config,$(wildcard ../.config))
include ../.config
MAN1DIROPT = MANDIR=$(CONFIG_MANDIR)/man1
MAN3DIROPT = LIBMANDIR=$(CONFIG_MANDIR)/man3
MAN5DIROPT = FILEMANDIR=$(CONFIG_MANDIR)/man5
MANDIROPTS = $(MAN1DIROPT) $(MAN3DIROPT) $(MAN5DIROPT)
BINDIROPT = BINDIR=$(CONFIG_BINDIR)
endif
all: xisdnload
xisdnload:
$(CC) $(CFLAGS) -g -O2 -fno-strict-aliasing -I/usr/X11R6/include -c xisdnload.c
$(CC) $(CFLAGS) $(LDFLAGS) -o xisdnload -L/usr/X11R6/lib xisdnload.o -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11
config:
cp -p Makefile.in GNUmakefile
cp -p Makefile.in Makefile
clean:
rm -f xisdnload xisdnload.o
distclean: clean
rm -f Makefile Makefile.bak GNUmakefile
install-man: xisdnload.man
install -d $(DESTDIR)/usr/share/man/man1
install -c -m 644 xisdnload.man $(DESTDIR)/usr/share/man/man1/xisdnload.1x
install: xisdnload install-man
install -d $(DESTDIR)/usr/bin
install -d $(DESTDIR)/etc/X11/app-defaults
install -c -m 0755 -s xisdnload $(DESTDIR)/usr/bin/
install -c -m 644 XISDNLoad.ad $(DESTDIR)/etc/X11/app-defaults/XISDNLoad
uninstall:
rm -f $(DESTDIR)$(CONFIG_BINDIR)/xisdnload
find $(DESTDIR)$(CONFIG_MANDIR) -name "xisdnload.*" -exec rm -f {} \;
|