Tagging module CoDemux - CoDemux-0.1-8
[codemux.git] / Makefile
index 480c997..60462a6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
+# overridden when invoked through rpmbuild
+RPM_VERSION=0.0
 CC = gcc
-CFLAGS = -Wall -O -g
+CFLAGS = -Wall -O -DRPM_VERSION=\"$(RPM_VERSION)\"
 
 TARGS = codemux
 
@@ -8,9 +10,13 @@ all: ${TARGS}
 clean:
        rm -f ${TARGS} *.o *~
 
-SHARED_OBJ = applib.o gettimeofdayex.o
+SHARED_OBJ = codemuxlib.o debug.o
 
 CODEMUX_OBJ = codemux.o ${SHARED_OBJ}
 
 codemux: ${CODEMUX_OBJ}
 
+install:
+       install -D -m 0755 -o root -g root codemux.initscript $(INSTALL_ROOT)/etc/rc.d/init.d/codemux
+       install -D -m 0644 -o root -g root codemux.conf $(INSTALL_ROOT)/etc/codemux/codemux.conf
+       install -D -m 0755 -o root -g root codemux $(INSTALL_ROOT)/usr/sbin/codemux