docs
[mirrors/Programs.git] / bash / bbs / utils / fm / fm / Makefile
CommitLineData
db4042d6
H
1# Comment next 2 line to disable Linux inotify support.
2INOTIFY = -DINOTIFY
3INOTIFY_SOURCE = ino.c
4CFLAGS = -Wall -pedantic -ansi ${INOTIFY} $$(pkg-config --cflags glib-2.0) -g #-O2
5LDFLAGS = -lncursesw $$(pkg-config --libs glib-2.0) #-s
6PREFIX = /usr/local
7SOURCES = fm.c fs.c ui.c cmd.c ${INOTIFY_SOURCE}
8HEADERS = fm.h
9OBJECTS = ${SOURCES:.c=.o}
10BINARY = fm
11
12all: ${BINARY}
13
14${BINARY}: ${OBJECTS}
15 ${CC} ${LDFLAGS} -o ${BINARY} ${OBJECTS}
16
17${OBJECTS}: ${HEADERS}
18
19tags: ${SOURCES} ${HEADERS}
20 ctags ${SOURCES} ${HEADERS}
21
22install: all
23 install -D -m 755 -o root -g root ${BINARY} ${DESTDIR}/${PREFIX}/bin/${BINARY}
24
25uninstall:
26 rm -f ${PREFIX}/bin/${BINARY}
27
28clean:
29 rm -f ${BINARY} *.o tags
This page took 0.182318 seconds and 4 git commands to generate.