summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d6edc2e..e17dda5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
CC = cc
-CCOPTS = -Wall -std=gnu99
+CCOPTS = -Wall -std=gnu99 $(DBG)
PREFIX = /usr/bin
MANPREFIX = /usr/share/man
@@ -13,6 +13,7 @@ VERSTR = "$(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL))$(EXTRAVERSION)"
all:
@if [ ! -d obj ]; then mkdir obj; fi
$(CC) $(CCOPTS) -c src/i18n_cat.c -o obj/i18n_cat.o
+ $(CC) $(CCOPTS) -c src/i18n_set.c -o obj/i18n_set.o
$(CC) $(CCOPTS) -DVERSTR=$(VERSTR) src/main.c obj/*.o -o upwgen
# Interpolate the man page and compress
sed \
@@ -20,6 +21,9 @@ all:
-e "s/{{ RELDATE }}/$(RELDATE)/" \
doc/upwgen.1 | gzip -c > upwgen.1.gz
+debug:
+ make DBG=-g
+
install:
# Install the binary
install -D -m 755 upwgen "$(DESTDIR)/$(PREFIX)/upwgen"

Generated by cgit