1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00
profanity/Makefile

56 lines
1.9 KiB
Makefile
Raw Normal View History

2012-02-02 19:00:15 -05:00
CC = gcc
2012-04-29 20:09:42 -04:00
WARNS = -Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-but-set-variable \
-Wno-unused-result
2012-06-28 18:29:46 -04:00
LIBS = -lncurses -L ~/lib -lstrophe -lxml2 -lexpat -lssl -lresolv \
`pkg-config --libs glib-2.0` `pkg-config --libs libnotify`
2012-05-20 15:46:58 -04:00
TESTLIB = -L ~/lib -l headunit `pkg-config --libs glib-2.0`
2012-03-01 20:51:40 -05:00
CPPLIB = -lstdc++
2012-06-28 18:29:46 -04:00
CFLAGS = -I ~/include -O3 $(WARNS) $(LIBS) `pkg-config --cflags glib-2.0` `pkg-config --cflags libnotify`
2012-02-12 17:20:21 -05:00
OBJS = log.o windows.o title_bar.o status_bar.o input_win.o jabber.o \
2012-04-29 20:09:42 -04:00
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
2012-05-03 20:00:01 -04:00
TESTOBJS = test_contact_list.o contact_list.o contact.o \
test_util.o test_prof_history.o prof_history.o util.o \
2012-05-19 17:05:54 -04:00
test_prof_autocomplete.o prof_autocomplete.o common.o
2012-02-02 19:00:15 -05:00
2012-02-05 10:10:10 -05:00
profanity: $(OBJS)
$(CC) -o profanity $(OBJS) $(LIBS)
common.o: common.h
2012-02-05 10:10:10 -05:00
log.o: log.h
2012-05-23 20:11:43 -04:00
windows.o: ui.h util.h contact_list.h preferences.h
title_bar.o: ui.h
status_bar.o: ui.h util.h
2012-06-04 18:59:09 -04:00
input_win.o: ui.h preferences.h util.h command.h
2012-05-23 20:11:43 -04:00
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
2012-02-08 19:48:17 -05:00
util.o: util.h
2012-03-07 19:46:24 -05:00
command.o: command.h util.h history.h contact_list.h
2012-04-30 19:24:31 -04:00
history.o: history.h prof_history.h
contact_list.o: contact_list.h contact.h prof_autocomplete.h
2012-04-29 20:09:42 -04:00
prof_history.o: prof_history.h
2012-05-03 20:00:01 -04:00
contact.o: contact.h
2012-06-18 18:06:17 -04:00
preferences.o: preferences.h log.h
2012-05-19 17:05:54 -04:00
prof_autocomplete.o: prof_autocomplete.h common.h
2012-02-29 20:54:19 -05:00
main.o: profanity.h
2012-02-02 19:00:15 -05:00
2012-05-03 20:00:01 -04:00
test_contact_list.o: contact_list.h contact.h
test_util.o: util.h
2012-04-29 20:09:42 -04:00
test_prof_history.o: prof_history.h
2012-05-17 20:33:40 -04:00
test_prof_autocomplete.o: contact.h prof_autocomplete.h
2012-03-01 20:51:40 -05:00
testsuite: testsuite.h $(TESTOBJS)
$(CC) $(CFLAGS) $(CPPLIB) testsuite.c $(TESTOBJS) -o testsuite $(TESTLIB)
.PHONY: test
test: testsuite
./testsuite
2012-02-02 19:00:15 -05:00
.PHONY: clean
clean:
rm -f profanity
2012-02-05 10:22:02 -05:00
rm -f profanity.log
2012-02-05 20:29:53 -05:00
rm -f *.o
2012-03-01 20:51:40 -05:00
rm -f testsuite