From 30ca6cac3d7f86e4a43410ba361793cd99d97a10 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 1 Jul 2012 14:47:09 +0100 Subject: [PATCH] Added autobuild tools --- .gitignore | 14 +++++ Makefile | 55 ------------------- command.c => src/command.c | 0 command.h => src/command.h | 0 common.c => src/common.c | 0 common.h => src/common.h | 0 contact.c => src/contact.c | 0 contact.h => src/contact.h | 0 contact_list.c => src/contact_list.c | 0 contact_list.h => src/contact_list.h | 0 history.c => src/history.c | 0 history.h => src/history.h | 0 input_win.c => src/input_win.c | 0 jabber.c => src/jabber.c | 0 jabber.h => src/jabber.h | 0 log.c => src/log.c | 0 log.h => src/log.h | 0 main.c => src/main.c | 0 preferences.c => src/preferences.c | 0 preferences.h => src/preferences.h | 0 .../prof_autocomplete.c | 0 .../prof_autocomplete.h | 0 prof_history.c => src/prof_history.c | 0 prof_history.h => src/prof_history.h | 0 profanity.c => src/profanity.c | 0 profanity.h => src/profanity.h | 0 status_bar.c => src/status_bar.c | 0 title_bar.c => src/title_bar.c | 0 ui.h => src/ui.h | 0 util.c => src/util.c | 0 util.h => src/util.h | 0 windows.c => src/windows.c | 0 .../test_contact_list.c | 0 .../test_prof_autocomplete.c | 0 .../test_prof_history.c | 0 test_util.c => tests/test_util.c | 0 testsuite.c => tests/testsuite.c | 0 testsuite.h => tests/testsuite.h | 0 38 files changed, 14 insertions(+), 55 deletions(-) delete mode 100644 Makefile rename command.c => src/command.c (100%) rename command.h => src/command.h (100%) rename common.c => src/common.c (100%) rename common.h => src/common.h (100%) rename contact.c => src/contact.c (100%) rename contact.h => src/contact.h (100%) rename contact_list.c => src/contact_list.c (100%) rename contact_list.h => src/contact_list.h (100%) rename history.c => src/history.c (100%) rename history.h => src/history.h (100%) rename input_win.c => src/input_win.c (100%) rename jabber.c => src/jabber.c (100%) rename jabber.h => src/jabber.h (100%) rename log.c => src/log.c (100%) rename log.h => src/log.h (100%) rename main.c => src/main.c (100%) rename preferences.c => src/preferences.c (100%) rename preferences.h => src/preferences.h (100%) rename prof_autocomplete.c => src/prof_autocomplete.c (100%) rename prof_autocomplete.h => src/prof_autocomplete.h (100%) rename prof_history.c => src/prof_history.c (100%) rename prof_history.h => src/prof_history.h (100%) rename profanity.c => src/profanity.c (100%) rename profanity.h => src/profanity.h (100%) rename status_bar.c => src/status_bar.c (100%) rename title_bar.c => src/title_bar.c (100%) rename ui.h => src/ui.h (100%) rename util.c => src/util.c (100%) rename util.h => src/util.h (100%) rename windows.c => src/windows.c (100%) rename test_contact_list.c => tests/test_contact_list.c (100%) rename test_prof_autocomplete.c => tests/test_prof_autocomplete.c (100%) rename test_prof_history.c => tests/test_prof_history.c (100%) rename test_util.c => tests/test_util.c (100%) rename testsuite.c => tests/testsuite.c (100%) rename testsuite.h => tests/testsuite.h (100%) diff --git a/.gitignore b/.gitignore index 85d548f8..e5c765ae 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,17 @@ profanity *.swp testsuite tags +.deps/ +Makefile +Makefile.in +aclocal.m4 +autom4te.cache/ +config.h +config.h.in +config.status +configure +configure.scan +depcomp +install-sh +missing +stamp-h1 diff --git a/Makefile b/Makefile deleted file mode 100644 index 379a12e0..00000000 --- a/Makefile +++ /dev/null @@ -1,55 +0,0 @@ -CC = gcc -WARNS = -Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-but-set-variable \ - -Wno-unused-result -LIBS = -lncurses -L ~/lib -lstrophe -lxml2 -lexpat -lssl -lresolv \ - `pkg-config --libs glib-2.0` `pkg-config --libs libnotify` -TESTLIB = -L ~/lib -l headunit `pkg-config --libs glib-2.0` -CPPLIB = -lstdc++ -CFLAGS = -I ~/include -O3 $(WARNS) $(LIBS) `pkg-config --cflags glib-2.0` `pkg-config --cflags libnotify` -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 prof_history.o \ - contact.o preferences.o prof_autocomplete.o common.o main.o -TESTOBJS = test_contact_list.o contact_list.o contact.o \ - test_util.o test_prof_history.o prof_history.o util.o \ - test_prof_autocomplete.o prof_autocomplete.o common.o - -profanity: $(OBJS) - $(CC) -o profanity $(OBJS) $(LIBS) - -common.o: common.h -log.o: log.h -windows.o: ui.h util.h contact_list.h preferences.h -title_bar.o: ui.h -status_bar.o: ui.h util.h -input_win.o: ui.h preferences.h util.h command.h -jabber.o: jabber.h log.h ui.h contact_list.h -profanity.o: log.h ui.h jabber.h command.h preferences.h \ - contact_list.h -util.o: util.h -command.o: command.h util.h history.h contact_list.h -history.o: history.h prof_history.h -contact_list.o: contact_list.h contact.h prof_autocomplete.h -prof_history.o: prof_history.h -contact.o: contact.h -preferences.o: preferences.h log.h -prof_autocomplete.o: prof_autocomplete.h common.h -main.o: profanity.h - -test_contact_list.o: contact_list.h contact.h -test_util.o: util.h -test_prof_history.o: prof_history.h -test_prof_autocomplete.o: contact.h prof_autocomplete.h - -testsuite: testsuite.h $(TESTOBJS) - $(CC) $(CFLAGS) $(CPPLIB) testsuite.c $(TESTOBJS) -o testsuite $(TESTLIB) - -.PHONY: test -test: testsuite - ./testsuite - -.PHONY: clean -clean: - rm -f profanity - rm -f profanity.log - rm -f *.o - rm -f testsuite diff --git a/command.c b/src/command.c similarity index 100% rename from command.c rename to src/command.c diff --git a/command.h b/src/command.h similarity index 100% rename from command.h rename to src/command.h diff --git a/common.c b/src/common.c similarity index 100% rename from common.c rename to src/common.c diff --git a/common.h b/src/common.h similarity index 100% rename from common.h rename to src/common.h diff --git a/contact.c b/src/contact.c similarity index 100% rename from contact.c rename to src/contact.c diff --git a/contact.h b/src/contact.h similarity index 100% rename from contact.h rename to src/contact.h diff --git a/contact_list.c b/src/contact_list.c similarity index 100% rename from contact_list.c rename to src/contact_list.c diff --git a/contact_list.h b/src/contact_list.h similarity index 100% rename from contact_list.h rename to src/contact_list.h diff --git a/history.c b/src/history.c similarity index 100% rename from history.c rename to src/history.c diff --git a/history.h b/src/history.h similarity index 100% rename from history.h rename to src/history.h diff --git a/input_win.c b/src/input_win.c similarity index 100% rename from input_win.c rename to src/input_win.c diff --git a/jabber.c b/src/jabber.c similarity index 100% rename from jabber.c rename to src/jabber.c diff --git a/jabber.h b/src/jabber.h similarity index 100% rename from jabber.h rename to src/jabber.h diff --git a/log.c b/src/log.c similarity index 100% rename from log.c rename to src/log.c diff --git a/log.h b/src/log.h similarity index 100% rename from log.h rename to src/log.h diff --git a/main.c b/src/main.c similarity index 100% rename from main.c rename to src/main.c diff --git a/preferences.c b/src/preferences.c similarity index 100% rename from preferences.c rename to src/preferences.c diff --git a/preferences.h b/src/preferences.h similarity index 100% rename from preferences.h rename to src/preferences.h diff --git a/prof_autocomplete.c b/src/prof_autocomplete.c similarity index 100% rename from prof_autocomplete.c rename to src/prof_autocomplete.c diff --git a/prof_autocomplete.h b/src/prof_autocomplete.h similarity index 100% rename from prof_autocomplete.h rename to src/prof_autocomplete.h diff --git a/prof_history.c b/src/prof_history.c similarity index 100% rename from prof_history.c rename to src/prof_history.c diff --git a/prof_history.h b/src/prof_history.h similarity index 100% rename from prof_history.h rename to src/prof_history.h diff --git a/profanity.c b/src/profanity.c similarity index 100% rename from profanity.c rename to src/profanity.c diff --git a/profanity.h b/src/profanity.h similarity index 100% rename from profanity.h rename to src/profanity.h diff --git a/status_bar.c b/src/status_bar.c similarity index 100% rename from status_bar.c rename to src/status_bar.c diff --git a/title_bar.c b/src/title_bar.c similarity index 100% rename from title_bar.c rename to src/title_bar.c diff --git a/ui.h b/src/ui.h similarity index 100% rename from ui.h rename to src/ui.h diff --git a/util.c b/src/util.c similarity index 100% rename from util.c rename to src/util.c diff --git a/util.h b/src/util.h similarity index 100% rename from util.h rename to src/util.h diff --git a/windows.c b/src/windows.c similarity index 100% rename from windows.c rename to src/windows.c diff --git a/test_contact_list.c b/tests/test_contact_list.c similarity index 100% rename from test_contact_list.c rename to tests/test_contact_list.c diff --git a/test_prof_autocomplete.c b/tests/test_prof_autocomplete.c similarity index 100% rename from test_prof_autocomplete.c rename to tests/test_prof_autocomplete.c diff --git a/test_prof_history.c b/tests/test_prof_history.c similarity index 100% rename from test_prof_history.c rename to tests/test_prof_history.c diff --git a/test_util.c b/tests/test_util.c similarity index 100% rename from test_util.c rename to tests/test_util.c diff --git a/testsuite.c b/tests/testsuite.c similarity index 100% rename from testsuite.c rename to tests/testsuite.c diff --git a/testsuite.h b/tests/testsuite.h similarity index 100% rename from testsuite.h rename to tests/testsuite.h