Added readline library to test program.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 16 Jul 2001 10:31:03 +0000
changeset 36 60b6076ae5c2
parent 35 1fba29d8a172
child 37 768c8484b0cd
Added readline library to test program.
Makefile
--- a/Makefile	Sun Jul 15 18:56:07 2001 +0000
+++ b/Makefile	Mon Jul 16 10:31:03 2001 +0000
@@ -115,7 +115,7 @@
 BINDIR := bin
 SRCDIR := .
 
-CFLAGS += $(use_asm) -I$(SRCDIR) -D_REENTRANT -fsigned-char -DPLATFORM_UNIX
+CFLAGS += $(use_asm) -I$(SRCDIR) -I/usr/include/readline -D_REENTRANT -fsigned-char -DPLATFORM_UNIX
 CFLAGS += -Wall -Werror -fno-exceptions -fno-rtti -ansi -pedantic
 
 LDFLAGS += -lm
@@ -130,6 +130,7 @@
 
 ASMFLAGS := -f $(ASMOBJFMT) $(ASMDEFS)
 
+TESTLDFLAGS := -lreadline
 
 #-----------------------------------------------------------------------------#
 # Source and target names.
@@ -195,7 +196,7 @@
 	$(LINKER) -o $(MAINLIB) $(LDFLAGS) $(SHAREDFLAGS) $(MAINOBJS)
 
 $(TESTEXE) : $(MAINLIB) $(TESTOBJS)
-	$(LINKER) -o $(TESTEXE) $(LDFLAGS) $(TESTOBJS) $(MAINLIB)
+	$(LINKER) -o $(TESTEXE) $(LDFLAGS) $(TESTLDFLAGS) $(TESTOBJS) $(MAINLIB)
 
 
 $(BINDIR):