/[public]/getopt/trunk/Makefile
ViewVC logotype

Diff of /getopt/trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 259 Revision 323
14LIBCGETOPT=1 14LIBCGETOPT=1
15 15
16# Define this to 1 if you do not have the gettext routines 16# Define this to 1 if you do not have the gettext routines
17WITHOUT_GETTEXT=0 17WITHOUT_GETTEXT=0
18 18
19 19# For creating the archive
20PACKAGE=getopt
21VERSION=1.1.4
22BASENAME=$(PACKAGE)-$(VERSION)
23UNLIKELYNAME=a8vwjfd92
20 24
21SHELL=/bin/sh 25SHELL=/bin/sh
22 26
23CC=gcc 27CC=gcc
24LD=ld 28LD=ld
27MSGFMT=msgfmt 31MSGFMT=msgfmt
28 32
29LANGUAGES = cs de es fr it ja nl pt_BR 33LANGUAGES = cs de es fr it ja nl pt_BR
30MOFILES:=$(patsubst %,po/%.mo,$(LANGUAGES)) 34MOFILES:=$(patsubst %,po/%.mo,$(LANGUAGES))
31 35
32CPPFLAGS=-DLIBCGETOPT=$(LIBCGETOPT) -DWITH_GETTEXT=$(WITH_GETTEXT) -DLOCALEDIR=\"$(localedir)\" -DNOT_UTIL_LINUX 36CPPFLAGS=-DLIBCGETOPT=$(LIBCGETOPT) -DWITH_GETTEXT=$(WITH_GETTEXT) -DLOCALEDIR=\"$(localedir)\" -DNOT_UTIL_LINUX -Dprogram_invocation_short_name=\"$(PACKAGE)\" -Dprogram_version=\"$(VERSION)\"
33ifeq ($(LIBCGETOPT),0) 37ifeq ($(LIBCGETOPT),0)
34CPPFLAGS+=-I./gnu 38CPPFLAGS+=-I./gnu
35endif 39endif
36WARNINGS=-Wall \ 40WARNINGS=-Wall \
37 -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual \ 41 -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual \
91%.o: %.c 95%.o: %.c
92 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c -o $*.o 96 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c -o $*.o
93 97
94%.mo: %.po 98%.mo: %.po
95 $(MSGFMT) -o $@ $< 99 $(MSGFMT) -o $@ $<
100
101# You need GNU tar for this to work!
102.PHONY: package
103package: clean
104 $(RM) -r $(UNLIKELYNAME)
105 mkdir $(UNLIKELYNAME)
106 ln -s .. $(UNLIKELYNAME)/$(BASENAME)
107 cd $(UNLIKELYNAME) && tar cfvzp ../$(BASENAME).tar.gz --exclude='CVS' --exclude='*.tar.gz' --exclude=$(UNLIKELYNAME) $(BASENAME)/*
108 $(RM) -r $(UNLIKELYNAME)

Legend:
Removed from v.259  
changed lines
  Added in v.323

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26