Started work on bash style history

This commit is contained in:
James Booth
2012-04-30 01:09:42 +01:00
parent c511d7c99f
commit b6c5fef45e
7 changed files with 161 additions and 3 deletions

View File

@@ -1,13 +1,15 @@
CC = gcc
WARNS = -Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-but-set-variable
WARNS = -Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-but-set-variable \
-Wno-unused-result
LIBS = -lxml2 -lexpat -lssl -lresolv -lncurses -L ~/lib -lstrophe `pkg-config --libs glib-2.0`
TESTLIB = -L ~/lib -l headunit
CPPLIB = -lstdc++
CFLAGS = -I ~/include -O3 $(WARNS) $(LIBS) `pkg-config --cflags glib-2.0`
OBJS = log.o windows.o title_bar.o status_bar.o input_win.o jabber.o \
profanity.o util.o command.o history.o contact_list.o main.o
profanity.o util.o command.o history.o contact_list.o prof_history.o \
main.o
TESTOBJS = test_history.o history.o test_contact_list.o contact_list.o \
test_util.o util.o
test_util.o test_prof_history.o prof_history.o util.o
profanity: $(OBJS)
$(CC) -o profanity $(OBJS) $(LIBS)
@@ -23,11 +25,13 @@ util.o: util.h
command.o: command.h util.h history.h contact_list.h
history.o: history.h
contact_list.o: contact_list.h
prof_history.o: prof_history.h
main.o: profanity.h
test_history.o: history.h
test_contact_list.o: contact_list.h
test_util.o: util.h
test_prof_history.o: prof_history.h
testsuite: testsuite.h $(TESTOBJS)
$(CC) $(CFLAGS) $(CPPLIB) testsuite.c $(TESTOBJS) -o testsuite $(TESTLIB)