pinosaur
/
smdp.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5ffe2e4
)
Using the implicit rules of `make`.
author
FreeBirdLjj
<ljj11011@mail.ustc.edu.cn>
Wed, 17 Sep 2014 14:45:33 +0000
(22:45 +0800)
committer
FreeBirdLjj
<ljj11011@mail.ustc.edu.cn>
Wed, 17 Sep 2014 14:45:33 +0000
(22:45 +0800)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
c99d35d
..
de3c650
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-18,22
+18,17
@@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-CC = /usr/bin/gcc
CFLAGS = -Wall -g
CFLAGS = -Wall -g
-LD
FLAGS
= -lncurses
+LD
LIBS
= -lncurses
OBJECTS = cstring.o cstack.o markdown.o parser.o viewer.o mdp.o
DESTDIR ?= /usr/bin
OBJECTS = cstring.o cstack.o markdown.o parser.o viewer.o mdp.o
DESTDIR ?= /usr/bin
-%.o: %.c
- $(CC) $(CFLAGS) -c $<
-
all: mdp
mdp: $(OBJECTS)
all: mdp
mdp: $(OBJECTS)
- $(CC) $(CFLAGS) -o mdp $(OBJECTS) $(LDFLAGS)
clean:
clean:
-
rm -f
$(OBJECTS) mdp
+
$(RM)
$(OBJECTS) mdp
install: mdp
if which strip 1>/dev/null 2>&1; then strip mdp; fi
install: mdp
if which strip 1>/dev/null 2>&1; then strip mdp; fi