summaryrefslogtreecommitdiff
path: root/Makefile
blob: 5ac06a09195cfa442637f80ca7f7c47851e8fed7 (plain)
    1 CC     = cc
    2 CCOPTS = -Wall -std=gnu99
    3 out    = upwgen
    4 PREFIX = /usr/bin
    5 
    6 VERSION = 1
    7 PATCHLEVEL = 0
    8 EXTRAVERSION =
    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)

Generated by cgit