Split log into module
This commit is contained in:
13
Makefile
13
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user