summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 15186c0..1497243 100644
--- a/Makefile
+++ b/Makefile
@@ -5,10 +5,18 @@ BINDIR=/usr/bin
INITDIR=/etc/rc.d
CONFDIR=/etc/
+VERSION = 1
+PATCHLEVEL = 1
+SUBLEVEL = 0
+EXTRAVERSION = -rc1
+
+VERSTR = "$(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL))$(EXTRAVERSION)"
+
+
all:
if [ ! -d obj ]; then mkdir obj; fi
cc $(CCOPTS) $(DBG) src/config.c -c -o obj/config.o
- cc $(CCOPTS) $(DBG) obj/*.o src/main.c -o luminous
+ cc $(CCOPTS) $(DBG) -DVERSTR=$(VERSTR) obj/*.o src/main.c -o luminous
install:
install -D luminous ${DESTDIR}/${BINDIR}/luminous

Generated by cgit