blob: d9ef41ffd4a9a5a8fb1bec9caba4ba26f6a72712 (
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
35
|
$NetBSD: patch-ab,v 1.2 2004/02/17 12:45:56 cube Exp $
--- vm/Makefile.orig 2003-08-21 03:23:17.000000000 +0200
+++ vm/Makefile
@@ -19,8 +19,8 @@
#LDASMOPT = -lasm
# Uncommant that to use libreadline
-#READLNOPT = -DUSE_READLN
-#LDREADLNOPT = -lreadline -ltermcap
+READLNOPT = -DUSE_READLN
+LDREADLNOPT = -lreadline -ltermcap
# End of configurable Makefile
@@ -36,15 +36,15 @@ SRC = grammar.c disasm.c dyn.c hdr.c m
OBJ = $(SRC:.c=.o)
SRC_DYN = elfsh_etdyn.c
OBJ_DYN = $(SRC_DYN:.c=.o)
-CC = gcc
-RM = rm -f
+# CC = gcc
+# RM = rm -f
NAME = elfsh
-CFLAGS = -rdynamic -fPIC -g3 -O2 -Wall -Iinclude \
+CFLAGS += -rdynamic -fPIC -g3 -O2 -Wall -Iinclude \
-I../libhash/include/ -I../libelfsh/include/ \
-DELFSH_INTERN $(DLOPT) $(ASMOPT) $(READLNOPT)
-LDFLAGS = -L../libelfsh/ -lelfsh -L../libhash/ -lhashelfsh \
+LDFLAGS += -L../libelfsh/ -lelfsh -L../libhash/ -lhashelfsh \
-rdynamic -g3 $(LDASMOPT) $(LDREADLNOPT) $(DLOPT)\
$(EXTRAOPT)
|