Split log into module

This commit is contained in:
James Booth
2012-02-05 15:10:10 +00:00
parent 10bc41239f
commit 5eaf687d98
5 changed files with 50 additions and 108 deletions

View File

@@ -1,12 +1,15 @@
CC = gcc
CFLAGS = -O3 -Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-but-set-variable
WARNS = -Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-but-set-variable
LIBS = -lxml2 -lssl -lresolv -lncurses -lstrophe
CFLAGS = -O3 $(WARNS) $(LIBS)
OBJS = log.o profanity.o
profanity: clean
$(CC) profanity.c $(LIBS) -o profanity
$(CC) curses_example.c -lncurses -o curses_example
profanity: $(OBJS)
$(CC) -o profanity $(OBJS) $(LIBS)
log.o: log.h
profanity.o: log.h
.PHONY: clean
clean:
rm -f profanity
rm -f curses_example