blob: 708457b5e267f97681ff395d32fecb97e91dfbbf (
plain)
1 CC = cc
2 CCOPTS = -Wall -std=gnu99
3 out = upwgen
4 PREFIX = /usr/bin
5
6 VERSION = 1
7 PATCHLEVEL = 1
8 EXTRAVERSION = -rc1
9
10 VERSTR = "$(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL))$(EXTRAVERSION)"
11
12 all:
13 @if [ ! -d obj ]; then mkdir obj; fi
14 $(CC) $(CCOPTS) -c src/i18n_cat.c -o obj/i18n_cat.o
15 $(CC) $(CCOPTS) -DVERSTR=$(VERSTR) src/main.c obj/*.o -o $(out)
16
17 install:
18 mkdir -p $(DESTDIR)/$(PREFIX)
19 cp $(out) $(DESTDIR)/$(PREFIX)/$(out)
|