aboutsummaryrefslogtreecommitdiff
path: root/contrib/ls-config/src/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ls-config/src/makefile')
-rw-r--r--contrib/ls-config/src/makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/contrib/ls-config/src/makefile b/contrib/ls-config/src/makefile
new file mode 100644
index 0000000..d04a773
--- /dev/null
+++ b/contrib/ls-config/src/makefile
@@ -0,0 +1,34 @@
+CC=gcc
+CFLAGS=-O2 -Wall
+#Use for DEVELOP mode:
+#DEVFLAGS=-g -D __DEVEL__
+#Use for PRODUCTION mode:
+DEVFLAGS=-s -fomit-frame-pointer
+
+all: ls-config langs
+
+ls-config: ls-config.c ls-config.pot
+ $(CC) $(CFLAGS) $(DEVFLAGS) -o ../ls-config ls-config.c -L../lib -lm -lconfig
+
+ls-config.pot:
+ xgettext -d ls-config -o po/ls-config.pot ls-config.c
+
+langs:
+ make -C po
+
+install:
+ mkdir -p /usr/share/ls/lib
+ chown root:adm /usr/share/ls/lib
+ cp ../ls-config /usr/share/ls/lib/
+ chown root:adm /usr/share/ls/lib
+ chmod 755 /usr/share/ls/lib/ls-config
+ make -C po install
+
+clean:
+ make -C po clean
+
+remove:
+ rm -f /usr/share/ls/lib/ls-config
+ make -C po remove
+
+