forked from Ajatt-Tools/dictpopup
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (30 loc) · 819 Bytes
/
Copy pathMakefile
File metadata and controls
43 lines (30 loc) · 819 Bytes
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
include config.mk
SRC = popup.c format_output.c
OBJ = $(SRC:.c=.o)
all: options dictpopup
options:
@echo popup build options:
@echo "CFLAGS = $(CFLAGS)"
@echo "LDFLAGS = $(LDFLAGS)"
@echo "CC = $(CC)"
config.h:
cp config.def.h config.h
.c.o:
$(CC) -c $(CFLAGS) $<
popup.o: config.h
$(OBJ): config.h config.mk
dictpopup: $(OBJ)
$(CC) -o format_output format_output.o
$(CC) -o popup popup.o $(LDFLAGS)
clean:
rm -f popup $(OBJ) format_output
install: all
mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f popup ${DESTDIR}${PREFIX}/bin
cp -f dictpopup ${DESTDIR}${PREFIX}/bin
cp -f format_output ${DESTDIR}${PREFIX}/bin
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/popup
rm -f ${DESTDIR}${PREFIX}/bin/dictpopup
rm -f ${DESTDIR}${PREFIX}/bin/format_output
.PHONY: all options clean install uninstall