File: rules.mk

package info (click to toggle)
irssi-plugin-xmpp 0.54-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,952 kB
  • sloc: ansic: 8,831; makefile: 113; perl: 58
file content (33 lines) | stat: -rw-r--r-- 734 bytes parent folder | download | duplicates (4)
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
include ../../config.mk

OBJS = ${SRCS:.c=.o}

LIBSO=lib${LIB}.so

all: ${LIBSO}

.c.o:
	${CC} ${CPPFLAGS} ${CFLAGS} ${INCS} -o $@ -c $<

${LIBSO}: ${OBJS}
	${CC} ${LDFLAGS} -o $@ ${OBJS} ${LIBS}

clean:
	rm -f ${LIBSO} ${OBJS}

install: all
	@echo installing the module ${LIBSO} to ${DESTDIR}${IRSSI_LIB}/modules
	install -d ${DESTDIR}${IRSSI_LIB}/modules
	install ${LIBSO} ${DESTDIR}${IRSSI_LIB}/modules

uninstall:
	@echo deinstalling the module ${LIBSO} from ${DESTDIR}${IRSSI_LIB}/modules
	rm -f ${DESTDIR}${IRSSI_LIB}/modules/${LIBSO}

user-install:
	env DESTDIR= IRSSI_LIB=~/.irssi ${MAKE} install

user-uninstall:
	env DESTDIR= IRSSI_LIB=~/.irssi ${MAKE} uninstall

.PHONY: clean install uninstall user-install user-uninstall