blob: e3cb92c17a01031a3829165dcc6eb95818e05d6d (
plain)
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
|
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
DESTDIR_DATA = /usr/local/share
make:
- cd src && make
+ $(MAKE) -C src phear
clean:
rm -f phear editor
install:
--- a/src/Makefile
+++ b/src/Makefile
@@ -2,10 +2,8 @@
DESTDIR = ..
-CC = gcc
INSTALL = install
-CFLAGS ?= -s -Wall -O2
-LDFLAGS += -lncurses
+LDLIBS = `${PKG_CONFIG} ncurses --libs`
all: phear install clean
@@ -13,7 +11,7 @@
$(CC) $(CFLAGS) -c $^ -o $@
phear: $(OBJS)
- $(CC) $(CFLAGS) -o $@ $^ ${LDFLAGS}
+ $(CC) $(CFLAGS) -o $@ $^ ${LDFLAGS} $(LDLIBS)
install: install-game
|