Mercurial > hg
view mcabber/src/Makefile.mcabber @ 147:7571de4aed73
[/trunk] Changeset 159 by mikael
* Fix a bug in buddylist_build()
* We now lock the current buddy even not when being in chat mode.
For example, if we're writing to s.o. and he leaves just before
we press enter, we won't write to the wrong buddy...
If the current_buddy is a group, we lock it too.
* Remove MCABBER_TESTUNIT ifdef in roster.h (test program isn't
up-to-date anymore...)
author | mikael |
---|---|
date | Fri, 29 Apr 2005 19:56:28 +0000 |
parents | 39fd2f53f035 |
children |
line wrap: on
line source
# # mcabber Makefile # # # Available options: # # Environment variables: # CPU optimize for the given processor. # default = pentium # DEBUG=1 disable optimizations and build for debug # default = no # GNU99=1 use GNU99 extensions # default = no # # Targets: # all: build executable # clean: remove object files # realclean: remove all generated files # install: build & install # dep: create dependencies # .PHONY: all clean realclean install # dep CPU ?= i386 JCLIENT = mcabber ifndef CC CC = gcc endif CFLAGS = -Wall -W -pedantic LD = $(CC) LDLIBS = -lncurses -lpanel -lssl -L../libjabber -L../connwrap -llibjabber -lconnwrap ifeq ($(DEBUG),1) CFLAGS += -O0 -g -DDEBUG=1 else CFLAGS += -O2 -mcpu=$(CPU) LDFLAGS = -s endif ifeq ($(GNU99),1) CFLAGS += -std=gnu99 -D_GNU_SOURCE endif CP = cp -f SOURCES = \ main.c \ commands.c \ screen.c \ utils.c \ buddies.c \ parsecfg.c \ jabglue.c \ lang.c \ utf8.c OBJECTS = $(SOURCES:.c=.o) .c.o: $(CC) -o $@ $(CFLAGS) -c $< all: $(JCLIENT) $(JCLIENT): $(OBJECTS) $(LD) -o $@ $(LDFLAGS) $^ $(LDLIBS) clean: -$(RM) *~ -$(RM) $(JCLIENT) -$(RM) $(OBJECTS) # -$(RM) depend realclean: clean -$(RM) $(JCLIENT) install: all $(CP) $(JCLIENT) /usr/local/bin/$(JCLIENT) #dep: $(SOURCES) # makedepend -f- -Ylydialog -- $(CFLAGS) -- $(SOURCES) > depend #-include depend