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

43 lines
1.2 KiB
Makefile
Raw Normal View History

2012-02-02 19:00:15 -05:00
CC = gcc
2012-02-05 10:10:10 -05:00
WARNS = -Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-but-set-variable
LIBS = -lxml2 -lexpat -lssl -lresolv -lncurses -L ~/lib -lstrophe
2012-03-01 20:51:40 -05:00
TESTLIB = -L ~/lib -l headunit
CPPLIB = -lstdc++
CFLAGS = -I ~/include -O3 $(WARNS) $(LIBS)
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-03-07 19:46:24 -05:00
profanity.o util.o command.o history.o contact_list.o main.o
TESTOBJS = test_history.o history.o test_contact_list.o contact_list.o
2012-02-02 19:00:15 -05:00
2012-02-05 10:10:10 -05:00
profanity: $(OBJS)
$(CC) -o profanity $(OBJS) $(LIBS)
log.o: log.h
2012-03-08 18:03:26 -05:00
windows.o: windows.h util.h contact_list.h
2012-02-08 18:49:46 -05:00
title_bar.o: windows.h
2012-02-12 17:20:21 -05:00
status_bar.o: windows.h util.h
2012-02-08 18:49:46 -05:00
input_win.o: windows.h
2012-03-07 19:46:24 -05:00
jabber.o: jabber.h log.h windows.h contact_list.h
2012-02-26 20:44:09 -05:00
profanity.o: log.h windows.h jabber.h command.h history.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-02-26 20:44:09 -05:00
history.o: history.h
2012-03-07 19:46:24 -05:00
contact_list.o: contact_list.h
2012-02-29 20:54:19 -05:00
main.o: profanity.h
2012-02-02 19:00:15 -05:00
2012-03-01 20:51:40 -05:00
test_history.o: history.h
2012-03-07 19:46:24 -05:00
test_contact_list.o: contact_list.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