Mercurial > ~mikael > mcabber > hg
diff mcabber/src/Makefile @ 28:0cd8025eebee
[/trunk] Changeset 44 by mikael
* Some more fixes.
* We can now build with GNU99 gcc extensions.
author | mikael |
---|---|
date | Mon, 28 Mar 2005 10:36:47 +0000 |
parents | e88b15cbf2de |
children | 86837ff0554c |
line wrap: on
line diff
--- a/mcabber/src/Makefile Mon Mar 28 09:18:01 2005 +0000 +++ b/mcabber/src/Makefile Mon Mar 28 10:36:47 2005 +0000 @@ -11,6 +11,8 @@ # default = pentium # DEBUG=1 disable optimizations and build for debug # default = no +# GNU99=1 use GNU99 extensions +# default = no # # Targets: # all: build executable @@ -26,10 +28,11 @@ CPU ?= i386 JCLIENT = mcabber - +ifndef CC CC = gcc +endif CFLAGS = -Wall -W -pedantic -LD = gcc +LD = $(CC) LDLIBS = -lncurses -lpanel ifeq ($(DEBUG),1) @@ -39,6 +42,10 @@ LDFLAGS = -s endif +ifeq ($(GNU99),1) +CFLAGS += -std=gnu99 -D_GNU_SOURCE +endif + CP = cp -f SOURCES = \ @@ -72,7 +79,7 @@ -$(RM) $(JCLIENT) install: all - $(CP) $(JCLIENT) /usr/bin/$(JCLIENT) + $(CP) $(JCLIENT) /usr/local/bin/$(JCLIENT) #dep: $(SOURCES) # makedepend -f- -Ylydialog -- $(CFLAGS) -- $(SOURCES) > depend