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
|
2012-02-02 19:00:15 -05:00
|
|
|
LIBS = -lxml2 -lssl -lresolv -lncurses -lstrophe
|
2012-02-05 10:10:10 -05:00
|
|
|
CFLAGS = -O3 $(WARNS) $(LIBS)
|
2012-02-05 18:29:09 -05:00
|
|
|
OBJS = log.o windows.o jabber.o profanity.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-02-05 18:08:15 -05:00
|
|
|
windows.o: windows.h
|
2012-02-05 18:29:09 -05:00
|
|
|
jabber.o: log.h windows.h
|
2012-02-05 10:10:10 -05:00
|
|
|
profanity.o: log.h
|
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
|
|
|
|
rm *.o
|