Commit | Line | Data |
---|---|---|
21c4e167 H |
1 | #CFLAGS = -g -Wall -pedantic -ansi $$(pkg-config --cflags glib-2.0) |
2 | #LDFLAGS = -lncursesw $$(pkg-config --libs glib-2.0) | |
3 | CFLAGS = -O2 -Wall $$(pkg-config --cflags glib-2.0) | |
4 | LDFLAGS = -s -lncursesw $$(pkg-config --libs glib-2.0) | |
5 | PREFIX = /usr/local | |
6 | SOURCES = fm.c fs.c ui.c cmd.c | |
7 | HEADERS = fm.h | |
8 | OBJECTS = ${SOURCES:.c=.o} | |
9 | BINARY = fm | |
10 | ||
11 | #all: tags ${BINARY} | |
12 | all: ${BINARY} | |
13 | ||
14 | ${BINARY}: ${OBJECTS} | |
15 | ${CC} ${LDFLAGS} -o ${BINARY} ${OBJECTS} | |
16 | ||
17 | ${OBJECTS}: ${HEADERS} | |
18 | ||
19 | tags: ${SOURCES} ${HEADERS} | |
20 | ctags ${SOURCES} ${HEADERS} | |
21 | ||
22 | install: all | |
23 | install -D -m 755 -o root -g root ${BINARY} ${PREFIX}/bin/${BINARY} | |
24 | ||
25 | uninstall: | |
26 | rm -f ${PREFIX}/bin/${BINARY} | |
27 | ||
28 | clean: | |
29 | rm -f fm *.o tags |